forked from pyannote/pyannote-audio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (22 loc) · 1013 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: verify-version-tag
verify-version-tag:
PYTHONPATH='./src/' python setup.py verify
.PHONY: setup-PYPI-credentials
setup-PYPI-credentials:
echo "[distutils]" >> ~/.pypirc
echo "Index-servers = neuralspace" >> ~/.pypirc
echo "[neuralspace]" >> ~/.pypirc
echo "Repository = https://europe-west2-python.pkg.dev/platform-staging-319707/neuralspace/" >> ~/.pypirc
echo "username = $$NS_PYPI_USERNAME" >> ~/.pypirc
echo "password = $$NS_PYPI_PASSWORD" >> ~/.pypirc
# upload package to private pypi server
.PHONY: package-upload
package-upload:
if [ -d "./build" ]; then rm -rf "./build"; fi
if [ -d "./dist" ]; then rm -rf "./dist"; fi
if [ -d "./src/pyannote.audio.egg-info" ]; then rm -rf "./src/pyannote.audio.egg-info"; fi
PYTHONPATH='./src/' python setup.py sdist bdist_wheel
twine upload -r neuralspace dist/*
if [ -d "./build" ]; then rm -rf ./build; fi
if [ -d "./dist" ]; then rm -rf ./dist; fi
if [ -d "./src/pyannote.audio.egg-info" ]; then rm -rf ./src/pyannote.audio.egg-info; fi