Commit Graph

263 Commits

Author SHA1 Message Date
Zuul fbc0a7c4a0 Merge "reno: Update master for unmaintained/victoria" 2024-03-13 02:32:35 +00:00
Zuul 4e0ab1352f Merge "reno: Update master for unmaintained/xena" 2024-03-12 14:29:45 +00:00
OpenStack Release Bot 7d9162f937 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: Ied60cd029b14e986ceb1ee15abd99778303fbba8
2024-03-07 14:24:20 +00:00
OpenStack Release Bot 3544fcf5a5 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: If843b3620144df0011b33d3b8fdd4e47282916d2
2024-03-07 14:20:00 +00:00
OpenStack Release Bot 0a646242ed reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: If4bb28e2baaed713ec4016e7869ff59fb2f3712b
2024-03-07 14:13:57 +00:00
Zuul 07c4ba6469 Merge "pre-commit: Bump versions" 2024-02-21 05:24:33 +00:00
OpenStack Release Bot a3918c73d6 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I71f3aa42157290280ef7b2952ee039c2f0497fb7
2024-02-06 14:26:52 +00:00
Takashi Kajinami 1ffaeb6257 pre-commit: Bump versions
This change updates the pre-commit-config file following the recent
update made in some other repos.

Change-Id: I8a2bfeac0f4d6e5c7f284f4bcfdcb0c09adefe35
2024-02-02 12:54:36 +00:00
Takashi Kajinami 2a282e9eb7 Move reno to doc requirements
The library is used only when rendering release notes.

Change-Id: Ief984862bbc99e77fbff33f77dbe1653b6d13b81
2024-01-28 01:41:47 +09:00
Takashi Kajinami 18498c42bf Bump hacking
hacking 3.0.x is too old.

Change-Id: Id161defa1c6749dd300b60dafe3fded1c2fad734
2024-01-28 01:40:17 +09:00
Ghanshyam Mann 74d1c4cb0d Test python 3.10 and 3.11
As per the current release tested runtime, we
need to test python 3.8 to python 3.11 so using the
generic python testing template which run the python
versions jobs as per the current release runtime.

Also, updating the same in python classifier in setup.cfg

Change-Id: Iacd2a060b8a7676ced37cde18d80f260fcbffefa
2024-01-11 15:36:52 -08:00
OpenStack Release Bot ec6c8bcd3c Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

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

Sem-Ver: feature
Change-Id: I99dfcd2b430dabeb35f54fdffbaaefc0b905b8ea
2023-09-07 09:35:33 +00:00
OpenStack Release Bot 925577850d 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: I2a158156eba8d8e2912d3917426bf4997aee6745
2023-02-24 15:14:47 +00:00
OpenStack Release Bot a4f7631225 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: I1c7a23c4d6c247afc296ade21028d196c4db0004
2022-09-09 09:15:29 +00:00
OpenStack Release Bot c494635858 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: I92c911b6a05cedad3a0ffab84c7bcc5a932bf649
2022-09-09 09:15:28 +00:00
Hervé Beraud 0ea747e6bf Fix formatting of release list
Change-Id: Ia43ac76ff0447a61dd3a55ad9e75974bf03988ac
2022-05-27 13:57:48 +02:00
Hervé Beraud ed884e89fc 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: I6a9b2f731b8aec8076c79b48350431f5552ba267
2022-05-05 15:59:30 +02:00
Hervé Beraud c1987c3a44 Remove unnecessary unicode prefixes
Change-Id: I89d9b80a54a283664502c84ae07b992c4a4172ab
2022-04-20 12:16:47 +02:00
OpenStack Release Bot 5d75103724 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: I71abcbf86ff5ae6bc38eec95ba3cd7dd366070e8
2022-03-04 17:16:53 +00:00
OpenStack Release Bot b86ca41f65 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: I32bc070a02163ba6274730c26648eb0ef5598477
2022-03-04 17:16:51 +00:00
Zuul aaca110187 Merge "Add Python3 yoga unit tests" 2021-10-05 11:08:58 +00:00
Zuul bef3f2dff4 Merge "Update master for stable/xena" 2021-10-05 08:21:36 +00:00
Stephen Finucane 45e5452482 doc: Avoid duplicate entry warning
Both the 'FiniteMachine' and 'HierarchicalFiniteMachine' in
'automaton.machines' define an 'Effect' attribute. It seems recent
versions of autodoc can't handle this since we're seeing the following
warning:

  automaton/machines.py:docstring of
  automaton.machines.Effect:1:duplicate object description of
  automaton.machines.Effect, other instance in reference/index, use
  :noindex: for one of them

Do as it says and configure 'noindex' for the latter. This means we lose
the ability to link to other members of this class but that's a
necessary compromise since there's no way to exclude an individual
member.

