fix for python 3.12 - re.compile SyntaxWarning
[smsapi-python.git] / Makefile
blob55bf126be8e4ed26502f70dfcc8ff2415d23e881
1 .PHONY: dist tests
3 PYTHON = python3
5 PROJECT := smsapi-client
6 EGG_INFO := $(subst -,_,$(PROJECT)).egg-info
9 venv:
10 @${PYTHON} --version || (echo "Python is not installed."; exit 1)
11 virtualenv --python=${PYTHON} venv
14 install: venv
15 . venv/bin/activate; pip install .
18 tests:
19 . venv/bin/activate; python runtests.py
22 clean-venv:
23 rm -rf venv
26 clean:
27 rm -rf dist build
28 rm -rf $(EGG_INFO)
30 find . -name '*.pyc' -delete
31 find . -name '__pycache__' -delete
34 clean-all: clean clean-venv
37 dist: clean
38 . venv/bin/activate; python setup.py sdist
39 . venv/bin/activate; python setup.py bdist_wheel
42 release: dist
43 . venv/bin/activate; python -m twine upload dist/*