Added first module unit tests; started changelog
This commit is contained in:
parent
cccdd667fb
commit
0801762f07
8 changed files with 54 additions and 47 deletions
16
Makefile
16
Makefile
|
|
@ -49,21 +49,13 @@ clean-setup:
|
|||
@ find . -maxdepth 1 -type d -name '*.egg-info' -exec rm -rf "{}" \;
|
||||
|
||||
# =====DOCS=====
|
||||
$(VENV)/bin/sphinx-build: build-venv
|
||||
@ echo "Installing sphinx..."
|
||||
@ "$(VENV)/bin/pip" install --quiet sphinx
|
||||
|
||||
docs: $(VENV)/bin/sphinx-build
|
||||
docs: build-venv
|
||||
@ "$(VENV)/bin/sphinx-apidoc" -o "$(DOCS)/source" "$(SRC)"
|
||||
@ "$(VENV)/bin/sphinx-build" "$(DOCS)/source" "$(DOCS)/build"
|
||||
|
||||
|
||||
# =====TESTS=====
|
||||
$(VENV)/bin/pytest: build-venv
|
||||
@ echo "Installing pytest..."
|
||||
@ "$(VENV)/bin/pip" install --quiet pytest
|
||||
|
||||
test: pytest.ini $(VENV)/bin/pytest
|
||||
test: pytest.ini build-venv
|
||||
@ "$(VENV)/bin/pytest" --color=yes
|
||||
|
||||
|
||||
|
|
@ -78,7 +70,7 @@ publish: package
|
|||
@ echo 'Installing twine...'
|
||||
@ $(VENV)/bin/pip install --quiet --upgrade twine
|
||||
@ [ git symbolic-ref HEAD --short = master ] && { \
|
||||
echo 'Publishing to PyPi Testing...'; \
|
||||
echo 'Publishing to PyPi...'; \
|
||||
$(VENV)/bin/python -m twine upload dist/* ; \
|
||||
} || { \
|
||||
echo 'Publishing to PyPi Testing...'; \
|
||||
|
|
@ -86,7 +78,5 @@ publish: package
|
|||
}
|
||||
|
||||
|
||||
# Publish will also come here someday
|
||||
|
||||
.PHONY: all clean clean-venv clean-cache clean-docs test package docs \
|
||||
build-venv run-venv clean-setup
|
||||
|
|
|
|||
Reference in a new issue