|
@@ -14,18 +14,15 @@ VENV_DIR=${VENV_PREFIX}/.lpschedule-generator
|
|
|
|
|
|
test:
|
|
|
@nosetests
|
|
|
-
|
|
|
.PHONY: test
|
|
|
|
|
|
fmt:
|
|
|
black --include 'lps_gen.py|setup.py|tests/*.py|lpschedule_generator/*.py' .
|
|
|
.PHONY: fmt
|
|
|
|
|
|
-build-dist:
|
|
|
+build:
|
|
|
@python setup.py sdist bdist_wheel
|
|
|
-
|
|
|
-egg:
|
|
|
- @python setup.py egg_info
|
|
|
+.PHONY: build
|
|
|
|
|
|
upload:
|
|
|
@twine upload -r pypi -s --sign-with 'gpg2' \
|
|
@@ -34,20 +31,19 @@ upload:
|
|
|
@twine upload -r pypi -s --sign-with 'gpg2' \
|
|
|
-i '1534 126D 8C8E AD29 EDD9 1396 6BE9 3D8B F866 4377' \
|
|
|
dist/*.whl
|
|
|
-
|
|
|
-.PHONY: build-dist egg upload
|
|
|
+.PHONY: upload
|
|
|
|
|
|
docs:
|
|
|
${GNU_MAKE} -C docs html
|
|
|
+.PHONY: docs
|
|
|
|
|
|
upload-docs: docs
|
|
|
@rsync -avz --delete docs/_build/html/ $(LPSG_DOCS_HOST)
|
|
|
-
|
|
|
-.PHONY: docs upload-docs
|
|
|
+.PHONY: upload-docs
|
|
|
|
|
|
|
|
|
venv:
|
|
|
- rm -rf *.egg-info
|
|
|
+ rm -rf *.egg-info .eggs
|
|
|
${SHELL} -c 'if [[ -d $(VENV_DIR) ]] then mv $(VENV_DIR) $(VENV_DIR).`date +%s`; fi'
|
|
|
${VENV_CMD} --clear --python=python3 $(VENV_DIR)
|
|
|
@echo 'Initialized virtualenv, run' \
|
|
@@ -62,17 +58,19 @@ clean-build:
|
|
|
rm -rf build/
|
|
|
rm -rf dist/
|
|
|
rm -rf *.egg-info
|
|
|
+.PHONY: clean-build
|
|
|
|
|
|
clean-pyc:
|
|
|
find . -name '*.pyc' -exec rm -f {} +
|
|
|
+.PHONY: clean-pyc
|
|
|
|
|
|
clean-venv:
|
|
|
rm -rf ${VENV_DIR}*/
|
|
|
+.PHONY: clean-venv
|
|
|
|
|
|
clean-docs:
|
|
|
${GNU_MAKE} -C docs clean
|
|
|
-
|
|
|
-.PHONY: clean-build clean-pyc clean-venv clean-docs
|
|
|
+.PHONY: clean-docs
|
|
|
|
|
|
dev:
|
|
|
python setup.py develop
|