diff options
| author | Donald Stufft <donald@stufft.io> | 2016-06-30 13:05:21 -0400 |
|---|---|---|
| committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-06-30 12:05:21 -0500 |
| commit | dcbfcccb7eabd30726fc84485bf7c012a4d3966b (patch) | |
| tree | 1616bd425e56badf20127df0b6db3664e1f29a01 | |
| parent | c95966955b60a446e9d23af0b9500fbc5e43c0cc (diff) | |
| download | py-bcrypt-git-dcbfcccb7eabd30726fc84485bf7c012a4d3966b.tar.gz | |
Fix packaging (#87)
* Ensure that all files are packaged or excluded
* Add a test to ensure our packaging stays correct
| -rw-r--r-- | .travis.yml | 1 | ||||
| -rw-r--r-- | MANIFEST.in | 8 | ||||
| -rw-r--r-- | tox.ini | 11 |
3 files changed, 19 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 456aba7..bbcb336 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,7 @@ matrix: env: TOXENV=pypy CC=clang - python: 2.7 env: TOXENV=pep8 + - env: TOXENV=packaging - python: 3.5 env: TOXENV=py3pep8 - language: generic diff --git a/MANIFEST.in b/MANIFEST.in index 622d66b..93a4480 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,11 @@ include LICENSE README.rst + +include tox.ini .coveragerc include src/build_bcrypt.py + recursive-include src/_csrc * +recursive-include tests *.py + +exclude requirements.txt tasks.py .travis.yml + +prune .travis @@ -1,5 +1,5 @@ [tox] -envlist = py26,py27,pypy,py33,py34,py35,pep8,py3pep8 +envlist = py26,py27,pypy,py33,py34,py35,pep8,py3pep8,packaging [testenv] # If you add a new dep here you probably need to add it in setup.py as well @@ -27,6 +27,15 @@ deps = commands = flake8 . +[testenv:packaging] +deps = + check-manifest + readme_renderer +commands = + check-manifest + python setup.py check --metadata --restructuredtext --strict + + [flake8] exclude = .tox,*.egg select = E,W,F,N,I |
