-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (30 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
.PHONY: docs
init-actions:
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
python -m black tls_requests
python -m isort tls_requests
python -m flake8 tls_requests
test:
tox -p
rm -rf *.egg-info
test-readme:
python setup.py check --restructuredtext --strict && ([ $$? -eq 0 ] && echo "README.md and CHANGELOG.md ok") || echo "Invalid markup in README.md or CHANGELOG.md!"
pytest:
python -m pytest tests
coverage:
python -m pytest --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=tls_requests tests
docs:
mkdocs serve
publish-test-pypi:
python -m pip install -r requirements-dev.txt
python -m pip install 'twine>=6.0.1'
python setup.py sdist bdist_wheel
twine upload --repository testpypi --skip-existing dist/*
rm -rf build dist .egg wrapper_tls_requests.egg-info
publish-pypi:
python -m pip install -r requirements-dev.txt
python -m pip install 'twine>=6.0.1'
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
rm -rf build dist .egg wrapper_tls_requests.egg-info