unfoldingWord Python Tools
A collection of Python scripts that have proven useful and have been reused.
As the files are moved from their original location into this project, we are trying to make sure they are compatible with both Python 2.7 and 3.5.
To use this library, install it in your Python environment like this:
pip install uw-tools
To install a particular version (tag, branch or commit) use this:
pip install git+git://github.com/unfoldingWord-dev/uw_tools.git@Tag-Branch-or-Commit#egg=uw-tools
Submitting to pypi
Add the library to pypi if you haven't already.
python setup.py sdist bdist_wheel.
- Go to https://pypi.python.org/pypi?%3Aaction=submit_form
- Click "Choose File" and pick
uw_tools.egg-info/PKG-INFO, then click "Add Package Info."
sudo pip install twine
Create settings file ``~/.pypirc`` with these contents:
[distutils] index-servers=pypi [pypi] repository = https://upload.pypi.org/legacy/ username = <USER-NAME> password = <PASSWORD>
Generate the packages and upload
python setup.py sdist bdist_wheel twine upload dist/*