You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2020/11/03 19:49:05 UTC
[iotdb] 05/05: finish client-py module for pypi
This is an automated email from the ASF dual-hosted git repository.
hxd pushed a commit to branch fix_pypi
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit db8d90842bbc42c5473ce07f653e9d2a3c12657f
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Wed Nov 4 03:48:39 2020 +0800
finish client-py module for pypi
---
client-py/pom.xml | 2 +-
client-py/pypi/setup.py | 2 +-
client-py/readme.md | 13 ++++++++++++-
3 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/client-py/pom.xml b/client-py/pom.xml
index 8e060b6..404e159 100644
--- a/client-py/pom.xml
+++ b/client-py/pom.xml
@@ -94,7 +94,7 @@
</goals>
<configuration>
<encoding>utf-8</encoding>
- <outputDirectory>${project.build.directory}/pypi//iotdb_session/</outputDirectory>
+ <outputDirectory>${project.build.directory}/pypi/iotdb_session</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/</directory>
diff --git a/client-py/pypi/setup.py b/client-py/pypi/setup.py
index 1223ff9..23b9a8b 100644
--- a/client-py/pypi/setup.py
+++ b/client-py/pypi/setup.py
@@ -37,7 +37,7 @@ setuptools.setup(
description="Apache IoTDB client API",
long_description=long_description,
long_description_content_type="text/markdown",
- url="https://github.com/apache/incubator-iotdb",
+ url="https://github.com/apache/iotdb",
packages=setuptools.find_packages(),
install_requires=[
'thrift>=0.13.0',
diff --git a/client-py/readme.md b/client-py/readme.md
index c0bcade..abdcb7f 100644
--- a/client-py/readme.md
+++ b/client-py/readme.md
@@ -47,4 +47,15 @@ to generate the python library.
## Session Client & Example
We packed up the Thrift interface in `client-py/src/Session.py` (similar with its Java counterpart), also provided
-an example file `client-py/src/SessionExample.py` of how to use the session module. please read it carefully.
\ No newline at end of file
+an example file `client-py/src/SessionExample.py` of how to use the session module. please read it carefully.
+
+## How to Debug
+
+To debug the python API module, run `mvn generate-sources -pl thrift,client-py`
+
+Then, go to target/pypi to get the complete projects.
+
+But !BE CAUTIOUS!
+All your modifications in target/pypi must be copied manually to src/ folder.
+Otherwise once you run `mvn clean`, you will lose all your effort.
+