Commit Graph

585 Commits

Author SHA1 Message Date
Elod Illes b9b0d8314c Fix tox 4 compatibility
Change-Id: I2a2790bc64d47a2e39efc0447dbb4db1d513cdaf
2023-02-17 12:47:12 +01:00
OpenStack Release Bot 2afd925af3 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I563831ba25aaf680b89ca4abcec3f4f4446a5ab7
2022-09-14 09:15:30 +00:00
Ghanshyam Mann 319a84d679 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Co-authored-by: zhurong <aaronzhu1121@gmail.com>

Change-Id: Ic1bf1356f5d5a6476d2951818afb35f8b23fed58
2022-06-02 07:11:31 +00:00
zhurong c22568073a Fix py39 base64 has no attribute encodestring
Change-Id: Ida5ba5d2ef0b90b46a226451c8c10c910e5d4112
2022-03-08 06:07:29 +00:00
OpenStack Release Bot d6635aecd6 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Iecf3d5074a1e7470c29e03b6425885e8b9fd166d
2021-09-17 16:40:57 +00:00
Zuul e43cee97ff Merge "Add Python3 xena unit tests" 2021-04-07 06:03:21 +00:00
zhurong 7156485d74 Fix lower-constraints job
Change-Id: I5c23a28660be9c0901befaeb1571cb3b94aca572
2021-04-06 19:56:57 +08:00
OpenStack Release Bot 2be3c97c53 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ibdf1300086b1ca2ddd132f3ab1e12b3dc462f762
2021-03-15 08:55:36 +00:00
OpenStack Release Bot 00e7fdeecc Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ic436d12516f32c3125fe8c3a2cef141c9acdc96d
2020-09-17 17:28:45 +00:00
Hervé Beraud 7ce486b566 drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: I5a9d8d0eadb5272b6956a7ee118209ac7ec1ae76
2020-06-09 12:00:23 +02:00
Hervé Beraud 80e0481b9d Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: If49eb84a883f7a9cd3719953d43c7531bb99fc79
2020-06-02 20:52:11 +02:00
Hervé Beraud 28a63e61e6 Cap jsonschema 3.2.0 as the minimal version
Previous versions of jsonschema (<3.2.0) doesn't support python 3.8 [1].
Python 3.8 is part of the victoria supported runtimes [2] so we now force
to use jsonschema version 3.2.0 to avoid issues, remove ambiguity and ensure
that everything works with python 3 in general.

[1] https://github.com/Julian/jsonschema/pull/627
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: I4168b4798c8bd7dc4d28a4bf3e6c57b3c76012df
2020-05-26 22:11:24 +02:00
Andreas Jaeger eac64428c6 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I6023bc3767c5aaae90be1c5434d024e9ed76e737
2020-05-22 17:16:53 +00:00
Ghanshyam Mann 0b0af564b1 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: I5ab8a43bdca7859288a5f6d2b6adc842608f0eb3
2020-05-12 21:12:13 -05:00
Zuul f4f160f59e Merge "Bump default tox env from py37 to py38" 2020-04-26 01:02:34 +00:00
Sean McGinnis ccdc7f5865
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: Iffacb110a807d6cd26154072ed2f155572eccfc3
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:58 -05:00
Sean McGinnis 74e17f5360
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: Ie9e17477dd4e9bcba3d0525dcb4cffcc8d19cc8f
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:19 -05:00
Sean McGinnis 7397b5a2e5
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: I35d6f1207b57ea40809f78785c69a13c2943e1bc
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:59:22 -05:00
zhurong 54c82d6be8 Remove six usage
Change-Id: I0218c36b7c3c71ebd4c92f18c8bf4c6d7a766c9f
2020-04-16 02:33:40 -07:00
OpenStack Release Bot 62c7f5adfe Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Iec2df345376f48f9a6ee0cc657de716d84149305
2020-04-12 22:54:45 -07:00
Andreas Jaeger fe087e196b Drop pypy testing
The pypy job is failing, OpenStack has long stopped testing it, so
remove it.

Change-Id: I354f7ab53fc2b2d300c7b8ed97483b121efdebc9
2020-04-12 20:37:42 +02:00
Zuul 18f7d3851c Merge "Update the minversion parameter." 2020-04-07 09:39:12 +00:00
Andreas Jaeger dfe5baa27e Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: Ifded1bb28c088a3d262125167770d0ed80f26dc3
2020-04-04 17:14:52 +02:00
Andreas Jaeger 8b834e7075 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I47e9bc0fe940bb84e4b8cf05a37e236ab93f7bb7
2020-03-31 12:30:15 +02:00
Daniel Bengtsson a80befb432 Update the minversion parameter.
Update the minversion parameter to use the python -m pip to install
python packages:

https://tox.readthedocs.io/en/latest/changelog.html#id185

It's recommend to use this. Remove the useless install_command
parameter.

Change-Id: Iebc9d821a7f732b44c61c69337dc9f305aa70658
2020-02-20 15:16:43 +01:00
Daniel Bengtsson c0a1af6aee Deprecated the yamlutils module.
The pyyaml is now safe by default:

https://github.com/yaml/pyyaml/pull/74/files
https://access.redhat.com/security/cve/CVE-2017-18342

So the yamlutils is now useless. We can depracated it and then remove it.

