Git Product home page Git Product logo

python-pywana's Introduction

python-pywana

Build Status

Requirements

Howto

On 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

Build and upload package to PyPI manually

Ref.: https://github.com/pypa/twine https://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/*

Change PyPI password in .travis.yml

NOTE: 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

python-pywana's People

Contributors

jm1 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.