From 4e5c77b10c58bdaac04fb6829c2052eaff0009e1 Mon Sep 17 00:00:00 2001
From: vermeul <swen@ethz.ch>
Date: Wed, 25 Sep 2019 11:02:13 +0200
Subject: [PATCH] added pypi.org, back to 0.4.0

---
 .gitlab-ci.yml | 10 ++++++++--
 setup.py       |  2 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e790ac7..8c2ad92 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,3 @@
-image: python:3.7-stretch
-
 stages:
     - style
     - tests
@@ -32,3 +30,11 @@ pypi_test:
         - twine upload -u openbis-team -p $PYPI_PASSWORD --repository-url https://test.pypi.org/legacy/ dist/*
     when: manual
     stage: pypi_upload
+
+pypi_test:
+    script:
+        - pyenv local $(latest_python 3.7)
+        - python setup.py sdist
+        - twine upload -u openbis-team -p $PYPI_PASSWORD dist/*
+    when: manual
+    stage: pypi_upload
diff --git a/setup.py b/setup.py
index 3d02e8e..dc56ee8 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
 
 setup(
     name='jupyter-openbis-extension',
-    version= '0.4.0.dev3',
+    version= '0.4.0',
     author='Swen Vermeul |  ID SIS | ETH Zürich',
     author_email='swen@ethz.ch',
     description='Extension for Jupyter notebooks to connect to openBIS and download/upload datasets, inluding the notebook itself',
-- 
GitLab