Commit Graph

341 Commits

Author SHA1 Message Date
Zuul dd9f5e42b1 Merge "Add Python 3.11 to supported version" 2024-02-02 17:00:11 +00:00
Takashi Kajinami ddd79e2afc Bump hacking
... because hacking 3.0.x is too old.

A few checks are disabled because these detect invalid problems.

Change-Id: I268ae097eecd4c3562b1005658cf2927579659d0
2024-01-26 01:02:28 +00:00
Takashi Kajinami 9aecde33ef Add Python 3.11 to supported version
Change-Id: Ifd5289a75327788e60ff884c390ed0119a820acd
2024-01-25 22:16:50 +09:00
Takashi Kajinami 34aa8194af Remove usage of six
... because this library no longer supports Python 2.

Change-Id: I483d20d08426d8c677e44c81249ebe8235ce37ed
2024-01-25 22:15:20 +09:00
Takashi Kajinami fdde6afa94 doc: Drop DJANGO_SETTINGS_MODULE environment
... because django is not relevant.

Change-Id: I4bc281e492e0f631398046b420174ba0f8b4cd46
2023-12-18 21:06:14 +09:00
Zuul 898b8c7287 Merge "Update setup.cfg classifiers" 2023-05-04 22:31:23 +00:00
Douglas Mendizábal 972907f06a Update setup.cfg classifiers
Depends-On: https://review.opendev.org/c/openstack/pycadf/+/868221

Change-Id: Ifade6bf2bb94f8c0b3526e81246a8dd821e29deb
2023-04-28 14:18:15 +00:00
Dave Wilde 3a82bcec1f Fix pep8 gate
This updates the test-requirements to a more recent flake8-docstrings
version.  I also added an ignore for __init__ methods, this may be
something that we want to revisit but are not needed for now.

We also slip in a little change that renames whitelist to
allowlist. It is also a gate failure and thus is circular with
the pep8 fix: neither can be merged separately.

Change-Id: Id12f6e3b5d603531744d02f7bafab0b80696751e
2023-04-21 14:08:59 -05:00
Zuul bb4cc27a0c Merge "Add doc/requirements" 2022-10-26 11:43:23 +00:00
niuke f1300ee292 remove unicode prefix from code
Change-Id: Ie842be912d9169133cd9990846f212bb50690766
2022-09-16 15:40:20 +00:00
Hervé Beraud fab802e0f4 Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removing specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: I11c1f9816ad93f7c3a7d9de5894746d48154e18d
2022-09-16 15:39:19 +00:00
Douglas Mendizábal 25c95e7221 Update zuul job templates
Change-Id: I5197c7484925fb9db282e9ab17d45c3f7e56989b
2022-09-16 11:36:10 -04:00
Ghanshyam Mann 84f6e5b765 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

Change-Id: Ia3f66b6805704c254295fd663f0260d5d963ed66
2022-04-30 20:20:12 -05:00
OpenStack Release Bot 2b697886a0 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: I43b912be6900d3d8f081ae4065789278c97db0b0
2020-09-08 12:28:06 +00:00
Zuul 4179996d52 Merge "Fix hacking min version to 3.0.1" 2020-07-27 17:03:59 +00:00
zhaoleilc 2402013a87 Correct a typo in the document
This patch changes 'contex' to 'context'
in doc/source/specification/resources.rst

Change-Id: I8c56dfa869cbc1176b18de76212c143b161a3d5b
2020-07-10 14:24:36 +08:00
Andreas Jaeger 9de5c99ccd Switch to newer openstackdocstheme version
Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

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.

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.

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

Change-Id: I6c6775f75235dab2b9ed7820bfc5102bf5b04965
2020-05-30 18:33:32 +02:00
Ghanshyam Mann 3fdfb00bc7 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.

