summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Use TOX_CONSTRAINTS_FILE4.2.0Hervé Beraud2020-11-041-1/+1
| | | | | | | | | | | 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: I086b5173b45ef5f4ce6691ad33af7903b0fd78e0
* Merge "Adding pre-commit"Zuul2020-10-055-5/+43
|\
| * Adding pre-commitHervé Beraud2020-09-225-5/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Ifc5ee35d399c628604ec1644eb447936803c45f5 Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
* | 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: I84116991e71e5d01d28fee6ddc5d8014a6d212a2
* | 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: I4a6c70c8fad5c120b4382fd34e4b281012e6f3a0 Sem-Ver: feature
* | Bump bandit versionvictoria-em4.1.1Moisé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: I0b8b5a8899b22744cfd65b5e889a6283aec9ddfe 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: I80edcba7366e4c3b43b440222e6e2c811f55e442
* | Fix pygments stylemelissaml2020-06-042-2/+2
| | | | | | | | | | | | | | | | New theme of docs respects pygments_style. more info: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html Change-Id: Ieaa8a37dbd07ec0312fee1cefd85973140fd9503
* | Stop to use the __future__ module.4.1.0Hervé Beraud2020-06-021-2/+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: I4bc9301f5045848545182ef98e47f343a95904c3
* | Merge "Remove translation sections from setup.cfg"Zuul2020-05-282-15/+0
|\ \
| * | Remove translation sections from setup.cfgmelissaml2020-05-152-15/+0
| |/ | | | | | | | | | | | | These translation sections are not needed anymore, Babel can generate translation files without them. Change-Id: I39beb972383622d4c4a3b17cb9c3d30674bca5bc
* | Merge "Add release notes links to doc index"Zuul2020-05-282-5/+2
|\ \
| * | Add release notes links to doc indexHervé Beraud2020-04-162-5/+2
| | | | | | | | | | | | Change-Id: I98b08205c9c22430be019d4e30ec3e788087b940
* | | Merge "Fix hacking min version to 3.0.1"Zuul2020-05-261-1/+1
|\ \ \
| * | | Fix hacking min version to 3.0.1zhangboye2020-05-221-1/+1
| | | | | | | | | | | | | | | | Change-Id: I95cb5bd989ec10e6bcc8f7f2aea9aa81c3e79dd6
* | | | Merge "Remove the unused coding style modules"Zuul2020-05-251-5/+0
|\ \ \ \ | |/ / / |/| | |
| * | | Remove the unused coding style modulesjacky062020-05-151-5/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Python modules related to coding style checks (listed in blacklist.txt in openstack/requirements repo) are dropped from lower-constraints.txt as they are not actually used in tests (other than pep8). more info: https://github.com/openstack/requirements/blob/master/blacklist.txt Change-Id: I65f45f9e8788d3a7df4078c3f1cc6eaf0069c140
* | | Merge "Switch to newer openstackdocstheme and reno versions"Zuul2020-05-193-9/+9
|\ \ \
| * | | Switch to newer openstackdocstheme and reno versionsAndreas Jaeger2020-05-183-9/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 problems Update Sphinx version as well. 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: Idc8d870e5c12e18efd07427eb1772d0f4e65d262
* | | Merge "Drop use of six"Zuul2020-05-188-29/+18
|\ \ \ | |/ / |/| |
| * | Drop use of sixSean McGinnis2020-05-068-29/+18
| | | | | | | | | | | | | | | Change-Id: I53005107bf4c05809182dc3865c5dc72c77b1054 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | | 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: I568967e4ae45a47bb625d9ed8b172e56d58d78ac 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: I436529f8db217e9ad899ece05cc3af291198a081 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Merge "Add Python3 victoria unit tests"Zuul2020-04-141-1/+1
|\ \
| * | 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: I254525a3c048e69f3b0d3f0523fc9177c671ca06
* | | Merge "Update master for stable/ussuri"Zuul2020-04-142-0/+7
|\ \ \ | |/ /
| * | 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: I2f4be7d3e6d46a23eedd5444fa7458cf410780d6 Sem-Ver: feature
* | | Cleanup py27 supportAndreas Jaeger2020-04-135-13/+6
|/ / | | | | | | | | | | | | | | | | | | | | This repo is now testing only with Python 3, so let's make a few cleanups: - Remove obsolete sections from setup.cfg - Update classifiers - Use newer openstackdocstheme version - Switch to hacking 3.0, fix problems found Change-Id: I539b00204279c7645ef4a3f804f64a1e7af30f05
* | Use unittest.mock instead of third party mockussuri-em4.0.2Sean McGinnis2020-03-316-6/+6
|/ | | | | | | | 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: I15fc9e39d69f817fb5db8ce7111d0397a25c94b0 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* remove outdated header4.0.1Hervé Beraud2020-02-101-1/+0
| | | | Change-Id: I2a371463c21abac2ef5271a3251cb06938381ce2
* Merge "Remove universal wheel configuration"Zuul2020-02-101-2/+0
|\
| * Remove universal wheel configurationBen Nemec2020-02-061-2/+0
| | | | | | | | | | | | | | Now that we've dropped py2 support we shouldn't be setting this anymore. Change-Id: I293ceeb925ff602470a2b67008ca2054338d41f8
* | reword releasenote for py27 support droppingHervé Beraud2020-02-061-1/+1
|/ | | | Change-Id: If3a102650346da625ad91af8448c80534f32ac62
* [ussuri][goal] Drop python 2.7 support and testing4.0.0Hervé Beraud2020-02-037-17/+11
| | | | | | | | | | | | | | OpenStack is dropping the py2.7 support in Ussuri cycle. 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://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html Change-Id: I8604e1a22d7cb13251e2ef22ef86318ad2de346e
* tox: Trivial cleanupHervé Beraud2020-01-081-11/+3
| | | | | | | | | Move 'basepython' to the top-level 'testenv'. Use the default 'install_command' https://tox.readthedocs.io/en/latest/config.html#conf-install_command Change-Id: I0f7296cfd8586b5b41c7a237561c4d931ee1e3d1
* Merge "Switch to Ussuri jobs"Zuul2019-12-021-1/+1
|\
| * Switch to Ussuri jobspengyuesheng2019-10-241-1/+1
| | | | | | | | Change-Id: Ieef89d32aa7e0fa16eb08829bb8e032b5400792a
* | tox: Keeping going with docscaoyuan2019-10-242-4/+12
|/ | | | | | | | | | | | Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name suggests, keeps the build running when it encounters non-fatal errors. This is exceptionally useful in avoiding a continuous edit-build loop when undertaking large doc reworks where multiple errors may be introduced. [1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045 Change-Id: Ic68b7acf92512255d4e1e3c2e5d3b6ff795e1354
* Merge "Update master for stable/train"Zuul2019-10-102-0/+7
|\
| * Update master for stable/trainOpenStack Release Bot2019-09-202-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/train. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/train. Change-Id: I625cc2cab482e50ad388974dd34b3331b1471ecb Sem-Ver: feature
* | Update the constraints urlpengyuesheng2019-09-231-1/+1
|/ | | | | | For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html Change-Id: Iad05ec936af5a4319f82c42e721010e9d543b984
* Merge "More details when logging 413 Entity Too Large"train-em3.38.1Zuul2019-07-162-3/+13
|\
| * More details when logging 413 Entity Too LargeJohan Guldmyr2019-07-102-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I spent a few days figuring out what was making the OS-FEDERATION mapping rules create/update API calls return "413 Entity Too Large" errors for our CentOS7/haproxy/apache/mod_wsgi/keystone/python2 setup. To make this a bit easier for future users then I would like to include max_request_body_size and its value in the response and also log the error. Retaining the "Request is too large." bit in the message is intended to also make it easier to find where the limit is set. Resulting log error in keystone looks like: 2019-07-04 06:52:13.217789 | ubuntu-bionic | INFO [oslo_middleware.sizelimit] Request is too large. Larger than max_request_body_size (114688). Change-Id: Ic66882afba25222ab8464ac9194c5002c8666db1 Closes-Bug: #1835363 Signed-off-by: Johan Guldmyr <johan.guldmyr@csc.fi>
* | Merge "Add Python 3 Train unit tests"Zuul2019-07-103-3/+3
|\ \
| * | Add Python 3 Train unit testsCorey Bryant2019-07-053-3/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | 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: Ib541de637ecbee664fa281b5920ece2c66055b13 Story: #2005924 Task: #34234
* | Merge "Blacklist sphinx 2.1.0 (autodoc bug)"Zuul2019-07-081-1/+1
|\ \
| * | Blacklist sphinx 2.1.0 (autodoc bug)pengyuesheng2019-07-041-1/+1
| |/ | | | | | | | | | | | | See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details Depend-On: https://review.opendev.org/#/c/663060/ Change-Id: Idc95dd7ecad8f93d03960038af74aea3c55d93d2
* | Bump the openstackdocstheme extension to 1.20pengyuesheng2019-07-053-78/+1
|/ | | | | | | | | | | | Some options are now automatically configured by the version 1.20: - project - html_last_updated_fmt - latex_engine - latex_elements - version - release. Change-Id: Ibba92185735ed6b41486678fab6390a3168888e2