From f6f01b469ccabdb78c95399d5cb50d94f69bdef9 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Mon, 14 Nov 2016 09:48:48 -0600 Subject: [PATCH] Update release machinery to include manpages --- MANIFEST.in | 1 + setup.py | 3 +++ tox.ini | 9 +++++++++ 3 files changed, 13 insertions(+) diff --git a/MANIFEST.in b/MANIFEST.in index 74b090b..4d23a63 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -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/* diff --git a/setup.py b/setup.py index 06ae512..996af4d 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/tox.ini b/tox.ini index 2e4504f..fe6e07a 100644 --- a/tox.ini +++ b/tox.ini @@ -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]