This is an automated email from the ASF dual-hosted git repository.

jfeinauer pushed a commit to branch feature/improve-py-logging
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 0afc2088d3687356ecb9c0a2196213670c518ea4
Author: Julian Feinauer <[email protected]>
AuthorDate: Sun Apr 4 10:56:51 2021 +0200

    [CLIENT-PY] Added release script to do a pypi release.
---
 client-py/release.sh           | 17 +++++++++++++++++
 client-py/requirements_dev.txt |  5 ++++-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/client-py/release.sh b/client-py/release.sh
new file mode 100755
index 0000000..790fdc1
--- /dev/null
+++ b/client-py/release.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+rm -Rf build
+rm -Rf dist
+rm -Rf iotdb_session.egg_info
+
+# (Re-)build generated code
+(cd ..; mvn clean generate-sources -pl client-py -am)
+
+# Run Linting
+flake8
+
+# Run unit tests
+pytest .
+
+# See https://packaging.python.org/tutorials/packaging-projects/
+python setup.py sdist bdist_wheel
+twine upload --repository pypi dist/*
\ No newline at end of file
diff --git a/client-py/requirements_dev.txt b/client-py/requirements_dev.txt
index 23e35d4..b7ad33c 100644
--- a/client-py/requirements_dev.txt
+++ b/client-py/requirements_dev.txt
@@ -21,4 +21,7 @@
 pytest==6.2.2
 thrift==0.13.0
 flake8==3.9.0
-black==20.8b1
\ No newline at end of file
+black==20.8b1
+# For releases
+twine==3.4.1
+wheel==0.36.2
\ No newline at end of file

Reply via email to