mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-30 12:22:58 +00:00
refactor: Makefile
test: improve separator test test: start pypi dist test
This commit is contained in:
23
Makefile
23
Makefile
@@ -1,5 +1,5 @@
|
||||
# =======================================================
|
||||
# Build script for distribution packaging.
|
||||
# Library lifecycle management.
|
||||
#
|
||||
# @author Deezer Research <research@deezer.com>
|
||||
# @licence MIT Licence
|
||||
@@ -9,22 +9,29 @@ clean:
|
||||
rm -Rf *.egg-info
|
||||
rm -Rf dist
|
||||
|
||||
|
||||
build:
|
||||
@echo "=== Build CPU bdist package"
|
||||
@python3 setup.py sdist
|
||||
python3 setup.py sdist
|
||||
@echo "=== CPU version checksum"
|
||||
@openssl sha256 dist/*.tar.gz
|
||||
|
||||
build-gpu:
|
||||
@echo "=== Build GPU bdist package"
|
||||
@python3 setup.py sdist --target gpu
|
||||
python3 setup.py sdist --target gpu
|
||||
@echo "=== GPU version checksum"
|
||||
@openssl sha256 dist/*.tar.gz
|
||||
|
||||
upload:
|
||||
pip-dependencies:
|
||||
pip install twine
|
||||
|
||||
test: pip-dependencies
|
||||
pytest -W ignore::FutureWarning -W ignore::DeprecationWarning -vv --forked
|
||||
|
||||
test-distribution: pip-dependencies
|
||||
bash tests/test_pypi_sdist.sh
|
||||
|
||||
deploy: pip-dependencies
|
||||
twine upload dist/*
|
||||
|
||||
test-upload:
|
||||
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
|
||||
|
||||
all: clean build build-gpu upload
|
||||
all: clean test build build-gpu upload
|
||||
|
||||
Reference in New Issue
Block a user