-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #523 from benjaoming/makefile
Makefile and py.test
- Loading branch information
Showing
19 changed files
with
2,111 additions
and
1,110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ pip-log.txt | |
# Unit test / coverage reports | ||
.coverage | ||
.tox | ||
.cache | ||
|
||
#Eclipse | ||
.project | ||
|
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
.PHONY: help clean clean-pyc clean-build list test test-all coverage docs release sdist | ||
|
||
help: | ||
@echo "clean-build - remove build artifacts" | ||
@echo "clean-pyc - remove Python file artifacts" | ||
@echo "lint - check style with flake8" | ||
@echo "test - run tests quickly with the default Python" | ||
@echo "testall - run tests on every Python version with tox" | ||
@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 "sdist - package" | ||
|
||
clean: clean-build clean-pyc | ||
|
||
clean-build: | ||
rm -fr build/ | ||
rm -fr dist/ | ||
rm -fr *.egg-info | ||
|
||
clean-pyc: | ||
find . -name '*.pyc' -exec rm -f {} + | ||
find . -name '*.pyo' -exec rm -f {} + | ||
find . -name '*~' -exec rm -f {} + | ||
|
||
lint: | ||
pep8 kalite_zim | ||
|
||
test: | ||
./runtests.py | ||
|
||
test-all: | ||
tox | ||
|
||
coverage: | ||
coverage run --source ka-lite-zim setup.py test | ||
coverage report -m | ||
coverage html | ||
open htmlcov/index.html | ||
|
||
docs: | ||
rm -f docs/ka-lite-zim.rst | ||
# rm -f docs/modules.rst | ||
# sphinx-apidoc -o docs/ ka-lite-zim | ||
$(MAKE) -C docs clean | ||
$(MAKE) -C docs html | ||
sphinx-build -b linkcheck ./docs _build/ | ||
sphinx-build -b html ./docs _build/ | ||
|
||
release: clean | ||
python setup.py sdist upload | ||
python setup.py bdist_wheel upload | ||
|
||
assets: | ||
lessc wiki/static/wiki/bootstrap/less/wiki/wiki-bootstrap.less wiki/static/wiki/bootstrap/css/wiki-bootstrap.css | ||
lessc -x wiki/static/wiki/bootstrap/less/wiki/wiki-bootstrap.less wiki/static/wiki/bootstrap/css/wiki-bootstrap.min.css | ||
|
||
sdist: clean assets | ||
echo "Creating HISTORY.rst" | ||
echo "Latest Changes" > HISTORY.rst | ||
echo "==============" >> HISTORY.rst | ||
echo "" >> HISTORY.rst | ||
echo "This file is auto-generated upon every new release." | ||
echo "" >> HISTORY.rst | ||
echo "Compiled on: `date`::" >> HISTORY.rst | ||
echo "" >> HISTORY.rst | ||
git log --graph --pretty=format:'%h -%d %s (%cr) <%an>' --abbrev-commit | sed "s/^/ /" >> HISTORY.rst | ||
echo "Compiling LESS files to CSS..." | ||
./build-less.sh | ||
python setup.py sdist | ||
ls -l dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
TODO | ||
==== | ||
|
||
Unfinished | ||
---------- | ||
|
||
#. Docs | ||
#. Example plugin | ||
#. Embeddable article template tag | ||
|
||
Ideas | ||
----- | ||
|
||
#. Statistics page/plugin for wiki owners | ||
#. Table plugin: Quickly add a row of data to an existing table and sort data. | ||
#. Make a comments plugin for commenting inline |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.. include:: ../HISTORY.rst | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,8 @@ Contents: | |
release_notes | ||
known_issues | ||
faq | ||
history | ||
todo | ||
|
||
.. include:: ../README.rst | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.. include:: ../TODO.rst | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[pytest] | ||
django_find_project = false | ||
python_files=test_*.py | ||
testpaths=wiki | ||
norecursedirs=testproject .svn _build tmp* dist *.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ commands = | |
|
||
deps = | ||
coverage | ||
pytest | ||
pytest-django | ||
Pillow==2.3.0 | ||
django-classy-tags==0.4 | ||
six==1.6.1 | ||
|
Empty file.
Empty file.
Oops, something went wrong.