55import sys
66from typing import Sequence
77
8- from setuptools import setup , find_packages
8+ from setuptools import setup
99from setuptools .command .build_py import build_py as _build_py
1010from setuptools .command .sdist import sdist as _sdist
1111
@@ -15,10 +15,6 @@ def _read_content(path: str) -> str:
1515
1616
1717version = _read_content ("VERSION" ).strip ()
18- requirements = _read_content ("requirements.txt" ).splitlines ()
19- test_requirements = _read_content ("test-requirements.txt" ).splitlines ()
20- doc_requirements = _read_content ("doc/requirements.txt" ).splitlines ()
21- long_description = _read_content ("README.md" )
2218
2319
2420class build_py (_build_py ):
@@ -62,54 +58,9 @@ def _stamp_version(filename: str) -> None:
6258 print ("WARNING: Couldn't find version line in file %s" % filename , file = sys .stderr )
6359
6460
61+ # See pyproject.toml for project metadata
6562setup (
6663 name = "GitPython" ,
6764 cmdclass = {"build_py" : build_py , "sdist" : sdist },
68- version = version ,
69- description = "GitPython is a Python library used to interact with Git repositories" ,
70- author = "Sebastian Thiel, Michael Trier" ,
71- author_email = "byronimo@gmail.com, mtrier@gmail.com" ,
7265 license = "BSD-3-Clause" ,
73- url = "https://github.com/gitpython-developers/GitPython" ,
74- packages = find_packages (include = ["git" , "git.*" ]),
75- include_package_data = True ,
76- package_dir = {"git" : "git" },
77- python_requires = ">=3.7" ,
78- install_requires = requirements ,
79- extras_require = {
80- "test" : test_requirements ,
81- "doc" : doc_requirements ,
82- },
83- zip_safe = False ,
84- long_description = long_description ,
85- long_description_content_type = "text/markdown" ,
86- classifiers = [
87- # Picked from
88- # http://pypi.python.org/pypi?:action=list_classifiers
89- # "Development Status :: 1 - Planning",
90- # "Development Status :: 2 - Pre-Alpha",
91- # "Development Status :: 3 - Alpha",
92- # "Development Status :: 4 - Beta",
93- "Development Status :: 5 - Production/Stable" ,
94- # "Development Status :: 6 - Mature",
95- # "Development Status :: 7 - Inactive",
96- "Environment :: Console" ,
97- "Intended Audience :: Developers" ,
98- "Operating System :: OS Independent" ,
99- "Operating System :: POSIX" ,
100- "Operating System :: Microsoft :: Windows" ,
101- "Operating System :: MacOS :: MacOS X" ,
102- "Typing :: Typed" ,
103- "Programming Language :: Python" ,
104- "Programming Language :: Python :: 3" ,
105- "Programming Language :: Python :: 3.7" ,
106- "Programming Language :: Python :: 3.8" ,
107- "Programming Language :: Python :: 3.9" ,
108- "Programming Language :: Python :: 3.10" ,
109- "Programming Language :: Python :: 3.11" ,
110- "Programming Language :: Python :: 3.12" ,
111- "Programming Language :: Python :: 3.13" ,
112- "Programming Language :: Python :: 3.14" ,
113- "Programming Language :: Python :: 3.15" ,
114- ],
11566)
0 commit comments