Commit f697cc13 authored by t's avatar t

Add deploy to PyPI step to CI script

parent 5c6efed7
#Tell Gitlab to load these environental vars from the variables list
variables:
PYPI_USER: SECURE
PYPI_PASS: SECURE
stages:
- build
- installer
......@@ -107,3 +112,34 @@ deploy docs to production:
- public
dependencies:
- build docs
deploy pip to production:
stage: deploy
when: manual
only:
- tags
environment:
name: PyPI
url: https://pypi.python.org/pypi/scikit-surgerycore
tags:
- pip-production
artifacts:
paths:
- dist/
script:
# Install packages required to build/publish
# remove any previous distribution files
- pip install wheel twine setuptools
- rm -rf dist
# bundle installer
- python setup.py bdist_wheel
# Upload to testpypi server
- twine upload --repository pypi dist/* --username $PYPI_USER --password $PYPI_PASS
......@@ -16,6 +16,7 @@ setup(
cmdclass=versioneer.get_cmdclass(),
description='scikit-surgerycore',
long_description=long_description,
long_description_content_type='text/x-rst',
url='https://weisslab.cs.ucl.ac.uk/WEISS/SoftwareRepositories/SNAPPY/scikit-surgerycore',
author='Matt Clarkson',
author_email='YOUR-EMAIL@ucl.ac.uk',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment