-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Makefile and distribute docs in sdist #4526
Changes from 5 commits
a25df14
0d8dec3
d6a324d
839ae66
4a44141
0a51330
b8ec5ac
124addf
c5548d0
f559ac4
395cb3e
5de204b
3ce9ed2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
.PHONY: clean-pyc clean-build docs clean | ||
|
||
help: | ||
@echo "clean - remove all build, test, coverage and Python artifacts" | ||
@echo "clean-build - remove build artifacts" | ||
@echo "clean-pyc - remove Python file artifacts" | ||
@echo "clean-test - remove test and coverage artifacts" | ||
@echo "lint - check style with pep8" | ||
@echo "test - run tests quickly with the default Python" | ||
@echo "test-all - run tests on every Python version with tox DISABLED" | ||
@echo "assets - build all JS/CSS assets" | ||
@echo "coverage - check code coverage quickly with the default Python" | ||
@echo "docs - generate Sphinx HTML documentation, including API docs" | ||
@echo "release - package and upload a release" | ||
@echo "dist - package locally" | ||
@echo "install - install the package to the active Python's site-packages" | ||
|
||
clean: clean-build clean-pyc clean-test | ||
|
||
clean-build: | ||
rm -fr build/ | ||
rm -fr dist/ | ||
rm -fr .eggs/ | ||
rm -fr dist-packages/ | ||
rm -fr dist-packages-temp/ | ||
find . -name '*.egg-info' -exec rm -fr {} + | ||
This comment was marked as spam.
Sorry, something went wrong. |
||
find . -name '*.egg' -exec rm -f {} + | ||
|
||
clean-pyc: | ||
find . -name '*.pyc' -exec rm -f {} + | ||
find . -name '*.pyo' -exec rm -f {} + | ||
find . -name '*~' -exec rm -f {} + | ||
find . -name '__pycache__' -exec rm -fr {} + | ||
|
||
clean-test: | ||
rm -fr .tox/ | ||
rm -f .coverage | ||
rm -fr htmlcov/ | ||
|
||
lint: | ||
pep8 kalite | ||
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong. |
||
|
||
test: | ||
python setup.py test | ||
|
||
test-all: | ||
@echo "Not supported yet" | ||
# tox | ||
|
||
coverage: | ||
coverage run --source kalite_gtk setup.py test | ||
This comment was marked as spam.
Sorry, something went wrong. |
||
coverage report -m | ||
coverage html | ||
open htmlcov/index.html | ||
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong. |
||
|
||
docs: | ||
# rm -f docs/ka-lite.rst | ||
# rm -f docs/modules.rst | ||
# sphinx-apidoc -o docs/ ka-lite-gtk | ||
$(MAKE) -C docs clean | ||
$(MAKE) -C docs html | ||
# open docs/_build/html/index.html | ||
|
||
assets: clean | ||
# Necessary because NPM may have wrong versions in the cache | ||
npm cache clean | ||
npm install --production | ||
node build.js | ||
bin/kalite manage compileymltojson | ||
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong. |
||
|
||
release: clean docs assets | ||
python setup.py sdist --formats=gztar,zip upload --sign | ||
python setup.py sdist --formats=gztar,zip upload --sign --static | ||
ls -l dist | ||
|
||
dist: clean docs assets | ||
python setup.py sdist | ||
python setup.py sdist --static | ||
ls -l dist | ||
|
||
install: clean | ||
python setup.py install |
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
Sorry, something went wrong.