- use the the python3 guestfs bindings, not the old python2
(not availbale anymore on the newer systems);
- fix the compatibility with mysql 8, which unfortunately
removes the shortend for user creation + password setting;
- bump the values in lower-requirements.txt (also requirements.txt
and test-requirements.txt when needed) so they they work with
python 3.8 (inspired by other similar bumps).
Change-Id: Icaa3c008bbe179098244f7bb9d80790068430fe2
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: Ied207eb408517ddffe6cb0478f971afb61be8169
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Update local hacking checks for new flake8.
Note: The repo has been using an uncapped requirements, so was testing with
hacking 2.0 which disabled the old way of local testing integration.
Remove S367 and S368 since they are not working under python3
"NOTE(Kezar): This checks a good enough if we have only py2.7 supported.
As soon as we'll get py3.x we need to drop it or rewrite. You can read more
about it in dev-list archive, topic: "[hacking]proposed rules drop for 1.0"
Also, hacking now has H304 and H306 which test exactly the same.
Change-Id: I0b21554a5f9a69ed631b18c427b80c082011f774
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: Ic07c0f6fa0b23242eb884cc34ac9d963b3030b17
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Requirements:
- bandit 1.6.0 contains a regression in the handling of patterns.
A fix is in place in bandit master, but newer versions introduces
more checks so they are not working as well.
The version is excluded there because is not handled by global
requirements.
Remove the separate requirement file for bandit, because
bandit has been part of test-requirements.txt in the last 3 years.
There is noneed for a separate requirements file anymore.
Even more, the bandit tox environment could be probably removed.
- synchronize the requirements for sphinx and jsonschema with the
current values from the requirements repository to make
the requirements-check job happy.
Jobs:
- temporarily disable the scenario-py3 job until a new stestr
(>2.3.1) is tagged.
Change-Id: Ief8e392fcd2d66a73593abcfda06fc7dbe2e53a6
- Add libpq-dev to bindep.txt
Apparently this is needed after some unclear change.
Without this, psycopg fails to install:
"You need to install postgresql-server-dev-X.Y for building a server-side
extension or libpq-dev for building a client-side application."
- Bump the minimum version of psycopg to 2.7.2
pysycopg 2.6.2 is not able to deal with PostgreSQL 10:
"Error: could not determine PostgreSQL version from '10.6'"
Thanks to https://review.openstack.org/643231
Change-Id: If4ecc6a80bed338a0117adee0e6d361c135d9123
Also switch to pycodestyle from pep8 which requires a bump
of the the version of flake8 too.
Skip the following checks for now:
- E123 Closing bracket does not match indentation of opening bracket's line
- E226 Missing whitespace around arithmetic operator
- E402 Module level import not at top of file
- E731 Do not assign a lambda expression, use a def
- W503 Line break occurred before a binary operator
They should be probably revisited and fixed, if possible,
or skipped individually using # noqa
The following checks reported a limited number of errors and
they were fixed directly in this review:
- E241 Multiple spaces after ','
- E501 Line too long (82 > 79 characters)
Change-Id: I1f185d2efd1adf27a26e3ac93f2e1011c0b63124
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: Ic580dc7ba0684087a81137771fb125f4d412d948
Signed-off-by: Charles Short <zulcss@gmail.com>
Move doc/ and releasenotes/ to openstackdocstheme
and remove the dependency on oslosphinx.
Initialize the correct link to the bug tracker (logABug).
api-ref/ was already properly configured.
Change-Id: I9c0a8ae25b767d895ca5935fa305425f7b8e7ae0
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: I54ffedf66f57c2fac0867f0b888ef01be52544dd
The tests removed here are now available in the Tempest plugin inside
sahara-tests.
Also remove few test dependencies which are not needed anymore (as a result
of this code removal but also of previous changes).
Change-Id: I6394cd0ed01d7799ba303fd36e4777018de16854