File: Makefile

package info (click to toggle)
python-blackboxprotobuf 1.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 696 kB
  • sloc: python: 5,576; makefile: 34; sh: 16
file content (22 lines) | stat: -rw-r--r-- 652 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
all: check test_py2 test_py3
setup_py2:
	rm -rf /tmp/bbpb-python2-tmp
	python2 -m virtualenv /tmp/bbpb-python2-tmp
	. /tmp/bbpb-python2-tmp/bin/activate
	python2 -m pip install -r tests/requirements-python2-dev.txt
test_py2: setup_py2
	python2 -m pytest tests/py_test/
test_py3:
	poetry env use python3
	poetry run python -m pytest tests/py_test/
format:
	poetry run black .
check:
	poetry run mypy --strict blackboxprotobuf/
prepublish:
	poetry build
	poetry config repositories.test-pypi https://test.pypi.org/legacy/
	# poetry config pypi-token.test-pypi TOKEN
	# poetry publish -r test-pypi
	# poetry config pypi-token.pypi TOKEN
	# poetry publish