mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-03-16 22:40:24 +00:00
Test built distributions prior to release.
This commit is contained in:
parent
64aa79fab7
commit
9c2c1aa831
3 changed files with 18 additions and 12 deletions
|
|
@ -7,7 +7,10 @@ include .gitignore
|
|||
include Makefile
|
||||
exclude tox.ini
|
||||
graft dddp/test/meteor_todos
|
||||
graft dddp/test/build
|
||||
prune docs
|
||||
prune dddp/test/build
|
||||
prune dddp/test/meteor_todos/.meteor/local
|
||||
graft docs
|
||||
prune docs/_build
|
||||
prune docs/node_modules
|
||||
exclude .travis.yml.sh
|
||||
exclude .travis.yml
|
||||
|
|
|
|||
8
Makefile
8
Makefile
|
|
@ -19,10 +19,10 @@ clean-docs:
|
|||
$(MAKE) -C docs/ clean
|
||||
|
||||
clean-dist:
|
||||
rm -f "${SDIST}" "${WHEEL}"
|
||||
rm -rf "${SDIST}" "${WHEEL}" dddp/test/build/ dddp/test/meteor_todos/.meteor/local/
|
||||
|
||||
clean-pyc:
|
||||
find . -type f -name \*.pyc -print0 | xargs -0 rm
|
||||
find . -type f -name \*.pyc -print0 | xargs -0 rm -f
|
||||
|
||||
docs: $(shell find docs/ -type f -name \*.rst) docs/conf.py docs/Makefile $(shell find docs/_static/ -type f) $(shell find docs/_templates/ -type f) README.rst CHANGES.rst
|
||||
$(MAKE) -C docs/ clean html
|
||||
|
|
@ -33,11 +33,11 @@ dist: ${SDIST} ${WHEEL}
|
|||
|
||||
${SDIST}: dist.intermediate
|
||||
@echo "Testing ${SDIST}..."
|
||||
tox --installpkg ${SDIST}
|
||||
tox --notest --installpkg ${SDIST}
|
||||
|
||||
${WHEEL}: dist.intermediate
|
||||
@echo "Testing ${WHEEL}..."
|
||||
tox --installpkg ${WHEEL}
|
||||
tox --notest --installpkg ${WHEEL}
|
||||
|
||||
dist.intermediate: $(shell find dddp -type f)
|
||||
tox -e dist
|
||||
|
|
|
|||
15
tox.ini
15
tox.ini
|
|
@ -118,16 +118,19 @@ deps =
|
|||
|
||||
|
||||
[testenv:dist]
|
||||
install_command=sh -c 'pip install -U "setuptools>=18.5" "wheel>=0.25.0" "pip>=7.1.2" && pip install "$@" && sync' sh {opts} {packages}
|
||||
|
||||
whitelist_externals=sh
|
||||
|
||||
commands =
|
||||
check-manifest --ignore "dddp/test/build*,dddp/test/meteor_todos/.meteor/local*"
|
||||
{envpython} setup.py --quiet --no-user-cfg sdist --dist-dir={toxinidir}/dist/
|
||||
{envpython} setup.py --quiet --no-user-cfg bdist_wheel --dist-dir={toxinidir}/dist/
|
||||
cd docs && make html
|
||||
|
||||
# the `dist` environment doesn't need our package installed
|
||||
skip_install=True
|
||||
{envpython} setup.py --no-user-cfg sdist --dist-dir={toxinidir}/dist/
|
||||
{envpython} setup.py --no-user-cfg bdist_wheel --dist-dir={toxinidir}/dist/
|
||||
sh -c "cd docs && sphinx-build -b html -d _build/doctrees -D latex_paper_size=a4 . _build/html"
|
||||
|
||||
usedevelop=True
|
||||
deps =
|
||||
-rrequirements.txt
|
||||
-rrequirements-dev.txt
|
||||
check-manifest
|
||||
wheel
|
||||
|
|
|
|||
Loading…
Reference in a new issue