137 Commits

Author SHA1 Message Date
Ghanshyam
cbee52e343 Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit d84fbc1ec27f5249f31f060de16c8f67b3050a2d.

Keeping Python 3.10 in setup.cfg classifier and zuul.yaml changes.

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: Ibd373a944b42ae075d62b3e02a353787b9730d08
2.2.0
2023-05-05 18:58:11 +00:00
Hervé Beraud
d84fbc1ec2 Moves supported python runtimes from version 3.8 to 3.10
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: Ia858bd922e47896ca570564f528cf311f9ede3e5
2023-04-10 13:07:38 +09:00
a8f3880e58 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: I840adc214f058f014c1ce837dd045b11a3327cfc
2023-02-24 15:24:03 +00:00
Hervé Beraud
eeedfc902a clean up tox's python 3 specific conf
Change-Id: I18cadf6a3f5cb754d08b3c4fde363c7eb9fca8e0
2.1.1
2023-02-17 14:08:55 +01:00
Hervé Beraud
e00ed8d844 Fix issues related to tox4
Change-Id: Ie3c21c4e38de766077b612d0bf6a69809829f3c9
2023-02-17 10:38:08 +01:00
cd42c30299 Add Python3 antelope unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope.

See also the PTI in governance [1].

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

Change-Id: I2436a8fe615ff6046a70b93d27748e0968037068
2.1.0
2022-09-09 09:18:37 +00:00
a2dc948dd5 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: Ic510a0f7ffa3d461876d3bb4a37f1026fbafd9dc
2022-09-09 09:18:35 +00:00
Hervé Beraud
b3a2b19a4c Drop python3.6/3.7 support in testing runtime
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:
- 56b5aed08c/setup.cfg (L13)

Also indicates that we support python 3.9.

Change-Id: I539b26e957a1e1a604a77b8e09dcbf63bfececd5
2.0.0
2022-05-05 16:21:34 +02:00
Zuul
dc78302578 Merge "setup.cfg: Replace dashes by underscores" 2022-03-22 12:25:33 +00:00
1c6d65c52d 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: I365842a89e3b2a51c349b7717e579fe8e14646be
2022-03-04 17:19:56 +00:00
f1fbed9e12 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: I0f76f6a1b052d8cf7e1a27697cfb9cce2fd4475d
2022-03-04 17:19:54 +00:00
Takashi Kajinami
f42df2d056 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: Ibc4ede8493418470ee5d12a385e1cd749a47f17e
2022-02-06 02:14:22 +09:00
1559e0371e 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: I3fc2bcefe45ad4113c9c27aca8a3d8c7bff4a1a1
1.5.0
2021-09-10 14:39:28 +00:00
b68d383fe9 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: Ibf94056375c02ca37536feff5edcf79de39b5890
2021-09-10 14:39:13 +00:00
Zuul
3ca8698c31 Merge "Remove lower-constraints remnants" 1.4.0 xena-em 2021-04-16 11:02:22 +00:00
Zuul
6989e5a7c0 Merge "Uncap PrettyTable" 2021-04-16 11:02:19 +00:00
Zuul
1e3ee03de8 Merge "Remove six" 2021-04-16 10:52:49 +00:00
Zuul
b55f018fd5 Merge "Add Python3 xena unit tests" 2021-04-15 18:19:57 +00:00
Zuul
ebc02483c8 Merge "Update master for stable/wallaby" 2021-04-15 18:07:19 +00:00
Daniel Bengtsson
75fe37659c Move flake8 as a pre-commit local target.
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: I996bcc6952a80aaccf50bb8ade579ebd960f4292
2021-03-23 13:10:01 +01:00
276ecd7879 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: Ic8d89a2ba2d92bd892c892d269e20e1b143306d6
2021-03-18 11:31:12 +00:00
db3e3a98b8 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: Id0e5435b082b3079e98081adf59e7177675205ea
2021-03-18 11:30:48 +00:00
Stephen Finucane
8a43c37004 Remove lower-constraints remnants
These were missed in change I3eafc92ba7c7305b1a73d3f96c427ed12c96dbf7.

Change-Id: Idf7148bcf588efbd20352bf2160ecee573156444
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-02-11 12:03:16 +00:00
Stephen Finucane
f234316cce Uncap PrettyTable
This is now maintained as a Jazzband project [1].

[1] https://github.com/jazzband/prettytable

Change-Id: Id484bf8fe017bf8f6784155462640840b2053677
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-02-11 12:01:55 +00:00
Stephen Finucane
456bd8521f Remove six
There are only two uses of this. Oddly, we never specified this
dependency directly and were instead relying on it being included
indirectly.

Change-Id: I3229750f3c47689c6b8d9db80a962a755b5a5da9
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-02-11 12:01:55 +00:00
Hervé Beraud
a962943bda Dropping lower constraints testing
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: I3eafc92ba7c7305b1a73d3f96c427ed12c96dbf7
2020-12-18 15:13:08 +01:00
Zuul
c4d03743aa Merge "Use py3 as the default runtime for tox" 2020-12-11 14:29:30 +00:00
Zuul
1bff329b0d Merge "Use TOX_CONSTRAINTS_FILE" 2020-12-11 14:29:27 +00:00
Ghanshyam Mann
9f95a6e19b Register oslo policy opts explicitly for check_policy_json
check_policy_json() common check need [oslo_policy].policy_file
config value and it is better to register those options explicitly
in check_policy_json() in case they are not register by services.

