File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ include HOWTORELEASE.rst
99include tox.ini
1010include setup.py
1111
12+ recursive-include scripts *.py
13+
1214include .coveragerc
1315
1416recursive-include bench *.py
Original file line number Diff line number Diff line change 1+ """
2+ Script used by tox.ini to check the manifest file if we are under version control, or skip the
3+ check altogether if not.
4+
5+ "check-manifest" will needs a vcs to work, which is not available when testing the package
6+ instead of the source code (with ``devpi test`` for example).
7+ """
8+
9+ from __future__ import print_function
10+
11+ import os
12+ import subprocess
13+ import sys
14+
15+
16+ if os .path .isdir ('.git' ):
17+ sys .exit (subprocess .call ('check-manifest' , shell = True ))
18+ else :
19+ print ('No .git directory found, skipping checking the manifest file' )
20+ sys .exit (0 )
21+
Original file line number Diff line number Diff line change 5252 restructuredtext_lint
5353 check-manifest
5454commands =
55- check-manifest
55+ {envpython} scripts/ check-manifest.py
5656 flake8 pytest.py _pytest testing
5757 rst-lint CHANGELOG.rst HOWTORELEASE.rst README.rst
5858
You can’t perform that action at this time.
0 commit comments