Skip to content

Commit

Permalink
Include all files in the PyPI releases
Browse files Browse the repository at this point in the history
- Included tests, examples, etc in MANIFEST.in.
- Made git ignore files that should not be included in the package.
- Added tox test environment which runs check-manifest to validate the
  MANIFEST.in file.

Downstreams like Debian prefer the PyPI packages to include everything
from the Git repo, especially changelogs and test suites. To make the
installation with pip as lightweight as possible, it is encouraged to
build and upload Python wheels in addition to the sdist tarball.
  • Loading branch information
jodal committed Jul 26, 2017
1 parent f433098 commit 00c40e8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
hbmqtt/__pycache__
*.egg-info
*.pyc

.idea/hbmqtt.iml
.tox/
__pycache__
build/
dist/
tests/plugins/test.db
17 changes: 16 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
recursive-include scripts *.yaml
include *.rst
include *.txt
include license.txt
include samples/passwd
include tests/plugins/passwd
include tox.ini

recursive-include docs *.css
recursive-include docs *.html
recursive-include docs *.py
recursive-include docs *.rst
recursive-include docs Makefile
recursive-include samples *.crt
recursive-include samples *.py
recursive-include scripts *.yaml
recursive-include tests *.crt
recursive-include tests *.py
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ envlist =
py344,
py35,
coverage,
#flake8
#flake8,
check-manifest

[testenv]
deps =
Expand All @@ -24,3 +25,6 @@ deps =
coverage
-rrequirements.txt

[testenv:check-manifest]
deps = check-manifest
commands = check-manifest

0 comments on commit 00c40e8

Please sign in to comment.