This repository has been archived by the owner on Dec 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More changes since spending time on sphinxconfig-imgur these past couple of months. Fixing buildign docs on Windows by not executing setup.py (Windows doesn't execute scripts). Importing instead. Fixing linting on Windows (handling \r\n line endings in regex).
- Loading branch information
Showing
4 changed files
with
80 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,51 +59,53 @@ def run(cls): | |
if getattr(project, var) != expected: | ||
raise SystemExit('Mismatch: {0}'.format(var)) | ||
# Check changelog. | ||
if not re.compile(r'^%s - \d{4}-\d{2}-\d{2}$' % VERSION, re.MULTILINE).search(readme()): | ||
if not re.compile(r'^%s - \d{4}-\d{2}-\d{2}[\r\n]' % VERSION, re.MULTILINE).search(readme()): | ||
raise SystemExit('Version not found in readme/changelog file.') | ||
# Check tox. | ||
if INSTALL_REQUIRES: | ||
section = re.compile(r'\ninstall_requires =\n(.+?)\n\w', re.DOTALL).findall(readme('tox.ini')) | ||
contents = readme('tox.ini') | ||
section = re.compile(r'[\r\n]+install_requires =[\r\n]+(.+?)[\r\n]+\w', re.DOTALL).findall(contents) | ||
if not section: | ||
raise SystemExit('Missing install_requires section in tox.ini.') | ||
in_tox = re.findall(r' ([^=]+)==[\w\d.-]+', section[0]) | ||
if INSTALL_REQUIRES != in_tox: | ||
raise SystemExit('Missing/unordered pinned dependencies in tox.ini.') | ||
|
||
|
||
setup( | ||
author='@Robpol86', | ||
author_email='[email protected]', | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
'Environment :: MacOS X', | ||
'Environment :: Win32 (MS Windows)', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX :: Linux', | ||
'Operating System :: POSIX', | ||
'Programming Language :: Python :: 2.6', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: Terminals', | ||
'Topic :: Text Processing :: Markup', | ||
], | ||
cmdclass=dict(check_version=CheckVersion), | ||
description='Generate simple tables in terminals from a nested list of strings.', | ||
install_requires=INSTALL_REQUIRES, | ||
keywords='Shell Bash ANSI ASCII terminal tables', | ||
license=LICENSE, | ||
long_description=readme(), | ||
name=NAME, | ||
packages=[IMPORT], | ||
url='https://github.com/Robpol86/' + NAME, | ||
version=VERSION, | ||
zip_safe=True, | ||
) | ||
if __name__ == '__main__': | ||
setup( | ||
author='@Robpol86', | ||
author_email='[email protected]', | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Console', | ||
'Environment :: MacOS X', | ||
'Environment :: Win32 (MS Windows)', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX :: Linux', | ||
'Operating System :: POSIX', | ||
'Programming Language :: Python :: 2.6', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: Terminals', | ||
'Topic :: Text Processing :: Markup', | ||
], | ||
cmdclass=dict(check_version=CheckVersion), | ||
description='Generate simple tables in terminals from a nested list of strings.', | ||
install_requires=INSTALL_REQUIRES, | ||
keywords='Shell Bash ANSI ASCII terminal tables', | ||
license=LICENSE, | ||
long_description=readme(), | ||
name=NAME, | ||
packages=[IMPORT], | ||
url='https://github.com/Robpol86/' + NAME, | ||
version=VERSION, | ||
zip_safe=True, | ||
) |