@@ -21,64 +21,62 @@ def text_of(relpath):
21
21
# Read the version from docx.__version__ without importing the package
22
22
# (and thus attempting to import packages it depends on that may not be
23
23
# 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 )
27
25
28
26
29
- NAME = ' python-docx'
27
+ NAME = " python-docx"
30
28
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" ]}
39
37
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" ]
43
41
44
42
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" ,
59
57
]
60
58
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" )
62
60
63
61
ZIP_SAFE = False
64
62
65
63
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 ,
82
80
}
83
81
84
82
setup (** params )
0 commit comments