Skip to content

Commit

Permalink
DRAFT: Move some data from setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
This still keeps poetry as the default build backend.

TODO: migrate all data if possible
  • Loading branch information
lucc committed Jul 31, 2024
1 parent bdb2541 commit 04a5568
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 37 deletions.
44 changes: 41 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "alot"
version = "0.10"
Expand Down Expand Up @@ -43,6 +47,40 @@ sphinx = "*"
[tool.poetry.scripts]
alot = "alot.__main__:main"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

# These sections are for setuptools
[project]
name = "alot"
version = "0.10"
description = "Terminal MUA using notmuch mail"
authors = [ {name = "Patrick Totzke", email = "[email protected]"} ]
readme = "README.md"
requires-python = ">=3.8"
license = { text = "GPL-3.0-or-later" }
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console :: Curses",
"Framework :: AsyncIO",
"Intended Audience :: End Users/Desktop",
"Operating System :: POSIX",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Communications :: Email :: Email Clients (MUA)",
"Topic :: Database :: Front-Ends",
]
dependencies = [
"notmuch2>=0.30",
"urwid>=1.3.0",
"urwidtrees>=1.0.3",
"twisted>=18.4.0",
"python-magic",
"configobj>=4.7.0",
"gpg>1.10.0"
]

[project.scripts]
alot = "alot.__main__:main"

[project.urls]
Repository = "https://github.com/pazz/alot"
Documentation = "https://alot.readthedocs.io/en/latest/"
Issues = "https://github.com/pazz/alot/issues"
34 changes: 0 additions & 34 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,7 @@


setup(
name='alot',
version=alot.__version__,
description=alot.__description__,
author=alot.__author__,
author_email=alot.__author_email__,
url=alot.__url__,
license=alot.__copyright__,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console :: Curses',
'Framework :: AsyncIO',
'Intended Audience :: End Users/Desktop',
(
'License :: OSI Approved'
':: GNU General Public License v3 or later (GPLv3+)'),
'Operating System :: POSIX',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Communications :: Email :: Email Clients (MUA)',
'Topic :: Database :: Front-Ends',
],
packages=find_packages(exclude=['tests*']),
package_data={
'alot': [
Expand All @@ -36,20 +17,5 @@
'defaults/theme.spec',
]
},
entry_points={
'console_scripts':
['alot = alot.__main__:main'],
},
install_requires=[
'notmuch2>=0.30',
'urwid>=1.3.0',
'urwidtrees>=1.0.3',
'twisted>=18.4.0',
'python-magic',
'configobj>=4.7.0',
'gpg>1.10.0'
],
provides=['alot'],
test_suite="tests",
python_requires=">=3.8",
)

0 comments on commit 04a5568

Please sign in to comment.