summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Moves supported python runtimes from version 3.8 to 3.10"HEADmasterGhanshyam2023-05-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 90ea8f3b1273e9cbcefcbe15175b3981d946c941. keeping Python 3.10 in setup.cfg classifier. Reason for revert: Needed-By: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175 TC has been discussing about re-adding the python 3.8 testing in current master 2023.2 release testing. - https://meetings.opendev.org/meetings/tc/2023/tc.2023-04-25-18.00.log.html#l-191 - https://lists.openstack.org/pipermail/openstack-discuss/2023-April/033469.html While governance changes are under review, TC agreed to add py3.8 testing so that we do not see more project/lib dropping python 3.8 and make them uninstalable on python 3.8 - https://meetings.opendev.org/meetings/tc/2023/tc.2023-05-02-18.00.log.html#l-17 - https://review.opendev.org/c/openstack/governance/+/882165 Also adding py3.8 testing back in job https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175 Change-Id: Ifc7327b025a824e511c3dd3e012e329b2a2f1a40
* Moves supported python runtimes from version 3.8 to 3.10Hervé Beraud2023-04-101-2/+2
| | | | | | | | Within 2023.2 python version 3.9 and 3.10 are the supported python runtimes [1]. [1] https: //review.opendev.org/c/openstack/governance/+/872232 Change-Id: I5717d8dd0245504e6c4d0c9bcbb22cd997ffe35e
* Update master for stable/2023.1OpenStack Release Bot2023-02-242-0/+7
| | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/2023.1. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/2023.1. Sem-Ver: feature Change-Id: I2461df2b268354335bfb5c3fa76572cd23f1d46d
* Fix issues related to tox47.0.1Hervé Beraud2023-02-171-5/+3
| | | | | | Related to https://lists.openstack.org/pipermail/openstack-discuss/2023-February/032247.html Change-Id: Iec7659dbf64847d86def2a863cda8b5c49c65c3b
* Fix formatting of release list7.0.0Hervé Beraud2022-05-271-11/+11
| | | | Change-Id: I32aee88d60a340bdee53d4473dccdf7cfa934bc7
* Drop python3.6/3.7 support in testing runtimeHervé Beraud2022-05-051-3/+2
| | | | | | | | | | | | In Zed cycle testing runtime, we are targetting to drop the python 3.6/3.7 support, project started adding python 3.8 as minimum, example nova: - https://github.com/openstack/nova/blob/56b5aed08c6a3ed81b78dc216f0165ebfe3c3350/setup.cfg#L13 Also indicates that we support python 3.9. Change-Id: I98072e5176cb415469a5cca51ab63ea7953a384a
* Remove unnecessary unicode prefixessongwenping2022-04-192-11/+11
| | | | Change-Id: I4b8b982c9ef49595682744e022154be87f259d23
* Update CI to use unversioned jobs templateStephen Finucane2022-03-151-1/+1
| | | | | | | | | | | | | As part of the migration of this project to the independent release model, we failed to notice that the job template was still tied to a specific release. We've now introduced a new unversioned job template, 'openstack-python3-jobs' [1], which was can and should use. Do this. [1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/ Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/ Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: I7b66b7ad46497fcaeb8d6542485fbe6b6b1495f9
* CommandFilter should allow exec from full path6.3.1David Vallee Delisle2022-01-132-1/+13
| | | | | | | | | | | The current logic prevents from using a full path as argument. We can't just compare basename to basename as it would allow passing bogus paths. We need to make sure that passing a full path will compare to the config's full path. Closes-Bug: #1956606 Change-Id: I76094065de5b37f59a2500fbce7f500ada9915da
* setup.cfg: Replace dashes with underscores6.3.0YuehuiLei2021-05-051-4/+4
| | | | | | | | | | | | | | | | Setuptools v54.1.0 introduces a warning that the use of dash-separated options in 'setup.cfg' will not be supported in a future version [1]. Get ahead of the issue by replacing the dashes with underscores. Without this, we see 'UserWarning' messages like the following on new enough versions of setuptools: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb Change-Id: I8fc4f3b027aaacaf023e54fe0b138bdddaef0c3f
* Merge "Remove lower-constraints remnants"Zuul2021-04-162-42/+0
|\
| * Remove lower-constraints remnantswu.shiming2021-02-192-42/+0
| | | | | | | | | | | | These were missed in change: Iae7ce24bfd718a9a2102ce64e8dd2ad08d2b4dd6 Change-Id: I03f47af49cda61e18b0eaa96770a174b867fe2bc
* | Move flake8 as a pre-commit local target.Daniel Bengtsson2021-03-231-3/+7
|/ | | | | | | | | | | | | | | The goal here is to avoid conflicts between flake8 and hacking version each 2 days. Inspired from nova's approach[1]. The flake8 version to install will be determined by hacking and requirements[2] will stay aligned instead of relying on different versions. [1] https://opendev.org/openstack/nova/src/branch/master/.pre-commit-config.yaml#L26-L35 [2] https://opendev.org/openstack/hacking/src/branch/master/requirements.txt#L1 Change-Id: Ic1f66792b786d05d06c52c86e08c933cf594baac
* Merge "Use py3 as the default runtime for tox"Zuul2021-01-221-1/+1
|\
| * Use py3 as the default runtime for toxHervé Beraud2020-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving on py3 as the default runtime for tox to avoid to update this at each new cycle. Wallaby support officially the following runtimes [1]: - Python 3.6 - Python 3.8 During Victoria Python 3.7 was used as the default runtime [2] however this version isn't longer officially supported. [1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby [2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria Change-Id: Ic211834cf66fd2f9e4fc4ce97f839b2362cc1f70
* | Merge "Use TOX_CONSTRAINTS_FILE"Zuul2021-01-141-4/+4
|\ \
| * | Use TOX_CONSTRAINTS_FILEHervé Beraud2020-11-041-4/+4
| |/ | | | | | | | | | | | | | | | | | | | | UPPER_CONSTRAINTS_FILE is old name and deprecated This allows to use upper-constraints file as more readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>. [1] https://review.opendev.org/#/c/722814/ [2] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file Change-Id: Ice53705bba857835e4c99ff526ff359f55a319af
* | Dropping lower constraints testingHervé Beraud2020-12-181-1/+0
|/ | | | | | | | | | | | | We facing errors related to the new pip resolver, this topic was discussed on the ML and QA team proposed to to test lower-constraints [1]. I propose to drop this test because the complexity and recurring pain needed to maintain that now exceeds the benefits provided by this mechanismes. [1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html Change-Id: Iae7ce24bfd718a9a2102ce64e8dd2ad08d2b4dd6
* Remove sixwangzihao2020-10-096-16/+11
| | | | | | | | | Replace the following items with Python 3 style code. - six.moves - six.StringIO Change-Id: Ie06dc3b6cc5a3d88defa4fdfd071ed2c9dcfb1d0
* Remove six.PY3wangzihao2020-09-303-11/+6
| | | | | | | The Python 2.7 Support has been dropped since Ussuri. So remove hacking rules for compatibility between python 2 and 3. Change-Id: Idd6a1efd1857a70fc7d960b365bfc58d6cbe00d3
* Merge "Adding pre-commit"Zuul2020-09-225-5/+42
|\
| * Adding pre-commitHervé Beraud2020-09-035-5/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduced changes: - pre-commit config and rules - Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks. - Applying fixes for pre-commit compliance in all code. Also commit hash will be used instead of version tags in pre-commit to prevend arbitrary code from running in developer's machines. pre-commit will be used to: - trailing whitespace; - Replaces or checks mixed line ending (mixed-line-ending); - Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker); - Checks that non-binary executables have a proper shebang (check-executables-have-shebangs); - Check for files that contain merge conflict strings (check-merge-conflict); - Check for debugger imports and py37+ breakpoint() calls in python source (debug-statements); - Attempts to load all yaml files to verify syntax (check-yaml); - Run flake8 checks (flake8) (local) For further details about tests please refer to: https://github.com/pre-commit/pre-commit-hooks Change-Id: I04e73b8a70d32fec3e6131526e0bed0be8599c28 Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
* | Merge "Add Python3 wallaby unit tests"Zuul2020-09-141-1/+1
|\ \
| * | Add Python3 wallaby unit testsOpenStack Release Bot2020-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: I9ea9f73fd06d03589ff59a616a915a2d61d4706c
* | | Merge "ignore reno generated artifacts"Zuul2020-09-141-0/+2
|\ \ \ | |/ / |/| |
| * | ignore reno generated artifactsHervé Beraud2020-09-031-0/+2
| |/ | | | | | | Change-Id: Iefca629ae61b1da28bddba67525f5c9df164ab14
* | Update master for stable/victoriaOpenStack Release Bot2020-09-112-0/+7
|/ | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/victoria. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/victoria. Change-Id: I0ea459ca6fa98573d52188dc634c86225fb588f9 Sem-Ver: feature
* Merge "[goal] Migrate testing to ubuntu focal"victoria-em6.2.0Zuul2020-08-061-2/+2
|\
| * [goal] Migrate testing to ubuntu focalGhanshyam Mann2020-08-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per victoria cycle testing runtime and community goal[1] we need to migrate upstream CI/CD to Ubuntu Focal(20.04). Fixing: - bug#1886298 Bump the lower constraints for required deps which added python3.8 support in their later version. Story: #2007865 Task: #40207 Closes-Bug: #1886298 [1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.h> Change-Id: I6f4947668b5372eace7fb1eb32ab221ac88f4b4f
* | Bump bandit versionMoisés Guimarães de Medeiros2020-07-241-1/+1
|/ | | | | | | | This patch bumps bandit allowed version to >=1.6.0,<1.7.0 in order to avoid the errors detailed here https://github.com/PyCQA/bandit/pull/393 Change-Id: Ic61bffb3845a53df14765194482f6264417d0ac7 Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
* Merge "Align contributing doc with oslo's policy"Zuul2020-06-301-0/+5
|\
| * Align contributing doc with oslo's policyHervé Beraud2020-05-041-0/+5
| | | | | | | | | | | | | | | | Related to: - https://review.opendev.org/#/c/723044/ - https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html Change-Id: Iad188728b89a0a9f2fee06d47420cf0300690941
* | Merge "Add release notes links to doc index"Zuul2020-06-031-1/+11
|\ \
| * | Add release notes links to doc indexHervé Beraud2020-04-161-1/+11
| | | | | | | | | | | | Change-Id: I25f156177ccabfb6fe99f808c3b5868affabafce
* | | Stop to use the __future__ module.Hervé Beraud2020-06-023-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: I79f231823939e421a04377ca19e2e65b12d9b26a
* | | Merge "Fix hacking min version to 3.0.1"6.1.0Zuul2020-05-261-1/+1
|\ \ \
| * | | Fix hacking min version to 3.0.1zhangboye2020-05-221-1/+1
| | | | | | | | | | | | | | | | Change-Id: Icc4607d22eb4249e6711fded27bb30ddeca7e403
* | | | Merge "Remove the unused coding style modules"Zuul2020-05-261-1/+0
|\ \ \ \
| * | | | Remove the unused coding style modulesjacky062020-05-161-1/+0
| | |_|/ | |/| | | | | | | | | | Change-Id: I1b517c44bd3e9bbb613ea90f692bd1c9736c058a
* | | | Merge "Avoid raising a RuntimeError during the shutdown"Zuul2020-05-221-4/+10
|\ \ \ \ | |_|/ / |/| | |
| * | | Avoid raising a RuntimeError during the shutdownRodolfo Alonso Hernandez2020-05-131-4/+10
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the client stops, sends a shutdown command to the root daemon. If the socket is still in use, it will return a RuntimeError and stop the code execution. Instead of this, this exception is now captured and the shutdown command re-executed up to 3 times. In case of not succeeding, the process will continue the client shutdown. Change-Id: I0302b49e38523d6170be407d4563928cfcc3c1a3 Closes-Bug: #1878222
* | | Switch to newer openstackdocstheme and reno versionsAndreas Jaeger2020-05-185-14/+11
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to openstackdocstheme 2.2.0 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 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. Depends-On: https://review.opendev.org/728938 Change-Id: Ie162c8e72f4edec345c20de4517304cc14f7fe0d
* | Merge "Add py38 package metadata"Zuul2020-04-271-0/+1
|\ \
| * | Add py38 package metadataSean McGinnis2020-04-241-0/+1
| |/ | | | | | | | | | | | | | | | | 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: I27acd7a90e439a7e7f7529001afa73f7b9d055ce Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Bump default tox env from py37 to py38Sean McGinnis2020-04-241-1/+1
|/ | | | | | | | | | | | | | 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: Ie4a88297493182929b6620dd42d2e2b9d85dc637 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Add Python3 victoria unit testsOpenStack Release Bot2020-04-141-1/+1
| | | | | | | | | | | 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: I21a1bd80a3b0ec47598d0f512aef196d3efd9a21
* Update master for stable/ussuriOpenStack Release Bot2020-04-142-0/+7
| | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/ussuri. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/ussuri. Change-Id: Ic438f26fede03ff077cfcf251da486520c0c0a9f Sem-Ver: feature
* Update hacking for Python3Andreas Jaeger2020-04-027-12/+12
| | | | | | | | | | | | 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: If75153300f07e6d1c5bf433af35a0dd4d98e6c7f
* Use unittest.mock instead of third party mockussuri-em6.0.2Sean McGinnis2020-03-314-7/+2
| | | | | | | | 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: Icd7019c924386fb9c047fc55fb98e45fcb79f2eb Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Implement "realpath" to retrieve the real absolute path6.0.1Rodolfo Alonso Hernandez2020-02-211-2/+15
| | | | | | | | | | This function will call "os.path.realpth" and this in turn could call "os.getcwd". If the current path has been deleted by other application, this method will raise FileNotFoundError exception. This new function catches and unsets this exception, returning an empty string. Change-Id: If70411d8d189de4a020e528cd54412a5678cfab9 Closes-Bug: #1864090