1414 Commits

Author SHA1 Message Date
Takashi Kajinami
c1938fbe82 Remove some notes no longer valid
setup.py is no longer maintained by the global sync. Also the note
in requirements.txt does not apply since pip 20.3.

[1] https://lists.openstack.org/pipermail/openstack-discuss/2023-June/034073.html

Change-Id: Id5c3bcdaaf31cc7de0a69500ed7a18d0d6680c38
2023-06-14 04:11:18 +09:00
Takashi Kajinami
668d85fa8a Add Python 3.10 to supported runtime.
Python 3.10 has been tested since 2023.1[1].

[1] https://governance.openstack.org/tc/reference/runtimes/2023.1.html

Change-Id: I0467f47d436267aadcee4e7c8295c6366531fe3e
3.3.0
2023-03-30 14:42:31 +09:00
Zuul
08a6816131 Merge "Switch to 2023.1 Python3 unit tests and generic template name" 2023-03-07 06:35:28 +00:00
e2c006bc91 Update master for stable/2023.1
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: Iad79ec935509361073ad7d128f1860a4482ddf51
2023-03-02 14:10:19 +00:00
Takashi Kajinami
712739e5e7 Adapt to tox 4
skipsdist=True breaks extension loading by stevedore since tox 4. This
removes the option to fix the unit tests.

Change-Id: Id6853987caf999972e0597905619f364c20a636a
2023-02-17 00:30:23 +09:00
3edca52068 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: Iae1f2a53f8bb94f7b464adf1c364cfa3d720e544
2022-09-14 09:22:24 +00:00
OpenStack Proposal Bot
1c851850a3 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie385012787c3d574611a50781c59090efff2377c
2022-09-07 02:48:27 +00:00
1b87d22f45 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: Id13f81903c1eab5669ad4ce05029eb890a0d1324
2022-09-06 12:50:41 +00:00
Zuul
4935c90038 Merge "Accept sha256 hash for swift tempurl" 3.1.0 2022-07-18 06:52:03 +00:00
Takashi Kajinami
69d4a5ee93 Accept sha256 hash for swift tempurl
Since swiftclient 4.0.1, sha256 is used when generating tempurl
signature[1].
This change extends the regex pattern to assert signatues so that it
can accept both sha1(old) and sha256(current).

[1] https://review.opendev.org/c/openstack/python-swiftclient/+/845157

Change-Id: I1589adbe4501b1c678f197b9c0f67b716c341b2d
2022-07-18 05:38:23 +00:00
Ghanshyam Mann
b65fb84919 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: Ib392f81b3f12ee02979723f17e08f775d63b8abe
3.0.0
2022-06-14 03:32:36 +09:00
Zuul
6b72237c7a Merge "Bump tox minversion to 3.18.0" 2022-06-13 18:00:00 +00:00
Zuul
211fb86b27 Merge "Replace deprecated UPPER_CONSTRAINTS_FILE variable" 2022-06-13 17:51:30 +00:00
Zuul
9e84a5970b Merge "Remove six" 2022-06-13 17:51:28 +00:00
Zuul
e9011421a9 Merge "The Python 3.6 and Python 3.7 Support has been dropped since zed" 2022-06-13 16:55:59 +00:00
Pavlo Shchelokovskyy
66adfe14a6 Encode urls in unit tests
currently several unit tests are failing when path from where
they run contains url-quotable characters like '@', which apparently is
possile in e.g. Jenkins.

