Skip to content

Commit eafffea

Browse files
committed
black: blacken setup.py
This produces a lot of line changes for single to double quotes, but no logic changes were made.
1 parent 24b9af7 commit eafffea

File tree

1 file changed

+44
-46
lines changed

1 file changed

+44
-46
lines changed

setup.py

Lines changed: 44 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -21,64 +21,62 @@ def text_of(relpath):
2121
# Read the version from docx.__version__ without importing the package
2222
# (and thus attempting to import packages it depends on that may not be
2323
# installed yet)
24-
version = re.search(
25-
"__version__ = '([^']+)'", text_of('docx/__init__.py')
26-
).group(1)
24+
version = re.search("__version__ = '([^']+)'", text_of("docx/__init__.py")).group(1)
2725

2826

29-
NAME = 'python-docx'
27+
NAME = "python-docx"
3028
VERSION = version
31-
DESCRIPTION = 'Create and update Microsoft Word .docx files.'
32-
KEYWORDS = 'docx office openxml word'
33-
AUTHOR = 'Steve Canny'
34-
AUTHOR_EMAIL = 'python-docx@googlegroups.com'
35-
URL = 'https://github.com/python-openxml/python-docx'
36-
LICENSE = text_of('LICENSE')
37-
PACKAGES = find_packages(exclude=['tests', 'tests.*'])
38-
PACKAGE_DATA = {'docx': ['templates/*.xml', 'templates/*.docx']}
29+
DESCRIPTION = "Create and update Microsoft Word .docx files."
30+
KEYWORDS = "docx office openxml word"
31+
AUTHOR = "Steve Canny"
32+
AUTHOR_EMAIL = "python-docx@googlegroups.com"
33+
URL = "https://github.com/python-openxml/python-docx"
34+
LICENSE = text_of("LICENSE")
35+
PACKAGES = find_packages(exclude=["tests", "tests.*"])
36+
PACKAGE_DATA = {"docx": ["templates/*.xml", "templates/*.docx"]}
3937

40-
INSTALL_REQUIRES = ['lxml>=2.3.2']
41-
TEST_SUITE = 'tests'
42-
TESTS_REQUIRE = ['behave', 'mock', 'pyparsing', 'pytest']
38+
INSTALL_REQUIRES = ["lxml>=2.3.2"]
39+
TEST_SUITE = "tests"
40+
TESTS_REQUIRE = ["behave", "mock", "pyparsing", "pytest"]
4341

4442
CLASSIFIERS = [
45-
'Development Status :: 3 - Alpha',
46-
'Environment :: Console',
47-
'Intended Audience :: Developers',
48-
'License :: OSI Approved :: MIT License',
49-
'Operating System :: OS Independent',
50-
'Programming Language :: Python',
51-
'Programming Language :: Python :: 2',
52-
'Programming Language :: Python :: 2.6',
53-
'Programming Language :: Python :: 2.7',
54-
'Programming Language :: Python :: 3',
55-
'Programming Language :: Python :: 3.3',
56-
'Programming Language :: Python :: 3.4',
57-
'Topic :: Office/Business :: Office Suites',
58-
'Topic :: Software Development :: Libraries'
43+
"Development Status :: 3 - Alpha",
44+
"Environment :: Console",
45+
"Intended Audience :: Developers",
46+
"License :: OSI Approved :: MIT License",
47+
"Operating System :: OS Independent",
48+
"Programming Language :: Python",
49+
"Programming Language :: Python :: 2",
50+
"Programming Language :: Python :: 2.6",
51+
"Programming Language :: Python :: 2.7",
52+
"Programming Language :: Python :: 3",
53+
"Programming Language :: Python :: 3.3",
54+
"Programming Language :: Python :: 3.4",
55+
"Topic :: Office/Business :: Office Suites",
56+
"Topic :: Software Development :: Libraries",
5957
]
6058

61-
LONG_DESCRIPTION = text_of('README.rst') + '\n\n' + text_of('HISTORY.rst')
59+
LONG_DESCRIPTION = text_of("README.rst") + "\n\n" + text_of("HISTORY.rst")
6260

6361
ZIP_SAFE = False
6462

6563
params = {
66-
'name': NAME,
67-
'version': VERSION,
68-
'description': DESCRIPTION,
69-
'keywords': KEYWORDS,
70-
'long_description': LONG_DESCRIPTION,
71-
'author': AUTHOR,
72-
'author_email': AUTHOR_EMAIL,
73-
'url': URL,
74-
'license': LICENSE,
75-
'packages': PACKAGES,
76-
'package_data': PACKAGE_DATA,
77-
'install_requires': INSTALL_REQUIRES,
78-
'tests_require': TESTS_REQUIRE,
79-
'test_suite': TEST_SUITE,
80-
'classifiers': CLASSIFIERS,
81-
'zip_safe': ZIP_SAFE,
64+
"name": NAME,
65+
"version": VERSION,
66+
"description": DESCRIPTION,
67+
"keywords": KEYWORDS,
68+
"long_description": LONG_DESCRIPTION,
69+
"author": AUTHOR,
70+
"author_email": AUTHOR_EMAIL,
71+
"url": URL,
72+
"license": LICENSE,
73+
"packages": PACKAGES,
74+
"package_data": PACKAGE_DATA,
75+
"install_requires": INSTALL_REQUIRES,
76+
"tests_require": TESTS_REQUIRE,
77+
"test_suite": TEST_SUITE,
78+
"classifiers": CLASSIFIERS,
79+
"zip_safe": ZIP_SAFE,
8280
}
8381

8482
setup(**params)

0 commit comments

Comments
 (0)