Change-Id: Ic9e50f6b56a278032463357552960e40c2ddf6a7
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-09-21 15:32:39 +01:00
OpenStack Release Bot a065638504 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: I7cdaf6597f3631d2f37229f65e3adcda56e931bc
2021-09-10 14:32:52 +00:00
OpenStack Release Bot 1b1e18600e 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: I202f902a402148fa943467aa24259e40de4a7ef4
2021-09-10 14:32:50 +00:00
Hervé Beraud 0461d8e766 Moving to OFTC
Also updates the IRC channel from #openstack-state-management
to #openstack-oslo to reflect the retirement of
the #openstack-state-management channel.

http://lists.openstack.org/pipermail/openstack-discuss/2021-May/022724.html
http://lists.openstack.org/pipermail/openstack-discuss/2021-June/022929.html

Change-Id: I542ab51a655dbe74a28620ac07952822022e462e
2021-06-07 21:08:51 +00:00
wu.shiming df3f354201 setup.cfg: Replace dashes with underscores
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: I53a24ff7f9984997a16f436d9e6c62605e90d9e5
2021-05-12 09:18:00 +08:00
Zuul 3cc5bbcb64 Merge "Move flake8 as a pre-commit local target." 2021-04-16 13:55:12 +00:00
Zuul 554c285b80 Merge "Remove lower-constraints remnants" 2021-04-16 12:48:49 +00:00
Zuul b488586910 Merge "tox: Remove references to testr" 2021-04-16 12:25:50 +00:00
Daniel Bengtsson 80bd6a5442 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: I402e708832395d95b04a5b956a19d5cc8c3f1c1f
2021-04-16 12:07:10 +01:00
OpenStack Release Bot 2353f50296 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: I84de85283509bf49f6793276d29a885805fea20d
2021-03-18 11:10:57 +00:00
OpenStack Release Bot 1703b2a49e 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: Ibdf3450aa4921c52b775377f31c5468ce611cdce
2021-03-18 11:10:43 +00:00
Stephen Finucane 0faae131c9 tox: Remove references to testr
We use stestr now.

Change-Id: I3f7a2c89281a01b66b23b2fc984ed601c20ef112
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-02-11 12:31:54 +00:00
Stephen Finucane 283b8e26f1 Remove lower-constraints remnants
These were missed in change I2706e8af350d07e51169f8bc13c7404d4696b2a2

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

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

Change-Id: I13d782b4b1be7556c3a7cde344a38748d31a249c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-02-11 12:27:12 +00:00
Zuul 155c7c104e Merge "Use py3 as the default runtime for tox" 2021-01-21 18:23:47 +00:00
Zuul 89b67ddb9c Merge "Use TOX_CONSTRAINTS_FILE" 2021-01-14 13:13:20 +00:00
Hervé Beraud 61a16f1d81 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: I2706e8af350d07e51169f8bc13c7404d4696b2a2
2020-12-18 15:05:12 +01:00
Riccardo Pittau fed5f89755 Remove six dependency
We run on Python 3 only, time to remove six dependency

Also fix l-c for new pip-resolver and move pep8 deps
in tox.ini to avoid conflicts.

And since we're here, update pre-commit config to support correct
hacking version.

Change-Id: Ibbe733c4be37d1a9dd9149d491591ef2e50dad6a
2020-12-12 08:08:06 +01:00
Hervé Beraud de336d03cd 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: I0689bf1a5e7f44fcdc4519932df291db679e0869
2020-11-04 10:45:37 +01:00
Hervé Beraud 86a214fc68 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: Iaaa6d1b7b0a957da75b0819c2d10b639463f9d23
2020-11-04 10:00:17 +01:00
Zuul c6f5685abb Merge "Adding pre-commit" 2020-10-05 17:08:56 +00:00
Hervé Beraud 7d0648f8a3 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: I1e4625d34ed08218dd7069402a1eff1418f4ec35
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-15 17:41:13 +02:00
OpenStack Release Bot f74bef8149 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: Iddd80d10bad24bf52c72401fb49fddcf8335060b
2020-09-11 20:54:36 +00:00
OpenStack Release Bot 5f57b8543f 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: I9f7f44ad0787ae3f2519287bf73cd1395a8474a6
Sem-Ver: feature
2020-09-11 20:54:34 +00:00
Sean McGinnis a30803c50e
Update lower-constraints list
This updates the lower constraints packages with only things that are
currently pulled in with the latest necessary requirements. It also
removes linters that are part of the blacklist in global requirements as
those are not needed for tracking.

Change-Id: Iffa3a1caaa14b7367991e24eb2cfaf9332736701
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-08 15:37:47 -05:00
Hervé Beraud 3370750b54 drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: Ide97d869c5e56e56e2a522f198f0973504972697
2020-06-08 22:22:09 +02:00
Zuul db875eab52 Merge "Switch to newer openstackdocstheme and reno versions" 2020-06-03 10:20:53 +00:00
Hervé Beraud dee4179fa0 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: Ib32cd47131b154509357b228b2e97548cf5ba4e4
2020-06-02 19:34:29 +02:00