Files
spleeter/Makefile

38 lines
842 B
Makefile
Raw Normal View History

2019-10-28 14:12:13 +01:00
# =======================================================
# Library lifecycle management.
2019-10-28 14:12:13 +01:00
#
# @author Deezer Research <research@deezer.com>
# @licence MIT Licence
# =======================================================
clean:
rm -Rf *.egg-info
rm -Rf dist
2019-10-28 14:12:13 +01:00
build:
@echo "=== Build CPU bdist package"
python3 setup.py sdist
2019-10-28 14:12:13 +01:00
@echo "=== CPU version checksum"
@openssl sha256 dist/*.tar.gz
build-gpu:
@echo "=== Build GPU bdist package"
python3 setup.py sdist --target gpu
2019-10-28 14:12:13 +01:00
@echo "=== GPU version checksum"
@openssl sha256 dist/*.tar.gz
pip-dependencies:
pip install twine
test: pip-dependencies
pytest -W ignore::FutureWarning -W ignore::DeprecationWarning -vv --forked
2019-10-28 14:12:13 +01:00
test-distribution: pip-dependencies
bash tests/test_pypi_sdist.sh
deploy: pip-dependencies
twine upload dist/*
2019-10-28 14:12:13 +01:00
all: clean test build build-gpu upload