File: pypi.sh

package info (click to toggle)
python-lsp-server 1.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 836 kB
  • sloc: python: 8,297; sh: 12; makefile: 4
file content (17 lines) | stat: -rwxr-xr-x 464 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash -e

if [ -z "$CI" ]; then
    echo "Will only continue on CI"
    exit
fi

# build package and upload to private pypi index
rm -f ~/.pypirc
echo "[distutils]" >> ~/.pypirc
echo "index-servers = pypi-private" >> ~/.pypirc
echo "[pypi-private]" >> ~/.pypirc
echo "repository=https://$PYPI_HOST" >> ~/.pypirc
echo "username=$PYPI_USERNAME" >> ~/.pypirc
echo "password=$PYPI_PASSWORD" >> ~/.pypirc

python setup.py bdist_wheel sdist upload -r pypi-private