Also removing the hacking and other related dep from lower-constraints file
as theose are blacklisted requirements and does not need to be present
there.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Ib3d13c83dcc9f660d89669c53c7782ca68da8e64
2020-05-15 11:12:31 -05:00
OpenStack Release Bot dde45161ac 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: I0d1100bd2d9a64abf2758feb2055dea53f3be3a1
2020-04-30 17:03:26 +00:00
Zuul 2c470c8d3f Merge "Use unittest.mock instead of third party mock" 2020-03-30 19:06:28 +00:00
Andreas Jaeger 61b6e87de7 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Blacklist W503, W504
Fix other problems found

Change-Id: Ic0391ae45b9d6d1ee5e2c1df81d85e655250a51d
2020-03-30 11:57:20 +00:00
Sean McGinnis 210865e90d
Use unittest.mock instead of third party mock
Now that we don't need to support py27 we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I1dfdb05ddf78cd8243f31956ccf8173b2059ad33
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-13 11:42:35 -05:00
pengyuesheng 91073f4ea1 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: Ibc5757b36d6a5b8c342d959087136064ed5ab6f5
2020-02-10 16:48:12 +01:00
pengyuesheng 939253044a Drop python 2.7 support and testing
Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Include small cleanups:
* remove install_command from tox.ini, this is the default
* Use sphinx-build as modern way to run sphinx, remove setup.cfg
  settings for build-sphinx
* Use sphinxcontrib-apidoc for docs with newer sphinx
* Remove obsolete doc/source/conf.py broken
* Add python-requires to setup.cfg to make Python 3.6 requirement
  explicit
* Remove obsolete pbr setup-hooks

Co-Authored-By: Andreas Jaeger <aj@suse.com>
Change-Id: Iec8c47b82022b616b8361651bf23f853b0ce5624
2020-02-03 14:45:41 +01:00
Zuul 9d1c08e1f2 Merge "Add swift_api_audit_map.conf to setup.cfg" 2020-01-06 17:37:23 +00:00
Zuul e4597870c4 Merge "Add swift_api_audit_map.conf" 2020-01-06 17:37:22 +00:00
yangkun.lc cf02292578 Change README.rst with a better title
Change-Id: Ica55dea9f53e363b08f89c54ea896ba2081bf86a
2019-12-26 10:58:25 +08:00
Ben Nemec 6bb0f70079 Add swift_api_audit_map.conf to setup.cfg
This file was added in the previous commit, but if it doesn't appear
in setup.cfg it won't be installed.

Change-Id: I4498aaf0b646046611291ccca7536f9099b97446
2019-12-02 20:23:22 +00:00
xuanyandong 885a7093a0 Switch to Ussuri jobs
Change-Id: Ice4c614cd2bf239098753ed76ecec41c9bb60b42
2019-10-25 10:51:19 +08:00
xuanyandong fc7d8debee Update source link in readme
Change-Id: I4d7aeed21a13cbd6510a5af8f71c5a924f24ae90
2019-10-06 15:18:48 +08:00
pengyuesheng deee57882e Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I57071420ae34395f9c56ffe50481138417bbe632
2019-09-29 10:58:54 +08:00
Christian Schwede 19728f2514 Add swift_api_audit_map.conf
Change-Id: Id1b2944783ecaaa631ce9c1ceebfa1a30de4d4c6
2019-08-30 12:24:05 +02:00
Zuul d113c1564d Merge "Add Python 3 Train unit tests" 2019-07-08 21:31:21 +00:00
Corey Bryant 5c9e79e93f 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

Depends-On: https://review.opendev.org/669543

Change-Id: I3555792aff294a1ea533464ef78a1cc8bf545c82
Story: #2005924
Task: #34215
2019-07-05 16:41:57 -07:00
Colleen Murphy ab2eb59068 Removes temporary fix for doc generation
A temporary fix was added to get around a bug in how pbr handles
its autodoc_tree_index_modules setting. Since this bug is fixed we no
longer need the work around.

This change is needed since the workaround is now incompatible with the
latest version of Sphinx.

See also[1][2].

