Skip to content

Commit d1828e6

Browse files
Benjamin ToornstraBenjamin Toornstra
authored andcommitted
update version
1 parent 2a53dac commit d1828e6

2 files changed

Lines changed: 53 additions & 48 deletions

File tree

docx/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from docx.api import Document # noqa
44

5-
__version__ = '0.8.7'
5+
__version__ = "1.0.0"
66

77

88
# register custom Part classes with opc package reader
@@ -33,6 +33,12 @@ def part_class_selector(content_type, reltype):
3333
PartFactory.part_type_for[CT.WML_STYLES] = StylesPart
3434

3535
del (
36-
CT, CustomXmlPart, CorePropertiesPart, DocumentPart, NumberingPart, PartFactory,
37-
StylesPart, part_class_selector
36+
CT,
37+
CustomXmlPart,
38+
CorePropertiesPart,
39+
DocumentPart,
40+
NumberingPart,
41+
PartFactory,
42+
StylesPart,
43+
part_class_selector,
3844
)

setup.py

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -17,65 +17,64 @@ def text_of(relpath):
1717
text = f.read()
1818
return text
1919

20+
2021
# Read the version from docx.__version__ without importing the package
2122
# (and thus attempting to import packages it depends on that may not be
2223
# installed yet)
23-
version = re.search(
24-
"__version__ = '([^']+)'", text_of('docx/__init__.py')
25-
).group(1)
24+
version = re.search('__version__ = "([^"]+)"', text_of("docx/__init__.py")).group(1)
2625

2726

28-
NAME = 'python-docx'
27+
NAME = "python-docx"
2928
VERSION = version
30-
DESCRIPTION = 'Create and update Microsoft Word .docx files.'
31-
KEYWORDS = 'docx office openxml word'
32-
AUTHOR = 'Steve Canny'
33-
AUTHOR_EMAIL = 'python-docx@googlegroups.com'
34-
URL = 'https://github.com/python-openxml/python-docx'
35-
LICENSE = text_of('LICENSE')
36-
PACKAGES = find_packages(exclude=['tests', 'tests.*'])
37-
PACKAGE_DATA = {'docx': ['templates/*']}
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/*"]}
3837

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

4342
CLASSIFIERS = [
44-
'Development Status :: 3 - Alpha',
45-
'Environment :: Console',
46-
'Intended Audience :: Developers',
47-
'License :: OSI Approved :: MIT License',
48-
'Operating System :: OS Independent',
49-
'Programming Language :: Python',
50-
'Programming Language :: Python :: 2',
51-
'Programming Language :: Python :: 2.6',
52-
'Programming Language :: Python :: 2.7',
53-
'Programming Language :: Python :: 3',
54-
'Programming Language :: Python :: 3.3',
55-
'Programming Language :: Python :: 3.4',
56-
'Topic :: Office/Business :: Office Suites',
57-
'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",
5857
]
5958

60-
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")
6160

6261

6362
params = {
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,
63+
"name": NAME,
64+
"version": VERSION,
65+
"description": DESCRIPTION,
66+
"keywords": KEYWORDS,
67+
"long_description": LONG_DESCRIPTION,
68+
"author": AUTHOR,
69+
"author_email": AUTHOR_EMAIL,
70+
"url": URL,
71+
"license": LICENSE,
72+
"packages": PACKAGES,
73+
"package_data": PACKAGE_DATA,
74+
"install_requires": INSTALL_REQUIRES,
75+
"tests_require": TESTS_REQUIRE,
76+
"test_suite": TEST_SUITE,
77+
"classifiers": CLASSIFIERS,
7978
}
8079

8180
setup(**params)

0 commit comments

Comments
 (0)