Change-Id: Ibaf782786eef20d6895542e6e66ebf5befe434f0
2020-02-17 10:40:41 +01:00
Ghanshyam Mann fb399ee012 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-solumclient is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal - https://review.opendev.org/#/c/691178/

Change-Id: I7309d339f5906fd8a10920ee9f2f4e03239f6b40
2019-12-13 23:45:02 +00:00
Zuul b3e7f9dd4e Merge "Bump the openstackdocstheme extension to 1.20" 2019-07-09 08:22:24 +00:00
pengyuesheng 04b2556521 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Iff44cbae2283df2f2a9a3100de5af6cdb13c3741
2019-07-08 10:38:43 +08:00
pengyuesheng a636822e00 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details
Depend-On: https://review.opendev.org/#/c/663060/

Change-Id: Ibc085d325f7845486b71460afc941b57c4feb97e
2019-07-08 10:35:37 +08:00
Corey Bryant d9fd6d9742 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I9a2aef0057b415ec95d6731a5c32b64cc758deea
Story: #2005924
Task: #34247
2019-07-05 16:13:48 -04:00
zhurong 405a4528d1 Update contraints url
Change-Id: I0f279511d21b0d7463db7d5c6e6ded750e6c9a47
2019-06-18 14:29:58 +08:00
zhurong 840cfa3296 Fix sphinx requirements
Change-Id: If40295605f5e483830c28f2ee4770514c4816907
2019-05-28 19:43:17 +08:00
jacky06 7aadf46466 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I4b52f6854c839371e9b79bbc512824a71fe52131
2019-04-23 13:45:06 +08:00
OpenDev Sysadmins ad79a633ae OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:29:18 +00:00
Ghanshyam Mann 85e9c7d0af Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I13e8f973822cdb765f4142385825b40704dee604
2019-04-16 17:13:40 +00:00
Tony Breeds d23255300a Uncap jsonschema
We have jsonschema capped at a fairly old version. Other than some
specific releases, it looks like keeping it below 3.0 was added in
I943fd68b9fab3bce1764305a5058df5339470757 without really any explanation
why.

In order to update to a 3.x release we need to:
1. Remove the cap from global-requirements.txt (see Depends-On), leaving
   upper-constraints.txt at a 2.x release
2. Remove the cap from all consumers (this change)
3. Release a new version of consumers that are published to pypi
4. Update upper-constraints.txt with those new releases
5. Update jsonschema in upper-constraints.txt to a 3.X release
   (See: https://review.openstack.org/649789)
6. Test consumers with the change from 5.
7. [Optional] fix issues in consumers that arise from 6.
8. Merge the change from 5.

Change-Id: I1d57fc4255ff18f6cf5a27dbd39f7fa8b1323958
Co-Authored-by: Sean McGinnis <sean.mcginnis@gmail.com>
Depends-On: https://review.openstack.org/649669
2019-04-04 14:00:22 +11:00
Zuul 977717e756 Merge "Add Python 3.6 classifier to setup.cfg" 2019-01-05 04:05:55 +00:00
zhurong fd531abac3 Fix some pep8 error
Change-Id: I805bed4b74a9ea94d38fc9c197920d4fb0377139
2019-01-02 14:20:18 +08:00
98k 8a42ca497f Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I873f067aa721dc57cb1ac3f32517a0d9aa1dd916
2018-12-04 07:15:01 +00:00
qingszhao 6071b437c7 Add Python 3.6 classifier to setup.cfg
Change-Id: Ibb1d12f661230ae1bb5d29e5c4a8eb979b8946fe
2018-11-30 07:30:31 +00:00
zhurong 6db5c94f82 Switch to stestr
Change-Id: Ibc3a5cbf4907a0071873b4d5a95f5d36e23fc6af
2018-09-11 02:13:44 +00:00
Andreas Jaeger 94edf80b7b Use templates for cover and lower-constraints
Use openstack-tox-cover template, this runs the cover job
in the check queue only.

Use openstack-lower-constraints-jobs template

Remove jobs that are part of the templates.

Sort list of templates alphabetically.

Change-Id: Ibaca28e6653c41856648dae5411d335d801dfeb8
2018-09-07 15:09:02 +02:00
Nguyen Hai abe9e8a313 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I03aab492b2e5f2746d32d092bc19d1df66cf0d30
Story: #2002586
Task: #24335
2018-08-17 17:01:26 +09:00
Nguyen Hai 8ca489b09b switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I36089e7a6f872149419bf6dfd49bf6caf24cc725
Story: #2002586
Task: #24335
2018-08-17 17:01:25 +09:00
Nguyen Hai e0547c3c73 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: If672967abb98396e1845aa1df12ba0dc216fe99f
Story: #2002586
Task: #24335
2018-08-17 17:00:33 +09:00
jacky06 726fa1330c Update the home-page
Change-Id: I1dbeebe7e015993bf38e81028846a4a0252c6ab1
2018-07-05 12:41:32 -04:00
Doug Hellmann dd7ed0f4a5 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I1892469a9ace93d8528daa0b3b941c0ee27c8e95
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 17:58:19 -04:00
Doug Hellmann ea1587bceb add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I56d257fa8287ebd4b425d8c7b06737ad8dc1d852
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 18:03:39 -04:00
Nguyen Hai 8e0148d269 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

Change-Id: I3ffb5c54f5526a59b01da51e85c73170e4c973f4
2018-03-21 01:46:23 +09:00