Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize project metadata #158

Merged
merged 1 commit into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = "[email protected]"},
]
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="[email protected]",
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