Skip to content

Commit c87a0a0

Browse files
committed
Apply black to setup.py also
1 parent e3ca809 commit c87a0a0

File tree

2 files changed

+40
-45
lines changed

2 files changed

+40
-45
lines changed

setup.py

Lines changed: 39 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -10,52 +10,47 @@
1010
from setuptools import find_packages, setup
1111

1212

13-
__author__ = 'Mahmoud Hashemi and Glyph Lefkowitz'
14-
__version__ = '19.0.1dev'
15-
__contact__ = 'mahmoud@hatnote.com'
16-
__url__ = 'https://github.com/python-hyper/hyperlink'
17-
__license__ = 'MIT'
13+
__author__ = "Mahmoud Hashemi and Glyph Lefkowitz"
14+
__version__ = "19.0.1dev"
15+
__contact__ = "mahmoud@hatnote.com"
16+
__url__ = "https://github.com/python-hyper/hyperlink"
17+
__license__ = "MIT"
1818

1919

20-
setup(name='hyperlink',
21-
version=__version__,
22-
description="A featureful, immutable, and correct URL for Python.",
23-
long_description=__doc__,
24-
author=__author__,
25-
author_email=__contact__,
26-
url=__url__,
27-
packages=find_packages(where="src"),
28-
package_dir={"": "src"},
29-
package_data=dict(
30-
hyperlink=[
31-
"py.typed",
32-
],
33-
),
34-
zip_safe=False,
35-
license=__license__,
36-
platforms='any',
37-
install_requires=[
38-
'idna>=2.5',
39-
'typing ; python_version<"3.5"',
40-
],
41-
python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
42-
classifiers=[
43-
'Topic :: Utilities',
44-
'Intended Audience :: Developers',
45-
'Topic :: Software Development :: Libraries',
46-
'Development Status :: 5 - Production/Stable',
47-
'Programming Language :: Python :: 2',
48-
'Programming Language :: Python :: 2.6',
49-
'Programming Language :: Python :: 2.7',
50-
'Programming Language :: Python :: 3',
51-
'Programming Language :: Python :: 3.4',
52-
'Programming Language :: Python :: 3.5',
53-
'Programming Language :: Python :: 3.6',
54-
'Programming Language :: Python :: 3.7',
55-
'Programming Language :: Python :: 3.8',
56-
'Programming Language :: Python :: Implementation :: PyPy',
57-
'License :: OSI Approved :: MIT License', ]
58-
)
20+
setup(
21+
name="hyperlink",
22+
version=__version__,
23+
description="A featureful, immutable, and correct URL for Python.",
24+
long_description=__doc__,
25+
author=__author__,
26+
author_email=__contact__,
27+
url=__url__,
28+
packages=find_packages(where="src"),
29+
package_dir={"": "src"},
30+
package_data=dict(hyperlink=["py.typed",],),
31+
zip_safe=False,
32+
license=__license__,
33+
platforms="any",
34+
install_requires=["idna>=2.5", 'typing ; python_version<"3.5"',],
35+
python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
36+
classifiers=[
37+
"Topic :: Utilities",
38+
"Intended Audience :: Developers",
39+
"Topic :: Software Development :: Libraries",
40+
"Development Status :: 5 - Production/Stable",
41+
"Programming Language :: Python :: 2",
42+
"Programming Language :: Python :: 2.6",
43+
"Programming Language :: Python :: 2.7",
44+
"Programming Language :: Python :: 3",
45+
"Programming Language :: Python :: 3.4",
46+
"Programming Language :: Python :: 3.5",
47+
"Programming Language :: Python :: 3.6",
48+
"Programming Language :: Python :: 3.7",
49+
"Programming Language :: Python :: 3.8",
50+
"Programming Language :: Python :: Implementation :: PyPy",
51+
"License :: OSI Approved :: MIT License",
52+
],
53+
)
5954

6055
"""
6156
A brief checklist for release:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ setenv =
8080
BLACK_LINT_ARGS=--check
8181

8282
commands =
83-
black {env:BLACK_LINT_ARGS:} src
83+
black {env:BLACK_LINT_ARGS:} setup.py src
8484

8585

8686
[testenv:black-reformat]

0 commit comments

Comments
 (0)