1212from os .path import splitext
1313from setuptools import setup
1414
15+ changelog_url = 'https://github.com/ZigRazor/PyStateMachine/blob/master/CHANGELOG.md'
16+
1517
1618def read (* names , ** kwargs ):
1719 with io .open (
@@ -27,7 +29,10 @@ def read(*names, **kwargs):
2729 license = 'GNU GENERAL PUBLIC LICENSE' ,
2830 description = 'PyStateMachine Package' ,
2931 long_description = '%s\n %s' % (
30- re .compile ('^.. start-badges.*^.. end-badges' , re .M | re .S ).sub ('' , read ('README.md' )),
32+ re .compile (
33+ '^.. start-badges.*^.. end-badges' ,
34+ re .M | re .S
35+ ).sub ('' , read ('README.md' )),
3136 re .sub (':[a-z]+:`~?(.*?)`' , r'``\1``' , read ('CHANGELOG.md' ))
3237 ),
3338 author = 'ZigRazor' ,
@@ -40,7 +45,8 @@ def read(*names, **kwargs):
4045 include_package_data = True ,
4146 zip_safe = False ,
4247 classifiers = [
43- # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
48+ # complete classifier list:
49+ # http://pypi.python.org/pypi?%3Aaction=list_classifiers
4450 'Development Status :: 5 - Production/Stable' ,
4551 'Intended Audience :: Developers' ,
4652 'License :: OSI Approved :: GNU GENERAL PUBLIC LICENSE' ,
@@ -61,7 +67,7 @@ def read(*names, **kwargs):
6167 'Topic :: Utilities' ,
6268 ],
6369 project_urls = {
64- 'Changelog' : 'https://github.com/ZigRazor/PyStateMachine/blob/master/CHANGELOG.md' ,
70+ 'Changelog' : changelog_url ,
6571 'Issue Tracker' : 'https://github.com/ZigRazor/PyStateMachine/issues' ,
6672 },
6773 keywords = [
@@ -86,4 +92,4 @@ def read(*names, **kwargs):
8692 'nameless = nameless.cli:main' ,
8793 ]
8894 },
89- )
95+ )
0 commit comments