You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by jf...@apache.org on 2021/04/04 08:59:28 UTC
[iotdb] branch feature/improve-py-logging updated (1c5b5da ->
c4bad58)
This is an automated email from the ASF dual-hosted git repository.
jfeinauer pushed a change to branch feature/improve-py-logging
in repository https://gitbox.apache.org/repos/asf/iotdb.git.
from 1c5b5da [CLIENT-PY] Applied flake8 and black for reformatting.
new 0afc208 [CLIENT-PY] Added release script to do a pypi release.
new c4bad58 [CLIENT-PY] Improved Release Documentation.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
client-py/README.md | 18 +++++++++++++++++-
client-py/release.sh | 17 +++++++++++++++++
client-py/requirements_dev.txt | 5 ++++-
3 files changed, 38 insertions(+), 2 deletions(-)
create mode 100755 client-py/release.sh
[iotdb] 01/02: [CLIENT-PY] Added release script to do a pypi
release.
Posted by jf...@apache.org.
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 <j....@pragmaticminds.de>
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
[iotdb] 02/02: [CLIENT-PY] Improved Release Documentation.
Posted by jf...@apache.org.
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 c4bad5839fa6e0578d87fb354bec235eeba0bb22
Author: Julian Feinauer <j....@pragmaticminds.de>
AuthorDate: Sun Apr 4 10:58:49 2021 +0200
[CLIENT-PY] Improved Release Documentation.
---
client-py/README.md | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/client-py/README.md b/client-py/README.md
index c2e03cb..2b80057 100644
--- a/client-py/README.md
+++ b/client-py/README.md
@@ -190,4 +190,20 @@ Both can be run by `black .` or `flake8 .` respectively.
To do a release just ensure that you have the right set of generated thrift files.
Then run linting and auto-formatting.
Then, ensure that all tests work (via `pytest .`).
-Then you are good to go to do a release!
\ No newline at end of file
+Then you are good to go to do a release!
+
+### Preparing your environment
+
+First, install all necessary dev dependencies via `pip install -r requirements_dev.txt`.
+
+### Doing the Release
+
+There is a convenient script `release.sh` to do all steps for a release.
+Namely, these are
+
+* Remove all transient directories from last release (if exists)
+* (Re-)generate all generated sources via mvn
+* Run Linting (flake8)
+* Run Tests via pytest
+* Build
+* Release to pypi