@@ -21,62 +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 (r'__version__ = "([^"]+)"' , text_of ("docx/__init__.py" )).group (1 )
2725
2826
29- NAME = ' python-docx'
27+ NAME = " python-docx"
3028VERSION = 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
4442CLASSIFIERS = [
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
61+ ZIP_SAFE = False
6362
6463params = {
65- 'name' : NAME ,
66- 'version' : VERSION ,
67- 'description' : DESCRIPTION ,
68- 'keywords' : KEYWORDS ,
69- 'long_description' : LONG_DESCRIPTION ,
70- 'author' : AUTHOR ,
71- 'author_email' : AUTHOR_EMAIL ,
72- 'url' : URL ,
73- 'license' : LICENSE ,
74- 'packages' : PACKAGES ,
75- 'package_data' : PACKAGE_DATA ,
76- 'install_requires' : INSTALL_REQUIRES ,
77- 'tests_require' : TESTS_REQUIRE ,
78- 'test_suite' : TEST_SUITE ,
79- 'classifiers' : CLASSIFIERS ,
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 ,
8080}
8181
8282setup (** params )
0 commit comments