[1] https://review.opendev.org/191633
[2] https://review.opendev.org/121667

Change-Id: Idf9dc73d99b4233f49effe24aa047959b1a2ef2c
2019-07-05 16:41:34 -07:00
OpenDev Sysadmins 8980f25545 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:49:21 +00:00
Vishakha Agarwal 417dfcbcaa Add py37 tox env and drop py35
With python3.7 jobs added to the Zuul jobs,
it makes sense to add this to the tox config
too so that developers can run python3.7 tests
as well.
Python 3.5 was the target runtime for the Rocky release.
The current target py3 runtime for Stein is Python 3.6,
so there is no reason to keep testing against the older version.

Change-Id: Icada08448d9bf3cc0f1d522d93b07d8789adad14
2019-02-28 11:51:05 +05:30
Corey Bryant e2cf4ed65e add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: I67aea3f93e54c55952f33464e582cc989c9867ea
Story: #2004073
Task: #27422
2019-02-14 08:23:10 -05:00
Ben Nemec 4398b7d34e Add release note for MD5 hash removal
The use of MD5 was removed in Icaeb3305c788db2913fe99792ea6311d218b3410.
This just adds a release note to communicate that to consumers.

Change-Id: I6a6487335852a71c3f5591c9bfc7acd6bd14cd0d
2019-01-24 16:59:29 +00:00
melissaml 24fbc8f32e Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: Ice8af70eaeca739698a07eed123594dac1503096
2018-12-04 20:22:25 +08:00
Raildo Mascena b5dfd8dfde Enabling FIPS mode by using sha256 instead of md5
FIPS does not allow md5, some systems like RHEL needs to have FIPS
compliance, in order to execute some routines like when try to
use keystone-manage. As a general rule, we should avoid using md5
if we can and move over to SHA wherever possible.

Change-Id: Icaeb3305c788db2913fe99792ea6311d218b3410
Closes-Bug: #1767024
2018-11-01 14:44:42 -03:00
Zuul e74e074c5a Merge "Use templates for cover and lower-constraints" 2018-10-12 11:02:06 +00:00
Vieri 4587d9c733 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: Ib74244eea0ff4fa37dc3308360691059c6fa448b
2018-10-09 13:41:47 +00:00
Andreas Jaeger e00691f33b Use templates for cover and lower-constraints
Small cleanups:

* Use openstack-tox-cover template, this runs the cover job
  in the check queue only. Remove individual cover jobs.
* Use openstack-lower-constraints-jobs template, remove individual
  jobs.
* Sort list of templates

Fix cover job, $project is not expanded in tox.ini and thus the job
fails. Use "pycadf" instead.

Change-Id: I72da23a0d6c6b3cc87e66d94c419668fce66e704
2018-09-30 11:29:36 +02:00
Doug Hellmann 1983ea48a6 add lib-forward-testing-python3 test job
This is a mechanically generated patch to add a functional test job
running under Python 3 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: I3cf9c67c603496ea777b07fe266df1bb65727206
Story: #2002586
Task: #24304
2018-08-29 16:05:00 -04:00
Doug Hellmann c272be1264 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: Ie8632282d70dcd0ce75d0352eb83bac9846134c9
Story: #2002586
Task: #24304
2018-08-29 16:04:56 -04:00
Doug Hellmann 9693aceee5 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: Ie60add7e0451511d661bc98f7c41170e7289e93f
Story: #2002586
Task: #24304
2018-08-29 16:04:50 -04:00
Doug Hellmann 82df420e99 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: If97c62d66c86cd0cd62f647155178ed63dbc4db0
Story: #2002586
Task: #24304
2018-08-29 16:04:36 -04:00
Vu Cong Tuan 833ba0f5b8 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Ib4c7bb59c92946c3e8b257cbf1ce2f44cb1c40ed
2018-07-24 10:38:07 +07:00
Zuul 7df2d59780 Merge "Remove moxstubout usage" 2018-06-07 14:18:15 +00:00