各种Linux系统工具

pywana的Python项目详细描述


PythonPython

Build Status

要求

如何

Debian Stretch

# Fetch dependencies
sudo apt-get install python3-pip python3-gi python3-dbus python3-psutil

# Install via PyPI
pip3 install --no-deps pywana
# option --no-deps is required because pip falsely assumes that dbus-python is# not installed although it has been installed via debian package python3-dbus# Execute
wana --help

手动构建包并将其上载到pypi

参考号: https://github.com/pypa/twinehttps://www.davidfischer.name/2012/05/signing-and-verifying-python-packages-with-pgp/

# Install python and build tools
sudo apt-get install python3 python3-pip
pip3 install twine

# Install project dependencies# NOTE: libdbus-1-dev (>= 1.8) is required for building dbus-python
sudo apt-get install python3-dev libdbus-1-dev python3-gi
pip3 install -r requirements.txt
# instead of pip3 you can also install all required modules using your system package manager
sudo apt-get install python3-gi python3-dbus python3-psutil

# Create distributions
python3 setup.py build_all

# Sign distributions
find dist/ -type f -exec gpg --detach-sign --armor '{}'\;# Upload to Test PyPI
twine upload --repository-url https://test.pypi.org/legacy/ dist/*

# Upload to PyPI:
twine upload dist/*

在.travis.yml中更改pypi密码

注:Travis CI does not allow for signing PyPI packages

# Install Travis CI Client# Ref.: #  https://github.com/travis-ci/travis.rb#  https://docs.travis-ci.com/user/encryption-keys/#  https://medium.com/@mikkokotila/deploying-python-packages-to-pypi-with-travis-works-9a6597781556
gem install travis
travis login --pro
# cd to git repo
travis encrypt --pro --add deploy.password

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java将Map<String,String>传递给需要Map<String,Object>   java在循环中使用字符串而不是StringBuilder是否会造成内存损失?   jnlp如何更新java控制台JRE?   java更改、修改和重新打包CXFAPI源文件   JavaFXJava应用程序在Fedora上运行一段时间后关闭   使用来自不同类的方法的java   java如何通过ant脚本在linux中使用subst?   java在使用camunda modeler进行base64编码/解码时出错   获取java。netbeans、weblogic和fastswap设置为true时的lang.NoSuchMethodError   java如何提高FinalizerThread在GC中收集对象的优先级   java检测具有相同根的单词   netbeans crud应用程序中的java错误