...
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:
Visit the Apache IoTDB website [1] for general information or Regards, [1] http://iotdb.apache.org http://iotdb.apache.org/#/Download Disclaimer |
发布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/* View at: |
网页的效果: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) 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.