Skip to content

Commit b4d154d

Browse files
authored
Merge pull request #158 from mkoeppe/pyproject_metadata
Modernize project metadata
2 parents 6c24c53 + 03263ad commit b4d154d

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,20 @@ requires = ["setuptools",
66
# Hence we declare a custom build backend.
77
build-backend = "_custom_build_meta" # just re-exports setuptools.build_meta definitions
88
backend-path = ["."]
9+
10+
[project]
11+
name = "cypari2"
12+
version = "2.1.4"
13+
description = "A Python interface to the number theory library PARI/GP"
14+
authors = [
15+
{name = "Luca De Feo, Vincent Delecroix, Jeroen Demeyer, Vincent Klein", email = "[email protected]"},
16+
]
17+
dependencies = [
18+
"cysignals>=1.7",
19+
]
20+
readme = "README.rst"
21+
license = {text = "GNU General Public License, version 2 or later"}
22+
keywords = ["PARI/GP number theory"]
23+
24+
[project.urls]
25+
Homepage = "https://github.com/sagemath/cypari2"

setup.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,8 @@ def run(self):
5858
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.")
5959

6060

61-
with open('README.rst') as f:
62-
README = f.read()
63-
64-
with open('VERSION') as f:
65-
VERSION = f.read().strip()
66-
67-
6861
setup(
69-
name='cypari2',
70-
version=VERSION,
71-
install_requires=['cysignals>=1.7'],
72-
description="A Python interface to the number theory library PARI/GP",
73-
long_description=README,
74-
url="https://github.com/sagemath/cypari2",
75-
author="Luca De Feo, Vincent Delecroix, Jeroen Demeyer, Vincent Klein",
76-
author_email="[email protected]",
77-
license='GNU General Public License, version 2 or later',
7862
ext_modules=[Extension("*", ["cypari2/*.pyx"], **ext_kwds)],
79-
keywords='PARI/GP number theory',
8063
packages=['cypari2'],
8164
package_dir={'cypari2': 'cypari2'},
8265
package_data={'cypari2': ['declinl.pxi', '*.pxd', '*.h']},

0 commit comments

Comments
 (0)