Lightweight Python 3+ client library for Kubernetes (pykube-ng)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
760 B

.PHONY: test docs package upload
VERSION ?= $(shell git describe --tags --always --dirty)
default: package
rm -fr build dist *egg-info .tox/ .cache/ .pytest_cache/ docs/_build/
pipenv run flake8
pipenv run coverage run --source=pykube -m py.test
pipenv run coverage html
pipenv run coverage report
# update autodoc, only needs to be run when new modules are added
pipenv run sphinx-apidoc pykube -o docs/api/ -T --force
pipenv run sphinx-build -M html docs docs/_build
package: test
pipenv run python3 sdist bdist_wheel
pipenv run twine check dist/pykube*
upload: package
pipenv run twine upload dist/pykube*
sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" pykube/