summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPradyun Gedam <pradyunsg@users.noreply.github.com>2021-04-01 23:00:10 +0100
committerPradyun Gedam <pradyunsg@users.noreply.github.com>2021-04-01 23:00:10 +0100
commitdf0955d535672fce8f44c996e6c596f08800c645 (patch)
tree8a141d4ed0a61a342dfed09fd3760ef36b0a923d
parentade72202c5f02c89e02260e11d275cc51f2c9a60 (diff)
downloadpip-df0955d535672fce8f44c996e6c596f08800c645.tar.gz
Blacken setup.py
-rw-r--r--.pre-commit-config.yaml2
-rw-r--r--setup.py24
2 files changed, 9 insertions, 17 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 71d275489..31d41399e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,8 +39,6 @@ repos:
^tests/unit|
^tests/functional/(?!test_install)|
^tests/functional/test_install|
- # Files in the root of the repository
- ^setup.py|
# A blank ignore, to avoid merge conflicts later.
^$
diff --git a/setup.py b/setup.py
index 26056f280..c2992ddfc 100644
--- a/setup.py
+++ b/setup.py
@@ -16,22 +16,21 @@ def read(rel_path):
def get_version(rel_path):
# type: (str) -> str
for line in read(rel_path).splitlines():
- if line.startswith('__version__'):
+ if line.startswith("__version__"):
# __version__ = "0.9"
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Unable to find version string.")
-long_description = read('README.rst')
+long_description = read("README.rst")
setup(
name="pip",
version=get_version("src/pip/__init__.py"),
description="The PyPA recommended tool for installing Python packages.",
long_description=long_description,
-
- license='MIT',
+ license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
@@ -47,17 +46,15 @@ setup(
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
- url='https://pip.pypa.io/',
- keywords='distutils easy_install egg setuptools wheel virtualenv',
+ url="https://pip.pypa.io/",
+ keywords="distutils easy_install egg setuptools wheel virtualenv",
project_urls={
"Documentation": "https://pip.pypa.io",
"Source": "https://github.com/pypa/pip",
"Changelog": "https://pip.pypa.io/en/stable/news/",
},
-
- author='The pip developers',
- author_email='distutils-sig@python.org',
-
+ author="The pip developers",
+ author_email="distutils-sig@python.org",
package_dir={"": "src"},
packages=find_packages(
where="src",
@@ -75,12 +72,9 @@ setup(
"console_scripts": [
"pip=pip._internal.cli.main:main",
"pip{}=pip._internal.cli.main:main".format(sys.version_info[0]),
- "pip{}.{}=pip._internal.cli.main:main".format(
- *sys.version_info[:2]
- ),
+ "pip{}.{}=pip._internal.cli.main:main".format(*sys.version_info[:2]),
],
},
-
zip_safe=False,
- python_requires='>=3.6',
+ python_requires=">=3.6",
)