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
|