The unit test fails with the following error:
```
ModuleNotFoundError: No module named 'extras'
```
This patch fixes the gate by adding `extras` package to
test-requirements.txt.
Change-Id: Idb653575b4a7a8ecd5f484cd23ba2c06429f8f28
Hacking 4.0.0 has introduce new optimal assert checks.
Please refer [1] for more details.
Additionally Hacking has enabled some new checks by default,
and the next update to the new release will introduce failures
in heat-translator pep8 jobs.
The main impact is from I122d250cab90964c346e9d53046a97c25054bc00.
This patch adopts new optimal assert check.
[H211]: Change assertTrue(isinstance(A, B)) to
assertIsInstance(A, B).
On bumping up the hacking version, below mention pep8 jobs failed.
This patch address the issues now, when the new hacking release starts
being used it will not cause a disruption.
pep8 run-test: commands[0] | flake8
./translator/tests/test_utils.py:51:13: H211: Use assert{Is,IsNot}instance
self.assertTrue(
[1] https://docs.openstack.org/releasenotes/hacking/unreleased.html#relnotes-4-0-0
Change-Id: Iae79b8c5c6873d6bf5f6ef1b427dc8c60bade03f
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.
Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.
To avoid similar gate break in future, we need to bump the hacking min
version.
- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
Change-Id: I1b80db04389256f0629de9bec1f2045b63250bd2
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Remove hacking and friends from lower-constraints, they are not needed
for installation.
Change-Id: I36cc496d9374169b0eafdf8d66747b07f2b2cabb
- Change to openstackdocstheme which is a theme and extension
support for Sphinx documentation that is published to
docs.openstack.org and developer.openstack.org.
- This patch also updates README.rst
Change-Id: I5922eb9b0f5835be65a5ba3eead78bdf92458452
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848
Change-Id: I4e6679e5cb1ae3858c1d1c717c96c49878a72c78
Update the requirements and test-requirements files to match with
global-requirements. A hacking update will be performed in a
separate commit.
Change-Id: I3fb976c00fe97378cbe1e2291a911be755254e41
Use the theme that is bundled with oslosphinx to create a more
'openstack' themed documentation site.
Change-Id: Iaeb9aed5fc7e1f0dd78ff847dbcb70a624e944f9
Running a test with the pdb debugger was difficult because
tox captures output and causes the pdb prompt to quit.
Tips for how to run with debug are provided here:
https://wiki.openstack.org/wiki/Testr#Debugging_.28pdb.29_Tests
This change puts these commands into a debug env in tox.ini so
you can do a command like
tox -e debug
and when it hits your breakpoint you'll get the debug prompt.
Change-Id: I84b2df606db17209706d12f6f6a03e7812210d53
Use the default theme since the projects under stackforge should
not be using the openstack brand, and oslosphinx extensions when
building documentation
Change-Id: I075f3ec3524a85ceabd228dc8085752e9f608b42
Add .getreview file and add files generated via cookiecutter template.
Also delete some originally added files to have project's initial layout
ready.
Change-Id: I494f52469b5a4aff1c1f12d58bcf41140ad3e680