Various system tools for Linux
Project description
python-pywana
Requirements
- Python 3.5+
- Python 3 bindings for gobject-introspection libraries (not packaged on PyPI, you need to install it from your distribution's repository - it's usually called python3-gi, python-gobject or pygobject)
- GLib and girepository
- dbus-python
- psutil
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywana-2018.0.1.tar.gz
(13.6 kB
view details)
Built Distribution
pywana-2018.0.1-py3-none-any.whl
(16.1 kB
view details)
File details
Details for the file pywana-2018.0.1.tar.gz
.
File metadata
- Download URL: pywana-2018.0.1.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.12.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8172d3035a5edfbdb8d2894772f23655111d3a9d94c6a327e2d8472e1e8f6ee8 |
|
MD5 | 64da4f834ca31f40d5c45a303d990a13 |
|
BLAKE2b-256 | 438b4d3922089d4c45f33e28e00ba5257079179230ad967434c5485b3cd6fab2 |
File details
Details for the file pywana-2018.0.1-py3-none-any.whl
.
File metadata
- Download URL: pywana-2018.0.1-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.12.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4b95ff204b82614cd48c6a33fe0d4948ead143ac8652a878bf51acc93a34000 |
|
MD5 | 76af4be9790c890f4e15cf2f37213f8e |
|
BLAKE2b-256 | 465bd77e54d1facee045541785d6bb524faea449beecc790af760ab3a270ec26 |