-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (29 loc) · 1.01 KB
/
Copy pathMakefile
File metadata and controls
33 lines (29 loc) · 1.01 KB
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
.EXPORT_ALL_VARIABLES:
PYTHONPATH=./:$PYTHONPATH
PIP_TOOLS_VERSION=7.5.3
.PHONY: lock test publish
lock:
docker run --rm -v "$$(pwd)":/work -w /work python:3.9 \
sh -c "pip install pip-tools==$(PIP_TOOLS_VERSION) && \
pip-compile --generate-hashes --output-file requirements.txt requirements.in && \
pip-compile --generate-hashes --output-file requirements-build.txt requirements-build.in && \
chown $$(id -u):$$(id -g) requirements.txt requirements-build.txt"
test:
docker build -t vcert-tests .
docker run -it --rm --name running-vcert-tests \
--env PYTHONPATH=$$PYTHONPATH \
--env PYTHONUNBUFFERED=$$PYTHONUNBUFFERED \
--env FAKE=$$FAKE \
--env TPP_USER=$$TPP_USER \
--env TPP_PASSWORD=$$TPP_PASSWORD \
--env TPP_URL=$$TPP_URL \
--env TPP_ZONE=$$TPP_ZONE \
--env CLOUD_APIKEY=$$CLOUD_APIKEY \
--env CLOUD_ZONE=$$CLOUD_ZONE \
--env CLOUD_URL=$$CLOUD_URL \
vcert-tests
publish:
pip3 install twine setuptools wheel
rm -rf dist/
python3 setup.py sdist bdist_wheel
twine upload dist/*