forked from piqe-test-libraries/piqe-ocp-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (25 loc) · 783 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.PHONY: setup-remote dev format lint test build release-test release-prod
setup-remote:
git remote add upstream https://github.com/piqe-test-libraries/piqe-ocp-lib.git
git remote -v
dev:
pip install --upgrade pip poetry
poetry install
format:
poetry run isort piqe_ocp_lib/
poetry run black piqe_ocp_lib/
lint:
poetry run flake8 piqe_ocp_lib/*; \
poetry run black --check --diff piqe_ocp_lib/; \
poetry run isort --check-only --diff piqe_ocp_lib/
test:
poetry run pytest
build: lint test
poetry build
release-test:
poetry config repositories.testpypi https://test.pypi.org/simple
poetry config pypi-token.pypi ${PYPI_TEST_TOKEN}
poetry publish --repository testpypi -n
release-prod:
poetry config pypi-token.pypi ${PYPI_TOKEN}
poetry publish --no-interaction