Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add how to release to pypi

...

Panel

The Apache IoTDB team is pleased to announce the release of Apache IoTDB (incubating) 0.8.1.


Apache IoTDB (incubating) (Database for Internet of Things) is an integrated data management engine

designed for timeseries data. It provides users with services for data collection, storage and analysis. 


The current release is a bug-fix version of 0.8.0, which will makes IoTDB more stable:


  • [IOTDB-172] bug in updating startTime and endTime in TsFileResource
  • Abnormal publishing of sequence and unsequence data folders in DirectoryManager
  • fix a bug in TimeRange's intersects function
  • [IOTDB-202] fix tsfile example data type
  • [IOTDB-195] Bug about 'serializedSize' in ChunkGroupMetaData.java (for Chinese string)
  • [IOTDB-242] fix mvn integration-test failed because the files in the target folder changes

Visit the Apache IoTDB website [1] for general information or
the downloads page [2] for release notes and download information.

Regards,
The Apache IoTDB team


[1] http://iotdb.apache.org
[2] 

http://iotdb.apache.org/#/Download

Disclaimer
Apache IoTDB (incubating) is an effort undergoing incubation at The
Apache Software Foundation (ASF), sponsored by the Apache Incubator.
Incubation is required of all newly accepted projects until a further
review indicates that the infrastructure, communications, and decision
making process have stabilized in a manner consistent with other
successful ASF projects. While incubation status is not necessarily a
reflection of the completeness or stability of the code, it does
indicate that the project has yet to be fully endorsed by the ASF.



发布Python包到Pypi

首先,你要有一个账号,在这里注册:https://pypi.org/account/register/

其次,最好在注册一个测试仓库的账号,在这里https://test.pypi.org/account/register/


自己电脑上需要安装python3、pip3;安装后,还需要安装setuptools和wheel和twine

python3 -m pip install --user --upgrade setuptools wheel
python3 -m pip install --user --upgrade twine

然后,在整个项目编译后(事实上执行完service-rpc的generate-sources后就行),进入service-rpc/target/generate-sources-python文件夹。

控制台运行:

python3 setup.py sdist bdist_wheel


然后就可以发布了:

如果是第一次发布,可以在测试仓库进行实验:

python3 -m twine upload --repository-url https://


test.pypi.org/legacy/ dist/*

完成后的输出示例:

Panel

MacMini-FIT:generated-sources-python hxd$ python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Uploading distributions to https://test.pypi.org/legacy/
Enter your username:

 
Enter your password:
Uploading apache_iotdb-0.9.0rc5-py3-none-any.whl
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 33.5k/33.5k [00:04<00:00, 7.14kB/s]
Uploading apache-iotdb-0.9.0rc5.tar.gz
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 26.0k/26.0k [00:01<00:00, 16.0kB/s]

View at:
https://test.pypi.org/project/apache-iotdb/0.9.0rc5/

网页的效果:https://test.pypi.org/project/apache-iotdb/

然后本地可以下载下来试用试用:

Panel

(官方教程建议使用virtualevn,但是我在virtualevn中pip install的包不生效 很奇怪):

python3 -m pip install --index-url https://test.pypi.org/simple/ apache-iotdb==0.9.0-rc5 (假设版本是0.9.0-rc5)

注意,如果上述命令失败,那说明这个test pypi下没有thrift包,此时可以使用--no-deps参数跳过thrift安装:

python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps apache-iotdb==0.9.0-rc5 (假设版本是0.9.0-rc5)

不过并没有什么用。。因为没有thrift就没法运行。。

所以准确流程是:

python3 -m pip install thrift==0.13.0

python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps apache-iotdb==0.9.0-rc5

然后跑一下client-py下的client-example.py看是否正确。

如果不是在virtualevn环境下,记得用完后删除这个临时包:python3 -m pip uninstall apache-iotdb


一切OK,就可以正式发布了:

python3 -m twine upload  dist/*


这部分内容参考了

https://packaging.python.org/tutorials/packaging-projects/













That is all.