-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
49 lines (38 loc) · 1.05 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.PHONY: init test ci coveralls fmt fmtcheck lint dists testupload liveupload
init:
pip install pipenv --upgrade
pipenv install --dev --skip-lock
test:
pipenv run tox -p auto
ci:
pipenv run pytest --cov=telnyx
coveralls:
pipenv run coveralls
fmt:
pipenv run tox -e fmt
fmtcheck:
pipenv run tox -e fmt -- --check --verbose
lint:
pipenv run tox -e lint
pylintcheck:
pipenv run tox -e pylint
dists:
rm -rf dist
pipenv run python setup.py sdist bdist_wheel
testupload:
# upload keys held in lastpass; save the file to ~/.pypirc-telnyx
test -f ~/.pypirc-telnyx
pipenv run twine upload \
--config-file ~/.pypirc-telnyx \
--repository test \
dist/*
@echo "Check for publishing: https://test.pypi.org/project/telnyx/"
@echo "Check installable : pip install -U -i https://test.pypi.org/simple/ telnyx"
liveupload:
test -f ~/.pypirc-telnyx
pipenv run twine upload \
--config-file ~/.pypirc-telnyx \
--repository live \
dist/*
@echo "Check for publishing: https://pypi.org/project/telnyx/"
@echo "Check installable : pip install -U telnyx"