Skip to content

Commit ffbb676

Browse files
committed
Build: Move project metadata to pyproject.toml.
1 parent fc32969 commit ffbb676

2 files changed

Lines changed: 31 additions & 19 deletions

File tree

pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
[project]
2+
name = "quicktions"
3+
description = "Fast fractions data type for rational numbers. Cythonized version of 'fractions.Fraction'."
4+
authors = [
5+
{name = "Stefan Behnel", email = "stefan_ml@behnel.de"},
6+
]
7+
maintainers = [
8+
{name = "Stefan Behnel", email = "stefan_ml@behnel.de"},
9+
]
10+
license = "PSF-2.0"
11+
license-files = ["LICENSE"]
12+
classifiers = [
13+
"Development Status :: 6 - Mature",
14+
"Intended Audience :: Developers",
15+
"Operating System :: OS Independent",
16+
"Programming Language :: Python",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Cython",
19+
"Topic :: Scientific/Engineering :: Mathematics",
20+
"Topic :: Office/Business :: Financial",
21+
]
22+
requires-python = ">= 3.8"
23+
24+
dynamic = ["version", "readme"]
25+
26+
[project.urls]
27+
Homepage = "https://github.com/scoder/quicktions"
28+
Issues = "https://github.com/scoder/quicktions/issues"
29+
Changelog = "https://github.com/scoder/quicktions/blob/master/CHANGES.rst"
30+
131
[build-system]
232
requires = ["Cython>=3.2.4", "setuptools"]
333

setup.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -111,29 +111,11 @@ def check_limited_api_option(value):
111111

112112

113113
setup(
114-
name="quicktions",
115114
version=version,
116-
description="Fast fractions data type for rational numbers. "
117-
"Cythonized version of 'fractions.Fraction'.",
118115
long_description=long_description,
119-
author="Stefan Behnel",
120-
author_email="stefan_ml@behnel.de",
121-
url="https://github.com/scoder/quicktions",
122-
#bugtrack_url="https://github.com/scoder/quicktions/issues",
123-
license="PSF-2.0",
116+
long_description_content_type="text/x-rst",
124117

125118
ext_modules=ext_modules,
126119
package_dir={'': 'src'},
127-
128-
classifiers=[
129-
"Development Status :: 6 - Mature",
130-
"Intended Audience :: Developers",
131-
"Operating System :: OS Independent",
132-
"Programming Language :: Python",
133-
"Programming Language :: Python :: 3",
134-
"Programming Language :: Cython",
135-
"Topic :: Scientific/Engineering :: Mathematics",
136-
"Topic :: Office/Business :: Financial",
137-
],
138120
**extra_setup_args,
139121
)

0 commit comments

Comments
 (0)