Python package wrapping the Gerrit command line API
Python package wrapping the Gerrit command line API.
This is very much a work in progress, and intended to be the basis for building more sophisticated scripts and applications, for example automating complex work flows in large projects.
This project was started as a test-bed for me to explore the wider world of Python, such as:
Basically, everything that goes into making an industrial-strength Python library or application. So you are going to see novice mistakes and code which is not idiomatic.
All contributions and suggestions are welcome, and indeed that’s the logic behind making this open source. I want to learn from the experience of those who’ve been there before me.
If you have any suggestions or questions about gerritssh feel free to email me at firstname.lastname@example.org.
If you encounter any errors or problems with gerritssh, please let me know! Open an Issue at the GitHub http://github.com/kdopen/gerritssh main repository.
The full documentation is at http://gerritssh.rtfd.org.
Fixes #4 - Unit tests are not sufficient
Added a baseline set of unit tests which perform end-to-end validation against a live Gerrit instance if GSSH_TEST_INSTANCE is set in the environment.
Corrects a bug found in the ssh client disconnect function by the new tests.
Adds new and extended make targets to better clean and test the package.
Updated documentation accordingly, including expanded testing information.
Removed pypi from the list of environments used on travis-ci.
The tests all run fine under pypi locally, but something in travis’s pypi environment seems to be broken since they started supporting Python 3.4.
Fixes #1 - gsshcli.py requires __version__ attribute
Moved VERSION.py to inside the package so the metadata is avaialable to the package and its clients, then modified setup.py and conf.py to use execfile to read the data for their own purposes.
Fixes #2 - gsshcli.py query command fails when –limit option used
The demo script now reconstitues all option arguments as strings.
Fixes #3 - Query command throws TypeError under Python2.7
The JSON responses from the query command are correctly converted to strings in Python 2.x.
Initiates unit-test coverage reporting via coveralls.io