Utility and helper functions for common Properly operations in python.
Project description
properly-util-python
Quick Run
- Setup the environment for development by calling ./setup.sh
- Make your changes to the code
- Increase the
version
in setup.py - Run
./tests.sh
to run automated tests.
Uploading the Package
NOTE: This is necessary if you are Installing using pypi, if you install using git this can be skipped
source deploy.sh
deploy.sh "<your_commit_message>" <version>
Make sure you have the latest versions of setuptools and wheel installed:
python3 -m pip install --user --upgrade setuptools wheel
You’ll need to install Twine:
python3 -m pip install --user --upgrade twine
Build dist/
python3 setup.py sdist bdist_wheel
Upload to pypi.org
twine upload dist/*
Source: https://packaging.python.org/tutorials/packaging-projects/
Installing the Package PyPi
pip install properly-util-python
or
pip install --no-cache-dir --upgrade properly-util-python
Installing the package direct from github:
pip install -e git+https://github.com/GoProperly/properly-util-python.git#egg=properly-util-python
Note: -e indicates that extra-url-info is saved for pip freeze: https://pip.pypa.io/en/stable/reference/pip_wheel/#extra-index-url
Resources
Based on this tutorial: http://greenash.net.au/thoughts/2015/06/splitting-a-python-codebase-into-dependencies-for-fun-and-profit/
Currently we are hosting our package in Git since it is quick and easy to set up. However, that has a number of disadvantages, the most visible disadvantage being that pip install will run much slower, because it has to do a git pull every time you ask it to check that foodutils is installed (even if you specify the same commit / tag each time). http://carljm.github.io/tamingdeps/#33
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
Built Distribution
Hashes for properly_util_python-0.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e2b3a93a8be24efd61eeb606662414541f25fa2af683b30786141b06ab01f67 |
|
MD5 | 2755144a650dcb62859b9e3b4633cdcb |
|
BLAKE2b-256 | 7e97f3ee378f8c7f60527ba0c99b3c2a91f9fbc8a6ab54d16723f82af099f177 |
Hashes for properly_util_python-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5919a48c066cb5951b1b70553b284f982a34b5068948ea44f773b7cc8861618 |
|
MD5 | 3f0557d518fc43dc9c38e3711e3f249c |
|
BLAKE2b-256 | d3a0871d7db3733def9130af28a7ea6a0ee589985c3804e6dd4da8ebdb397f31 |