Skip to content

Commit

Permalink
pyproject.toml: Move metadata here from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Feb 4, 2024
1 parent 38024b2 commit 03263ad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
17 changes: 0 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']},
Expand Down

0 comments on commit 03263ad

Please sign in to comment.