-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 726 Bytes
/
Makefile
File metadata and controls
26 lines (21 loc) · 726 Bytes
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
init:
python3 -m pip install -r requirements.txt
python3 -m pip install -r requirements-dev.txt
test:
python3 -m pytest tests
build:
python3 -m build
pypi:
python3 -m twine upload --repository testpypi dist/*
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps keyctl
pypi-real:
@read -r -p "Are you sure to upload to real pypi? " INPUT; \
if [ "$$INPUT" != "y" ] ; then exit 1 ; fi
python3 -m twine upload dist/*
clean:
pip freeze | xargs pip uninstall keyctl -y
find . -type f -name '*~' -delete
find . -type f -name '*.o' -delete
find . -type f -name '*.pyc' -delete
find . -type d -name '__pycache__' -delete
rm -rf build dist .cache *.egg-info .pytest_cache tests/.pytest_cache