Commit 895b7690 authored by dboe's avatar dboe
Browse files

removed all clutter for fresh dough invasion

parent 8a381715
[run]
omit =
# omit plotting since they are hard to test
tfields/plotting/*.py
[submodule "make"]
path = make
url = https://gitlab.mpcdf.mpg.de/dboe/make.git
CURRENT_PATH := $(shell pwd)
MODULE := $(shell basename $(CURRENT_PATH))
VERSION := $(shell python -c "import sys; import $(MODULE); sys.stdout.write($(MODULE).__version__)")
SOURCES := $(shell find $(MODULE) -name '*.py')
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SPHINXSOURCEDIR = ./docs
SPHINXBUILDDIR = docs/_build
test: FORCE
# py.test --doctest-modules
nosetests --with-doctest --logging-level=ERROR
coverage:
# coverage run $(MODULE) test
nosetests --with-doctest --with-coverage --cover-erase --cover-package=$(MODULE)
coverage report
coverage html
firefox htmlcov/index.html
clean:
coverage erase
rm -rf docs/_build/*
rm -rf docs/source
publish:
@while [ -z "$$CONTINUE" ]; do \
read -r -p "Have you changed the __version__ attribute in <module_name>/__init__.py??? If yes, type Y or y to continue. Type anything else to exit. [y/N]: " CONTINUE; \
done ; \
[ $$CONTINUE = "y" ] || [ $$CONTINUE = "Y" ] || (echo "Exiting."; exit 1;)
@echo "... publishing ..."
@echo "New Version: $(VERSION)"
git tag -a v$(VERSION) -m "Version $(VERSION) tag" # tag version
git push origin v$(VERSION) # explicitly push tag to the shared server
rm -f dist/* # could become unnecessary, if you find a way to specify 'twine upload dist/transcoding-$(VERSION).tag.gz' in last step
python setup.py sdist # building package
twine upload dist/* # publish package
untag:
# remove last tag. mostly, because publishing failed
git tag -d v$(VERSION)
git push origin :refs/tags/v$(VERSION)
docs: Makefile $(SOURCES)
# link apidoc to source
sphinx-apidoc -o docs/source/ $(MODULE)
# build html documentation with sphinx
# @$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(0)
sphinx-build -M html docs docs/_build
# open the html slides
python -m webbrowser docs/_build/html/index.html
FORCE: ;
../make/python/docs/Makefile
\ No newline at end of file
../README.md
\ No newline at end of file
../make/python/docs/conf.py
\ No newline at end of file
../make/python/docs/index.rst
\ No newline at end of file
Subproject commit 26fd6192f92b8b24463d4f81100f32eac88dab81
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment