29 lines
699 B
Makefile
29 lines
699 B
Makefile
lint:
|
|
flake8 --ignore=E402,E501,E712,W503,E203,I002 --exclude=ctfcli/templates **/*.py
|
|
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/*
|