diff --git a/pyproject.toml b/pyproject.toml index ff6d95236..b1041a5f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,7 @@ +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" + [tool.poetry] name = "alot" version = "0.10" @@ -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 = "patricktotzke@gmail.com"} ] +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" diff --git a/setup.py b/setup.py index 0c72559cb..2f86298d9 100755 --- a/setup.py +++ b/setup.py @@ -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': [ @@ -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", )