forked from CTFd/ctfcli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (23 loc) · 703 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
lint:
ruff check --ignore=E402,E501,E712,I002 --exclude=ctfcli/templates --exclude=build .
black --check --exclude=ctfcli/templates .
format:
black --exclude=ctfcli/templates .
install:
python3 setup.py install
build:
python3 setup.py sdist bdist_wheel
clean:
rm -rf build/
rm -rf dist/
rm -rf ctfcli.egg-info/
publish-test:
@echo "Publishing to TestPyPI"
@echo "Are you sure? [y/N] " && read ans && [ $${ans:-N} == y ]
python3 setup.py sdist bdist_wheel
twine upload --repository test dist/*
publish-pypi:
@echo "Publishing to PyPI"
@echo "ARE YOU ABSOLUTELY SURE? [y/N] " && read ans && [ $${ans:-N} == y ]
python3 setup.py sdist bdist_wheel
twine upload --repository pypi dist/*