Currently it work as oslo.policy opts are registered via some import
in service side code path for upgradechecks which are not so safe
when these code import path change.

Change-Id: I16fcce119698c7375e4b58558fdce89e78a79a9b
1.3.0
2020-12-07 21:12:03 +00:00
Ghanshyam Mann
9d3bb03fc8 Fix lower-constraints job
oslotest 1.5.1 is restricted to pbr <1.0 which conflict
with other deps lower constarint for pbr.

Error:
The conflict is caused by:
    oslo-i18n 3.15.3 depends on pbr!=2.1.0 and >=2.0.0
    oslo-serialization 2.21.1 depends on pbr!=2.1.0 and >=2.0.0
    oslo-utils 4.5.0 depends on pbr!=2.1.0 and >=2.0.0
    oslotest 1.5.1 depends on pbr!=0.7, <1.0 and >=0.6

https: //zuul.opendev.org/t/openstack/build/cb2bce3b4e004601958b764dfd0737b8
Change-Id: I513262b85a57ce9f81a63bd778fdd7f7be27e485
2020-12-07 14:24:37 -06:00
Ghanshyam Mann
c705067278 Add common checks for json to yaml policy file migration
As part of community goal[1] for migrating the policy file
from JSON format to YAML we need to add upgrade check to
detect any JSON formatted file. That check needs to be
done in each service side which are deprecating the JSON
format. So to avoid duplicate code, this commit add that
check in oslo_upgradechecks and that can be enabled from
service side during they migrate to YAML format.

Service will enable it like below:

    _upgrade_checks = (
        (_('Policy File JSON to YAML Migration'),
            (common_checks.check_policy_json, {'conf': CONF})),
    )

Also modify the check() method to accept the **kwargs for checks.

[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Ifa71c20879c964f794a40b981744d95db4ab1602
1.2.0
2020-11-21 19:11:55 +00:00
Hervé Beraud
20b199e36d Use TOX_CONSTRAINTS_FILE
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: I6d07e0ed66edc95f4afec6829b46fca679cd5814
2020-11-04 10:51:29 +01:00
Hervé Beraud
09c42beb5e Use py3 as the default runtime for tox
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: I3a98d1c258389968a892d6ccd067d3b8fb78a29a
2020-11-04 10:05:16 +01:00
Zuul
ff5ad7b821 Merge "Adding pre-commit" 2020-09-22 11:23:46 +00:00
741df12ff4 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: Ib5ee719e065a5be67a64982dafc7c4cb14ff8f3e
2020-09-11 21:01:31 +00:00
0a09ac14fc 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: Icf5ce9d7fa96131cd2ae66f8a3b0c57af58eb453
Sem-Ver: feature
2020-09-11 21:01:29 +00:00
Hervé Beraud
85abe44233 Adding pre-commit
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: I8d5290d62b12a7850fc932c3778cc37951dd67ed
Co-authored-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-03 14:10:56 +02:00
Zuul
d6b609727f Merge "Align contributing doc with oslo's policy" victoria-em 1.1.1 2020-06-30 16:01:39 +00:00
Zuul
2380e79c1c Merge "Add release notes links to doc index" 1.1.0 2020-06-03 09:06:33 +00:00
Andreas Jaeger
9a1b0cecb1 Switch to newer openstackdocstheme and reno versions
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.

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: Iec4e4b3ed18e36d8ee1942e45e290ce292e7f881
2020-05-18 21:01:34 +02:00
Hervé Beraud
d05d6381d0 Align contributing doc with oslo's policy
Related to:
- https://review.opendev.org/#/c/723044/
- https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Change-Id: I9802b21406359bb2e2a5c48bd6dd6f2d31cb4460
2020-05-04 18:34:11 +02:00
Zuul
e92f625e08 Merge "Add py38 package metadata" 2020-04-27 08:59:51 +00:00
Sean McGinnis
87d2e49068
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: I9513860cc02287ab987d22f3403bb19bd07c28a9
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:52 -05:00
Sean McGinnis
6d20f413e2
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: I2347b02a274ea901705010dbf4139fc6db2557bb
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:14 -05:00
Dmitry Tantsur
4129baee14 Remove Babel from requirements
It's not a runtime dependency (and even oslo.i18n is dropping it).

Change-Id: I678338bda728c683a6cf37df2abb706c48a980e2
2020-04-17 11:43:52 +02:00
Hervé Beraud
0df82f89be Add release notes links to doc index
Change-Id: I0fb6aed29d034141db13ec11913b4f5f1f68d6d5
2020-04-16 17:46:06 +02:00
4918c49829 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: Ibd9b183f80dcde07cbe1714c6487303f0a2cf684
2020-04-14 10:17:54 +00:00
364b57109b Update master for stable/ussuri
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: Ia423d51c7c8ba1da79bb4569f17f3523819be618
Sem-Ver: feature
2020-04-14 10:17:52 +00:00
Andreas Jaeger
b93610d0e3 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Ignore W504 line break after binary operator

Change-Id: Ice5627d714bad308bcf2e467a553d2d2297ea337
1.0.1 ussuri-em
2020-03-30 12:03:13 +00:00
Sean McGinnis
d00f48987f
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: I67b86898cb443dc02c6b41a78bfe54f43f8d6c74
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-13 11:44:15 -05:00