diff --git a/pyproject.toml b/pyproject.toml index 1689d81..be9d05b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,3 +6,20 @@ requires = ["setuptools", # Hence we declare a custom build backend. build-backend = "_custom_build_meta" # just re-exports setuptools.build_meta definitions backend-path = ["."] + +[project] +name = "cypari2" +version = "2.1.4" +description = "A Python interface to the number theory library PARI/GP" +authors = [ + {name = "Luca De Feo, Vincent Delecroix, Jeroen Demeyer, Vincent Klein", email = "sage-devel@googlegroups.com"}, +] +dependencies = [ + "cysignals>=1.7", +] +readme = "README.rst" +license = {text = "GNU General Public License, version 2 or later"} +keywords = ["PARI/GP number theory"] + +[project.urls] +Homepage = "https://github.com/sagemath/cypari2" diff --git a/setup.py b/setup.py index 9ded2f5..51f4c95 100755 --- a/setup.py +++ b/setup.py @@ -58,25 +58,8 @@ def run(self): raise DistutilsOptionError("The package cypari2 will not function correctly when built as egg. Therefore, it cannot be installed using 'python setup.py install' or 'easy_install'. Instead, use 'pip install' to install cypari2.") -with open('README.rst') as f: - README = f.read() - -with open('VERSION') as f: - VERSION = f.read().strip() - - setup( - name='cypari2', - version=VERSION, - install_requires=['cysignals>=1.7'], - description="A Python interface to the number theory library PARI/GP", - long_description=README, - url="https://github.com/sagemath/cypari2", - author="Luca De Feo, Vincent Delecroix, Jeroen Demeyer, Vincent Klein", - author_email="sage-devel@googlegroups.com", - license='GNU General Public License, version 2 or later', ext_modules=[Extension("*", ["cypari2/*.pyx"], **ext_kwds)], - keywords='PARI/GP number theory', packages=['cypari2'], package_dir={'cypari2': 'cypari2'}, package_data={'cypari2': ['declinl.pxi', '*.pxd', '*.h']},