Skip to content

Commit 5bc7b33

Browse files
authored
Merge pull request #9755 from pradyunsg/update-setup-py-file
2 parents fa334e1 + cc89f8c commit 5bc7b33

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

.pre-commit-config.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ repos:
3838
^tests/unit|
3939
^tests/functional/(?!test_install)|
4040
^tests/functional/test_install|
41-
# Files in the root of the repository
42-
^setup.py|
4341
# A blank ignore, to avoid merge conflicts later.
4442
^$
4543

setup.py

+8-15
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,21 @@ def read(rel_path):
1616
def get_version(rel_path):
1717
# type: (str) -> str
1818
for line in read(rel_path).splitlines():
19-
if line.startswith('__version__'):
19+
if line.startswith("__version__"):
2020
# __version__ = "0.9"
2121
delim = '"' if '"' in line else "'"
2222
return line.split(delim)[1]
2323
raise RuntimeError("Unable to find version string.")
2424

2525

26-
long_description = read('README.rst')
26+
long_description = read("README.rst")
2727

2828
setup(
2929
name="pip",
3030
version=get_version("src/pip/__init__.py"),
3131
description="The PyPA recommended tool for installing Python packages.",
3232
long_description=long_description,
33-
34-
license='MIT',
33+
license="MIT",
3534
classifiers=[
3635
"Development Status :: 5 - Production/Stable",
3736
"Intended Audience :: Developers",
@@ -47,17 +46,14 @@ def get_version(rel_path):
4746
"Programming Language :: Python :: Implementation :: CPython",
4847
"Programming Language :: Python :: Implementation :: PyPy",
4948
],
50-
url='https://pip.pypa.io/',
51-
keywords='distutils easy_install egg setuptools wheel virtualenv',
49+
url="https://pip.pypa.io/",
5250
project_urls={
5351
"Documentation": "https://pip.pypa.io",
5452
"Source": "https://github.com/pypa/pip",
5553
"Changelog": "https://pip.pypa.io/en/stable/news/",
5654
},
57-
58-
author='The pip developers',
59-
author_email='[email protected]',
60-
55+
author="The pip developers",
56+
author_email="[email protected]",
6157
package_dir={"": "src"},
6258
packages=find_packages(
6359
where="src",
@@ -75,12 +71,9 @@ def get_version(rel_path):
7571
"console_scripts": [
7672
"pip=pip._internal.cli.main:main",
7773
"pip{}=pip._internal.cli.main:main".format(sys.version_info[0]),
78-
"pip{}.{}=pip._internal.cli.main:main".format(
79-
*sys.version_info[:2]
80-
),
74+
"pip{}.{}=pip._internal.cli.main:main".format(*sys.version_info[:2]),
8175
],
8276
},
83-
8477
zip_safe=False,
85-
python_requires='>=3.6',
78+
python_requires=">=3.6",
8679
)

0 commit comments

Comments
 (0)