Update release machinery to include manpages

This commit is contained in:
Ian Cordasco 2016-11-14 09:48:48 -06:00
parent 7e44b47c9e
commit f6f01b469c
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A
3 changed files with 13 additions and 0 deletions

View file

@ -7,3 +7,4 @@ recursive-include docs *.rst *.py
recursive-include tests *.py *.ini *.rst *_diff
recursive-include src *.py
prune docs/build/
include docs/build/man/*

View file

@ -112,6 +112,9 @@ setuptools.setup(
'quiet-nothing = flake8.formatting.default:Nothing',
],
},
data_files=[
('/usr/local/share/man/man1', ['docs/build/man/flake8.1']),
],
classifiers=[
"Environment :: Console",
"Framework :: Flake8",

View file

@ -97,6 +97,13 @@ deps =
-rdocs/source/requirements.txt
commands =
sphinx-build -E -W -c docs/source/ -b html docs/source/ docs/build/html
{[testenv:manpages]commands}
[testenv:manpages]
basepython = python3
deps =
-rdocs/source/requirements.txt
commands =
sphinx-build -E -W -c docs/source/ -b man docs/source/ docs/build/man
[testenv:serve-docs]
@ -121,7 +128,9 @@ skip_install = true
deps =
wheel
setuptools
{[testenv:manpages]deps}
commands =
{[testenv:manpages]commands}
python setup.py -q sdist bdist_wheel
[testenv:release]