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.
 
 
 

44 lines
1.0 KiB

VERSION=$(shell python3 ./setup.py --version)
.RECIPEPREFIX +=
.PHONY: install uninstall all distclean test bumpversion tag dist push release
all: | uninstall install distclean
install:
sudo python3 ./setup.py build install
uninstall:
sudo pip3 uninstall -y scrippy-db
distclean:
sudo rm -Rf ./build \
./dist \
./scrippy_db.egg-info \
./scrippy_db/__pycache__ \
./scrippy_db/db/__pycache__ \
./tests/__pycache__ \
./junit_report.xml \
./.pytest_cache \
./.coverage
test:
python3 -m pytest --cov=scrippy_db --junitxml=./junit_report.xml
bumpversion:
bump2version patch
tag:
VERSION=$(shell python3 ./setup.py --version)
git add setup.cfg .bumpversion.cfg
git commit -m 'increment version [ci-skip]'
git tag "${VERSION}"
dist:
python3 setup.py sdist bdist_wheel register -r local upload -r local
push:
git push origin
git push --tags
release: | distclean test bumpversion tag dist push