From 76674494052c9eca4d427b8b3e095e888bb6c94c Mon Sep 17 00:00:00 2001 From: Cali Garmo Date: Mon, 26 Feb 2024 12:12:51 +0100 Subject: [PATCH] Update pyproject and setup --- pyproject.toml | 27 +++++++++++++++++++++++++++ setup.py | 24 +----------------------- 2 files changed, 28 insertions(+), 23 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 638dd9c..471a1b2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,30 @@ [build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" + +[project] +name = "oriented_matroids" +authors = [ + {name = "Aram Dermenjian", email = "aram.dermenjian.math@gmail.com"}, +] +description = 'Oriented matroids for sagemath' +keywords="SageMath packaging" +requires-python = ">=3.8" +license='GPLv3+' # This should be consistent with the LICENCE file +# classifiers list: https://pypi.python.org/pypi?%3Aaction=list_classifiers +classifiers=[ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Science/Research', + 'Topic :: Scientific/Engineering :: Mathematics', + 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', +] +dependencies=['sage-package', 'sphinx'] +version=['VERSION'] + +[project.readme] +file = "README.md" +content-type = "text/markdown" + +[project.urls] +Homepage = "https://github.com/thecaligarmo/oriented_matroids" +"Bug Tracker" = "https://github.com/thecaligarmo/oriented_matroids/issues" diff --git a/setup.py b/setup.py index 4c5523d..183e898 100644 --- a/setup.py +++ b/setup.py @@ -20,29 +20,7 @@ def run_tests(self): setup( - name="oriented_matroids", - description='Oriented matroids for sagemath', version=readfile('VERSION').strip(), - long_description=readfile('README.md'), - long_description_content_type='text/markdown', - url='https://github.com/thecaligarmo/oriented_matroids', - author='Aram Dermenjian', - author_email='aram.dermenjian.math@gmail.com', - project_urls={ - 'Bug Tracker': 'https://github.com/thecaligarmo/oriented_matroids/issues', - }, - license='GPLv3+', # This should be consistent with the LICENCE file - python_requires='>=3.8', - # classifiers list: https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 4 - Beta', - 'Intended Audience :: Science/Research', - 'Topic :: Scientific/Engineering :: Mathematics', - 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', - ], - keywords="SageMath packaging", packages=find_packages(), - cmdclass={'test': SageTest}, # adding a special setup command for tests - setup_requires=['sage-package'], - install_requires=['sage-package', 'sphinx'], + cmdclass={'test': SageTest} # adding a special setup command for tests )