Change-Id: I44eab3f4a384a27f34e4066651baafa6a9489f49
2022-06-13 18:56:45 +03:00
dengzhaosen
1a1fd2b353 The Python 3.6 and Python 3.7 Support has been dropped since zed
[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Change-Id: If88b377f25d9b3e64dc049ae219ed6d5f4782d43
2022-06-05 09:14:07 +08:00
Takashi Kajinami
0732060995 Bump tox minversion to 3.18.0
Since tox 3.18.0, the whitelist_externals option has been deprecated in
favor of the new allow_list_externals option[1].

This change bumps the minversion of tox so that we can replace
the deprecated option.

[1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I287ce309adf5a02e9eac3a285666c23f4eeb9d36
2022-05-22 22:23:24 +09:00
Takashi Kajinami
23e647539c Remove six
This library no longer supports Python 2, thus usage of six can be
removed.

Change-Id: I8d0c1cfd6dff375b3b7756a5b36c95a2df3f04c6
2022-05-09 17:01:25 +00:00
a12456c17c Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

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

Change-Id: Ia4b850aeb841cb3d128758fc4b9a816a4ba8ba1a
2022-03-04 17:07:24 +00:00
7e4768f2ab Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.

Sem-Ver: feature
Change-Id: Ie9c6e7da60756d3edb3263945bc5874370ac353d
2022-03-04 17:07:22 +00:00
Takashi Kajinami
a9abc54844 setup.cfg: Replace dashes by underscores
Since setuptools v54.1.0[1], the parmeters with dash have been
deprecated in favor of the new parameters with underscore.

This change updates the parameters accordingly to avoid the warnings
like the example below.

  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: I660fadc0b9798214719fe1a1aac0731584806503
2022-02-07 16:47:19 +09:00
dengzhaosen
db9a71f18e Update python testing classifier
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: If01a4cb7dcb48698cea934309de36268ae92b7e1
2021-12-24 09:33:14 +08:00
Zuul
b9fe504d07 Merge "Replace deprecated import of ABCs from collections" 2021-12-16 09:11:12 +00:00
Zuul
5a1b5ae5ce Merge "Add Python3 yoga unit tests" 2021-12-16 07:51:30 +00:00
Takashi Kajinami
796a8f5a96 Replace deprecated import of ABCs from collections
ABCs in collections should be imported from collections.abc and direct
import from collections is deprecated since Python 3.3.

Closes-Bug: #1936667
Change-Id: Ie312cb884537ec541bf2111fe8a647e939b6519e
2021-12-16 07:21:36 +00:00
rabi
4753a47bbf Fix test and lower constraints
This fixes failures for PyYAML new version and
lower constraints.

Change-Id: Iba863242365c4be63495600b741513c2ca0ea9b0
2021-12-16 09:56:18 +05:30
b457930388 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: Icfc46e4f80c8877a688d1c898d380a4c18a13c7c
2021-09-10 14:31:47 +00:00
341569040d Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.

Sem-Ver: feature
Change-Id: I05fbdf17cbde4f70aea3c3ff99330accd7b22c19
2021-09-10 14:31:45 +00:00
Takashi Kajinami
b4383147fe Replace oslo_utils.fnmatch with fnmatch
The oslo_utils.fnmatch module was added to solve an issue in py2.7 but
it is no longer required because py2.7 is no longer supported.
The module was deprecated since oslo.utils 4.9.1[1] and the stdlib's
fnmatch module should be used instead.

[1] 4c893c92f551c9dd2a7cfbe7ae8171ad8139df0b

Change-Id: I95535adeb45363500b3ed9729bb61cb4308d23b9
xena-em
2021-07-06 21:24:33 +09:00
Zuul
392487dda5 Merge "Add Python3 xena unit tests" 2021-06-18 19:00:00 +00:00
ricolin
eff0d181f0 fix lower constraint job
Also fix PrettyTable requirement

Change-Id: Ib16d87a2d068a1dabdeb8470a5473c0882fbea4e
2021-06-18 07:38:43 +00:00
Ghanshyam Mann
cc2014fec1 [ussuri][goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Story: #2007236
Task: #38524
Change-Id: If5d20838a653687a142134a9645254d9c51dba78
2021-06-01 02:04:18 +00:00
490e6b68f6 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

Depends-On:  https://review.opendev.org/c/openstack/python-heatclient/+/784712

Change-Id: Ie183f7f5b02c6008de70d81e248211d453276c39
2021-04-04 14:01:13 +00:00
3a7b0388d6 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.

Sem-Ver: feature
Change-Id: Idf4b001e1172665fa4a65ce34f9a512a42ab8e8d
2021-03-19 19:43:05 +00:00
likui
5b4729b5fb Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is old name and deprecated

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: Ia8d2989c15444d380e60eccc92161b9414d79a16
2020-12-01 10:02:02 +08:00
Zuul
b2a601c7e8 Merge "Stop to use the __future__ module." 2020-11-16 08:37:26 +00:00
Zuul
d9deb6bc30 Merge "Bump default tox env from py37 to py38" 2020-10-28 15:31:42 +00:00
Zuul
ad0f419264 Merge "Add Python3 wallaby unit tests" 2020-10-27 04:02:31 +00:00
Zuul
570d01dbfc Merge "Update master for stable/victoria" 2020-10-27 03:35:05 +00:00
Thomas Goirand
2b6f6ac284 Python 3.9: base64.encodestring is removed
We should use base64.encodebytes instead, which is avaiable since
Python 3.2.

Change-Id: Ic945aff08d00bf2e602964cb1e25ea045e645b17
2020-10-16 13:09:42 +02:00
6cf53dd662 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: I76b8f959e8a99b890fcd1d951fd9b1fd8f2ec49f
2020-09-11 14:18:20 +00:00
361913dead Update master for stable/victoria
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: Ie61484159d327a60c377b5465ef4faabac8a553d
Sem-Ver: feature
2020-09-11 14:18:18 +00:00
Ghanshyam Mann
17958681f6 [goal] Migrate testing to ubuntu focal
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.

- noqa for pep8 C901 check.

Closes-Bug: #1886298

Story: #2007865
Task: #40186

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal

Change-Id: I67b4957cea1ccbd5cdc0314d2eaddef0c24f7dfc
2020-09-06 00:50:35 +00:00
Luigi Toscano
bb22add60c Native Zuul v3 version of the functional legacy job
Pretty straightforward conversion, and remove the old scripts
which are not needed anymore.

Also, even though OS_TENANT_NAME is still exported,
read OS_PROJECT_NAME as first choice.

Depends-On: https://review.opendev.org/746235
Change-Id: I51314da6d6bf0467308f3598fa9e666655e286d0
victoria-em
2020-08-19 12:22:38 +02:00
Zuul
670fe7ce2a Merge "Use unittest.mock instead of third party mock" 2020-06-09 18:14:00 +00:00
Hervé Beraud
4408269ae3 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: Ifbca4f0b72663e026a92061c213e728cf755772c
2020-06-02 20:48:10 +02:00
Andreas Jaeger
3fa304428c 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.

Set openstackdocs_auto_name to use 'project' as name.

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: I5598eebe898555869cd65a74950fdbd76a7baa46
2020-05-22 17:20:37 +00:00
Ghanshyam Mann
c588de4624 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: I719e643044fbdab4d24edf6457c9096ee5f8fd77
2020-05-12 19:32:40 -05:00
jacky06
8a9566864f 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: I5cf252c1a22977d3c87898e723e5001cc87a0d87
2020-05-06 05:43:23 +00:00