2019-10-28 14:12:13 +01:00
|
|
|
# =======================================================
|
2019-11-14 14:44:19 -05:00
|
|
|
# Library lifecycle management.
|
2019-10-28 14:12:13 +01:00
|
|
|
#
|
|
|
|
|
# @author Deezer Research <research@deezer.com>
|
|
|
|
|
# @licence MIT Licence
|
|
|
|
|
# =======================================================
|
|
|
|
|
|
2019-11-21 13:14:48 +01:00
|
|
|
FEEDSTOCK = spleeter-feedstock
|
2019-11-19 11:27:34 +01:00
|
|
|
FEEDSTOCK_REPOSITORY = https://github.com/deezer/$(FEEDSTOCK)
|
|
|
|
|
FEEDSTOCK_RECIPE = $(FEEDSTOCK)/recipe/spleeter/meta.yaml
|
|
|
|
|
|
|
|
|
|
all: clean build test deploy
|
|
|
|
|
|
2019-10-28 14:12:13 +01:00
|
|
|
clean:
|
|
|
|
|
rm -Rf *.egg-info
|
|
|
|
|
rm -Rf dist
|
|
|
|
|
|
2019-11-21 17:48:46 +01:00
|
|
|
build: clean
|
|
|
|
|
sed -i "s/project_name = ''/project_name = 'spleeter'/g"
|
|
|
|
|
sed -i "s/tensorflow_dependency = '[^']*'/tensorflow_dependency = 'tensorflow'/g" setup.py
|
|
|
|
|
python3 setup.py sdist
|
|
|
|
|
|
|
|
|
|
build-gpu: clean
|
|
|
|
|
sed -i "s/project_name = ''/project_name = 'spleeter-gpu'/g"
|
|
|
|
|
sed -i "s/tensorflow_dependency = '[^']*'/tensorflow_dependency = 'tensorflow-gpu'/g" setup.py
|
2019-11-14 14:44:19 -05:00
|
|
|
python3 setup.py sdist
|
2019-10-28 14:12:13 +01:00
|
|
|
|
2019-11-19 11:27:34 +01:00
|
|
|
test:
|
2019-11-14 14:44:19 -05:00
|
|
|
pytest -W ignore::FutureWarning -W ignore::DeprecationWarning -vv --forked
|
2019-10-28 14:12:13 +01:00
|
|
|
|
2019-11-21 13:07:08 +01:00
|
|
|
deploy:
|
2019-11-19 11:27:34 +01:00
|
|
|
pip install twine
|
2019-11-21 17:48:46 +01:00
|
|
|
twine upload --skip-existing dist/*
|