Skip to content

Commit a455fa9

Browse files
bmosWil T
andauthored
move project definitions to pyproject.toml (#1440)
* move project definitions to pyproject.toml * add missing new line in setup.py * fix import errors * improve project.urls * update version number in pyproj to match main * Update pyproject.toml * Update version number in pyproject.toml * remove upper bound of python version (fixes #1515) --------- Co-authored-by: Wil T <[email protected]> Co-authored-by: Wil T <[email protected]>
1 parent 2ebb695 commit a455fa9

File tree

3 files changed

+48
-30
lines changed

3 files changed

+48
-30
lines changed

pyproject.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
[build-system]
2+
requires = [ "setuptools" ]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "parsons"
7+
version = "5.2.0"
8+
description = "A python library of connectors for the progressive community."
9+
readme = { file = "README.md", content-type = "text/markdown" }
10+
requires-python = ">=3.9"
11+
license-files = [ "LICENSE.md" ]
12+
authors = [
13+
{ name = "The Movement Cooperative", email = "[email protected]" },
14+
]
15+
maintainers = [
16+
{ name = "Shauna Gordon-McKeon" },
17+
]
18+
keywords = [ "PROGRESSIVE", "API", "ETL" ]
19+
classifiers = [
20+
"Development Status :: 3 - Alpha",
21+
"Intended Audience :: Developers",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.13",
27+
]
28+
dynamic = [
29+
"dependencies",
30+
"optional-dependencies",
31+
]
32+
33+
[project.urls]
34+
homepage = "https://www.parsonsproject.org/"
35+
documentation = "https://move-coop.github.io/parsons/html/stable/index.html"
36+
releasenotes = "https://github.com/move-coop/parsons/releases"
37+
funding = "https://secure.actblue.com/donate/parsonsproject?refcode=parsonswebsite"
38+
issues = "https://github.com/move-coop/parsons/issues"
39+
github = "https://github.com/move-coop/parsons"
40+
repository = "https://github.com/move-coop/parsons.git"
41+
42+
[tool.setuptools]
43+
packages = ["parsons"]
44+
145
[tool.ruff]
246
# Exclude a variety of commonly ignored directories.
347
include = [

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ xmltodict==0.15.0
5151
jinja2>=3.0.2
5252
selenium==3.141.0
5353
us==3.2.0
54-

setup.py

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import os
2-
from distutils.core import setup
32
from pathlib import Path
43

5-
from setuptools import find_packages
4+
from setuptools import setup
65

76

87
def main():
@@ -77,37 +76,13 @@ def main():
7776
}
7877
extras_require["all"] = sorted({lib for libs in extras_require.values() for lib in libs})
7978
else:
80-
THIS_DIR = Path(__file__).parent.absolute()
81-
install_requires = (THIS_DIR / "requirements.txt").read_text().strip().split("\n")
82-
# No op for forward-compatibility
83-
extras_require = {"all": []}
84-
85-
this_directory = Path(__file__).parent
86-
long_description = (this_directory / "README.md").read_text()
79+
pyproject_path = Path(__file__).parent / "requirements.txt"
80+
install_requires = pyproject_path.read_text().strip().split("\n")
81+
extras_require = {"all": []} # No op for forward-compatibility
8782

8883
setup(
89-
name="parsons",
90-
version="5.2.0", # ensure this version number is in format of n.n.n, not n or n.n
91-
author="The Movement Cooperative",
92-
author_email="[email protected]",
93-
url="https://github.com/move-coop/parsons",
94-
keywords=["PROGRESSIVE", "API", "ETL"],
95-
packages=find_packages(),
9684
install_requires=install_requires,
9785
extras_require=extras_require,
98-
classifiers=[
99-
"Development Status :: 3 - Alpha",
100-
"Intended Audience :: Developers",
101-
"Programming Language :: Python :: 3.9",
102-
"Programming Language :: Python :: 3.10",
103-
"Programming Language :: Python :: 3.11",
104-
"Programming Language :: Python :: 3.12",
105-
"Programming Language :: Python :: 3.13",
106-
# "Programming Language :: Python :: 3.14",
107-
],
108-
python_requires=">=3.9,<3.14",
109-
long_description=long_description,
110-
long_description_content_type="text/markdown",
11186
)
11287

11388

0 commit comments

Comments
 (0)