Commit Graph

153 Commits

Author SHA1 Message Date
Luigi Toscano 8a026b95bd Focal-related fixes: libguestfs, mysql 8, requirements
- 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
2020-09-22 18:10:10 +02:00
Ghanshyam Mann 1c6da575c1 Fix hacking min version to 3.0.1
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
2020-05-12 21:01:29 -05:00
Zuul b41fadaf7e Merge "Update hacking for Python3" 2020-04-23 10:15:47 +00:00
Andreas Jaeger 36d8b35478 Update hacking for Python3
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
2020-04-22 15:45:44 +02:00
Sean McGinnis 551f58b978 Use unittest.mock instead of third party mock
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>
2020-04-22 15:40:48 +02:00
Luigi Toscano c5aafbc3ed Fix requirements (bandit, sphinx, jsonschema) and jobs
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
2019-06-17 15:43:10 +02:00
Luigi Toscano f0a1cc99d0 Fix the lower-requirements job: libpq-dev, psycopg 2.7
- 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
2019-03-18 23:36:42 +01:00
Luigi Toscano 61b0b2e038 Bump the version of hacking to 1.1.0, with few fixes
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
2018-11-26 19:03:02 +01:00
Charles Short 1e14e8d30e Switch ostestr to stestr
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>
2018-06-26 00:27:03 +02:00
Nguyen Hai edc7097416 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Remove the '[build_sphinx]' section as described in:
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Change-Id: Ia8e8d6b4e23c2737a9e948e7c4b682dca697f6a4
2018-03-27 19:48:02 +09:00
OpenStack Proposal Bot 809f93778a Updated from global requirements
Change-Id: I79788e84c73f141fe1f52df27c42e6565f98a86d
2018-03-15 08:08:20 +00:00
OpenStack Proposal Bot 9868888eb1 Updated from global requirements
Change-Id: I1c428b449f21e7f9b33c10621ff16ca3d3c2f9ba
2018-03-13 07:31:38 +00:00
OpenStack Proposal Bot acec53bc0b Updated from global requirements
Change-Id: I49f5ac61be59995f4d2645bef8df51a890e61dad
2018-03-10 13:53:24 +00:00
OpenStack Proposal Bot 64ed2fb15b Updated from global requirements
Change-Id: I070ede3c9e3fb4b21155f258822d0b28ad7ec35d
2018-01-24 01:35:04 +00:00
OpenStack Proposal Bot 58816b4c44 Updated from global requirements
Change-Id: I6503014ca815329191d08b402d31abee817ae905
2018-01-18 03:33:43 +00:00
OpenStack Proposal Bot 4492b1d05c Updated from global requirements
Change-Id: Ib191bc328f8edd688733e267a9cbb62985f69a3e
2018-01-16 04:34:18 +00:00
OpenStack Proposal Bot de3c7a9efb Updated from global requirements
Change-Id: I3777b6f2e3cd621cf48fb34f534aa27c04a84b93
2017-11-21 15:54:20 +00:00
OpenStack Proposal Bot f6c217d358 Updated from global requirements
Change-Id: I06f1da2319c28d4adf688a80a36d9b8e1db34069
2017-11-16 11:27:55 +00:00
OpenStack Proposal Bot f6c3c6eba5 Updated from global requirements
Change-Id: I5251e857b1e38ed5ada3f21c3b340548ca610f3e
2017-09-16 23:24:45 +00:00
OpenStack Proposal Bot d5e5f9a359 Updated from global requirements
Change-Id: I012291b7a261d3ba48443c0d0c87cf667af8cac3
2017-09-14 00:43:25 +00:00
OpenStack Proposal Bot 22034f9408 Updated from global requirements
Change-Id: Ibf36a4bae4566505a591eb01a129b17ed1f389c5
2017-08-18 11:43:03 +00:00
OpenStack Proposal Bot e97e7b9451 Updated from global requirements
Change-Id: Ibc2b730b14efacce752bbcf7d7146166614ed2d5
2017-08-18 04:53:06 +00:00
OpenStack Proposal Bot 68cb600d5b Updated from global requirements
Change-Id: Ia40151c823e6d000f82443b23f132a72373d125e
2017-07-28 04:26:45 +00:00
OpenStack Proposal Bot ea3327946e Updated from global requirements
Change-Id: I33c2646d47265b2c08446f4c1b6db18788d622e7
2017-06-27 12:23:17 +00:00
Luigi Toscano ddc87b149f doc: switch to openstackdocstheme and add metadata
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
2017-06-23 19:28:12 +02:00
OpenStack Proposal Bot e172325b62 Updated from global requirements
Change-Id: I9b142faa85244fad8ea1b58f397f15b405c6b7f9
2017-06-08 06:11:12 +00:00
OpenStack Proposal Bot bb52971341 Updated from global requirements
Change-Id: I71661910c727d9189d170e6acd8e5e171c82c965
2017-06-07 20:17:23 +00:00
OpenStack Proposal Bot 8f406bcfb9 Updated from global requirements
Change-Id: I280fd75d9e6ba229452805f45baaf83806629c82
2017-05-15 00:55:40 +00:00
Iwona Kotlarska 6668dfc172 install saharaclient from pypi if not from source
Closes-Bug: 1674829
Change-Id: I880437be19f3a45fbca77957dcbaf400cde7ea85
Signed-off-by: Iwona Kotlarska <iwona260909@gmail.com>
2017-03-23 14:19:25 +01:00
OpenStack Proposal Bot 119feff03c Updated from global requirements
Change-Id: I875b1b5c1a468b979c3320a4ccc23ea42236ee9c
2017-03-02 17:53:46 +00:00
ricolin 7b93aa636c [Fix gate]Update test requirement
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
2017-03-02 19:55:44 +08:00
OpenStack Proposal Bot 467ea80340 Updated from global requirements
Change-Id: Idd9eeeeca9a46d68e5c7d8a84ddcf4a8326744a8
2017-02-10 09:50:41 +00:00
OpenStack Proposal Bot 2fa5c5ecfe Updated from global requirements
Change-Id: I93888d5e7d635663a803600c2ab873ee8489f34d
2016-12-22 19:10:27 +00:00
OpenStack Proposal Bot a5c84c74c3 Updated from global requirements
Change-Id: Ia457d0562bac33f8f3dd43a71d543b927d22f8f5
2016-11-15 19:58:54 +00:00
OpenStack Proposal Bot c566fbb752 Updated from global requirements
Change-Id: Idfd061dabbefa96410def7303df4910baaee1452
2016-11-02 15:41:16 +00:00
OpenStack Proposal Bot 2a357c8d2f Updated from global requirements
Change-Id: I7afec0c7d404f1db891c53892719ae9aea10bd3b
2016-10-22 01:28:02 +00:00
OpenStack Proposal Bot 609b462d6f Updated from global requirements
Change-Id: I593b559c1be4197a1d71379d0ee07311bc7ba432
2016-09-30 10:24:52 +00:00
OpenStack Proposal Bot f7a254ae2e Updated from global requirements
Change-Id: I185d0805d28691fed0e3d2b3af19566419c9f4b8
2016-09-28 17:01:28 +00:00
OpenStack Proposal Bot 3fb3c4b8db Updated from global requirements
Change-Id: I165eb20cffb7a52aa1a1bfac79e5a3d96de5fa31
2016-09-27 10:08:11 +00:00
Luigi Toscano b3447fbf90 Remove Tempest-like tests for clients (see sahara-tests)
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
2016-09-09 16:43:43 +02:00
OpenStack Proposal Bot 836e6fe9d9 Updated from global requirements
Change-Id: I7272b265c6e68a07ca6c1c3d873a440182376a1c
2016-08-31 18:31:42 +00:00
OpenStack Proposal Bot 5ccdc8e608 Updated from global requirements
Change-Id: I9ad60e795a692784ba5145d5855e37d8e12bc844
2016-08-31 09:15:17 +00:00
OpenStack Proposal Bot 4eda72171f Updated from global requirements
Change-Id: Icadec23c209627e303af269f73afdd6c2722d4f7
2016-08-26 22:13:33 +00:00
OpenStack Proposal Bot 68e70f9a37 Updated from global requirements
Change-Id: I07252d430a7361b32ac82c62d30b76f729483b10
2016-08-18 05:57:20 +00:00
OpenStack Proposal Bot 34419789e7 Updated from global requirements
Change-Id: Ic1f28787b5cea87a5a5d5f44cb4b2867345bcf48
2016-08-06 05:48:37 +00:00
OpenStack Proposal Bot 60763fc355 Updated from global requirements
Change-Id: I31d857b80ba3bc9d0145b41cadfcb4d1dcb02aca
2016-07-30 01:24:46 +00:00
OpenStack Proposal Bot 357ec362b9 Updated from global requirements
Change-Id: I2d61805c68efe90e0b53e6d1e2af903e7af08827
2016-06-30 22:05:22 +00:00
Jenkins 3c107bff2b Merge "Moving WADL docs to Sahara repository" 2016-06-30 19:49:00 +00:00
OpenStack Proposal Bot f51e04e06a Updated from global requirements
Change-Id: I44fdce481d58962f28dd13752ac065007d320462
2016-06-24 03:18:13 +00:00
OpenStack Proposal Bot ddc2eebfeb Updated from global requirements
Change-Id: Ifaaccebac97ed82aa6ff73241418abbb4ff3c06a
2016-06-22 20:03:18 +00:00