From e8f1b55ab87b964dd131c3e4e17fda8a8df50b3d Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 25 Jan 2024 10:22:18 -0800 Subject: [PATCH] pyproject.toml: Move project metadata here from setup.py --- pyproject.toml | 17 +++++++++++++++++ setup.py | 12 +----------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 657c8dfc..f100a242 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,3 +3,20 @@ requires = ["setuptools", "numpy", "Cython>=3"] build-backend = "setuptools.build_meta" + +[project] +name = "python-flint" +description = "Bindings for FLINT and Arb" +version = "0.5.0" +urls = {Homepage = "https://github.com/flintlib/python-flint"} +authors = [ + {name = "Fredrik Johansson", email = "fredrik.johansson@gmail.com"}, +] +license = {text = "MIT"} +classifiers = [ + "Topic :: Scientific/Engineering :: Mathematics", +] + +[project.readme] +file = "README.md" +content-type = "text/markdown" diff --git a/setup.py b/setup.py index fa727ab7..681062c4 100644 --- a/setup.py +++ b/setup.py @@ -132,18 +132,8 @@ setup( - name='python-flint', cmdclass={'build_ext': build_ext}, ext_modules=cythonize(ext_modules, compiler_directives=compiler_directives), packages=packages, package_dir={'': 'src'}, - description='Bindings for FLINT and Arb', - long_description=open('README.md').read(), - long_description_content_type='text/markdown', - version='0.5.0', - url='https://github.com/flintlib/python-flint', - author='Fredrik Johansson', - author_email='fredrik.johansson@gmail.com', - license='MIT', - classifiers=['Topic :: Scientific/Engineering :: Mathematics']) - +)