Update documentation

Update various URLs in the docs, add .eggs to .gitignore, and correct
a pep8 problem in gerrit.py

Change-Id: Ie86ff3a7cb6e9c742eac0eab243cc374ead42fb6
This commit is contained in:
Brian Rosmaita 2021-01-04 21:11:10 -05:00
parent 99136e1e16
commit f34c110fd9
4 changed files with 15 additions and 13 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
# Packages
*.egg-info
.eggs/*
.tox
.stestr

View File

@ -4,14 +4,14 @@ Contributing
If you would like to contribute to the development of OpenStack,
you must follow the steps in this page:
http://docs.openstack.org/infra/manual/developers.html
https://docs.opendev.org/opendev/infra-manual/latest/developers.html
If you already have a good understanding of how the system works and your
OpenStack accounts are set up, you can skip to the development workflow section
of this documentation to learn how changes to OpenStack should be submitted for
review via the Gerrit tool:
http://docs.openstack.org/infra/manual/developers.html#development-workflow
https://docs.opendev.org/opendev/infra-manual/latest/developers.html#development-workflow
Pull requests submitted through GitHub will be ignored.
@ -21,14 +21,15 @@ Bugs should be filed on StoryBoard, not GitHub:
To browse the latest code:
https://git.openstack.org/cgit/openstack-infra/gerritlib/tree/
https://opendev.org/opendev/gerritlib
To clone the latest code:
git clone https://git.openstack.org/openstack-infra/gerritlib
git clone https://opendev.org/opendev/gerritlib
Code reviews are handled by gerrit:
http://review.openstack.org
https://review.opendev.org/
Use `git review` to submit patches (after creating a gerrit
account that links to your launchpad account). Example::

View File

@ -22,21 +22,21 @@ Bug report:
Repository:
* https://git.openstack.org/cgit/openstack-infra/gerritlib
* https://opendev.org/opendev/gerritlib
Cloning::
git clone https://git.openstack.org/openstack-infra/gerritlib
git clone https://opendev.org/opendev/gerritlib
Patches are submitted via Gerrit at:
* https://review.openstack.org/
* https://review.opendev.org/
Please do not submit GitHub pull requests, they will be automatically closed.
More details on how you can contribute is available on our wiki at:
More details on how you can contribute is available at:
* http://docs.openstack.org/infra/manual/developers.html
* https://docs.opendev.org/opendev/infra-manual/latest/developers.html
Writing a patch
---------------
@ -55,7 +55,7 @@ Then install the required python packages using pip_::
$ sudo pip install gerritlib
.. _Gerrit: https://code.google.com/p/gerrit/
.. _Gerrit: https://www.gerritcodereview.com/
.. _pyflakes: https://pypi.python.org/pypi/pyflakes
.. _tox: https://testrun.org/tox
.. _pip: https://pypi.python.org/pypi/pip

View File

@ -145,8 +145,8 @@ class GerritWatcher(threading.Thread):
pprint.pformat(data))
self.gerrit.addEvent(data)
except json.decoder.JSONDecodeError:
self.log.debug("Can not parse data from Gerrit event stream: \n%s" %
pprint.pformat(line))
self.log.debug("Cannot parse data from Gerrit event stream: "
"\n%s" % pprint.pformat(line))
else:
# blank read indicates EOF and the connection closed
self.state = DISCONNECTED