From b3248b458006f1dfc43a9825f5fd2ecafd9720d2 Mon Sep 17 00:00:00 2001 From: mehtank <mehtank> Date: Wed, 28 Apr 2021 16:33:18 -0700 Subject: [PATCH] CI create pypi package on tag --- .gitlab-ci.yml | 10 ++++++++++ rocolib/__init__.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ed45b9a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +build-package: + stage: deploy + image: python:3 + script: + - cat $PYPIRC > /tmp/.pypirc + - pip3 install twine + - python3 setup.py bdist_wheel + - python3 -m twine upload --repository lemur dist/rocolib-${CI_COMMIT_TAG}-py3-none-any.whl --config-file /tmp/.pypirc + only: + - tags diff --git a/rocolib/__init__.py b/rocolib/__init__.py index dbf3307..f0d5c0a 100644 --- a/rocolib/__init__.py +++ b/rocolib/__init__.py @@ -9,7 +9,7 @@ from os.path import realpath from os.path import relpath -__version__ = "0.1" +__version__ = "0.2.0" __author__ = 'UCLA LEMUR' __credits__ = 'The Laboratory for Embedded Machines and Ubiquitous Robots' -- GitLab