Skip to content

Commit

Permalink
check-manifest build tool
Browse files Browse the repository at this point in the history
  • Loading branch information
temoto committed May 20, 2020
1 parent 828c26d commit 94f48ef
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -10,7 +10,7 @@ cache:

env:
global:
- pip_install_common='pip>=9.0 setuptools>=36.2 wheel>=0.30'
- pip_install_common='pip>=9.0 setuptools>=43.0 wheel>=0.30'
python:
- 2.7
- 3.5
Expand Down
5 changes: 5 additions & 0 deletions MANIFEST.in
Expand Up @@ -2,5 +2,10 @@ recursive-include python2 *.py *.txt
recursive-include python3 *.py *.txt
graft test
graft tests
include *.md
include CHANGELOG
include LICENSE
include python2/httplib2/test/*.txt
include requirements*.txt
global-exclude __pycache__
global-exclude *.py[cod]
3 changes: 3 additions & 0 deletions pyproject.toml
Expand Up @@ -3,3 +3,6 @@ requires = ["setuptools", "wheel"]

[tool.black]
line-length = 121

[tool.check-manifest]
ignore = [".travis.yml", "script/*", "*.tex"]
3 changes: 2 additions & 1 deletion script/release
Expand Up @@ -90,10 +90,11 @@ interactive() {
local venv=./venv-release
if [[ ! -d "$venv" ]] ; then
virtualenv $venv
$venv/bin/pip install -U pip setuptools wheel twine
$venv/bin/pip install -U check-manifest pip 'setuptools>=43.0' wheel twine
fi
$venv/bin/python setup.py clean --all
$venv/bin/python setup.py sdist bdist_wheel
$venv/bin/check-manifest || echo "FIXME check-manifest" >&2

if confirm "Upload to PyPI? Use in special situation, normally CI (Travis) will upload to PyPI. [yN] " ; then
$venv/bin/twine upload dist/* || exit 1
Expand Down

0 comments on commit 94f48ef

Please sign in to comment.