Commit graph

1484 commits

Author SHA1 Message Date
Takashi Kajinami
efd1224fdb Delay string interpolations at logging calls
This is a general best practice which brings (slight) performance
improvements and also structured logging.

Enable the hacking check to enforce it.

Change-Id: I1438382344507b05a88e59a675f398901ccbb9dc
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-12-05 00:36:27 +09:00
Zuul
caf931f37f Merge "Remove reference to tag framework" 2025-11-20 17:41:29 +00:00
Takashi Kajinami
c8ae40c1b7 Remove reference to tag framework
... because the framework was removed[1].

[1] https://governance.openstack.org/tc/reference/tags/index.html

Change-Id: I1bb9fd9f4f7c153a7fe7c80c28cb1fd780784cc4
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-11-21 02:24:38 +09:00
Zuul
da13048700 Merge "Validate --rollback option when parsing arguments" 2025-11-16 15:36:18 +00:00
Zuul
469079d5d6 Merge "Remove deprecated --enable-rollback option" 2025-11-13 17:49:03 +00:00
Takashi Kajinami
d3585c38c3 Validate --rollback option when parsing arguments
Also use explicit default to simplify logic.

Change-Id: I65e690485552a4b7fe36db2816b9478044968bd8
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-11-14 02:11:36 +09:00
OpenStack Release Bot
5580c6ea45 reno: Update master for unmaintained/2024.1
Update the 2024.1 release notes configuration to build from
unmaintained/2024.1.

Change-Id: I96ef0d8f03258b3e91561a5fecab05fc3e061cd2
Signed-off-by: OpenStack Release Bot <infra-root@openstack.org>
Generated-By: openstack/project-config:roles/copy-release-tools-scripts/files/release-tools/change_reno_branch_to_unmaintained.sh
2025-10-31 11:54:43 +00:00
Zuul
09cce32ad8 Merge "Fix outdated default envlist" 2025-10-12 18:51:12 +00:00
Takashi Kajinami
a4bd59dea4 Fix outdated default envlist
Change-Id: I04153f380efcc00d888bab7cd65cbcc1500f095b
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-10-13 02:58:33 +09:00
Zuul
b0552dd167 Merge "Bump pyupgrade target to 3.10+" 2025-10-07 13:55:10 +00:00
Takashi Kajinami
febab9a627 Skip functional tests for .pre-commit-config.yaml update
The file is used by only pep8 target.

Change-Id: I780c0cd18c6eee2cb98c38e069fe49a2c6988492
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-10-05 19:59:34 +09:00
Takashi Kajinami
725867fd36 Bump pyupgrade target to 3.10+
... according to the versions currently supported.

Change-Id: I93f0eed8b29cbb7779899ba9895e4f4233a884fa
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-10-05 19:30:13 +09:00
Takashi Kajinami
30dafe7d7e pre-commit: Update versions
Change-Id: Ida9f687195547cbb3afe4a727ed84c2e81c63365
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-10-05 19:26:43 +09:00
Zuul
6e495db406 Merge "Run pyupgrade to clean up Python 2 syntaxes" 2025-10-02 14:37:56 +00:00
OpenStack Release Bot
8e4b075dd1 Update master for stable/2025.2
Add file to the reno documentation build to show release notes for
stable/2025.2.

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

Sem-Ver: feature
Change-Id: I5784305bc51a413ed9a20d0fed252d1f141ef88f
Signed-off-by: OpenStack Release Bot <infra-root@openstack.org>
Generated-By: openstack/project-config:roles/copy-release-tools-scripts/files/release-tools/add_release_note_page.sh
2025-09-04 13:41:46 +00:00
Takashi Kajinami
d8a25e1ce1 Fix a typo in release note
Change-Id: Ibff6a20a1e1fb204eb48c2d8b6aee44541d5b1ff
2025-06-26 11:17:47 +09:00
Zuul
6416882764 Merge "Remove Python 3.9 support" 2025-06-10 06:39:06 +00:00
Zuul
a054256037 Merge "Revert "Replace license classifier"" 2025-06-10 06:09:24 +00:00
Takashi Kajinami
d561d66655 Remove Python 3.9 support
Python 3.9 is no longer part of the tested runtimes[1].

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

Change-Id: Id0afb54c524044f6c0cde11a97b809a392add73f
2025-06-09 08:59:09 +00:00
Takashi Kajinami
ac419fb80b Revert "Replace license classifier"
This reverts commit 3dcdcbde64.

Reason for revert:
There is still on-going discussion about the new license expression
and it may be changed in a near future. Until we get more stable
conclusion let's stick with the older format. See [1] to find details.

[1] https://review.opendev.org/c/openstack/nova/+/951226

Change-Id: Ic87fdba9d2dde5657fc2a4a8d640dd227321d6c1
2025-06-09 07:41:40 +00:00
Zuul
eda7142f2c Merge "Replace license classifier" 2025-05-29 15:05:32 +00:00
Zuul
a5c0f530c4 Merge "Bump minimum pbr" 2025-05-29 14:19:14 +00:00
Takashi Kajinami
3dcdcbde64 Replace license classifier
... according to the following warning from setuptools.

SetuptoolsDeprecationWarning: License classifiers are deprecated.

********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:

License :: OSI Approved :: Apache Software License

See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************

Change-Id: Ica1da1203c70370ec29ddd67253bee4a807c08b1
2025-05-29 22:35:55 +09:00
Takashi Kajinami
e17fdb86b6 Bump minimum pbr
pbr 6.1.1 introduced explicit dependency on setuptools, thus bumping
pbr allows us to remove direct and explicit dependency on setuptools.

Change-Id: I5131d21d178cce3389ffa7237efd8694315eece8
2025-05-29 21:06:32 +09:00
Zuul
58b78320f3 Merge "Add --project param to stack list in OSC plugin" 2025-05-07 11:08:58 +00:00
Takashi Kajinami
47d6aac1c2 add pyproject.toml to support pip 23.1
pip 23.1 removed the "setup.py install" fallback for projects
that do not have pyproject.toml and now uses a pyproject.toml
which is vendored in pip.
To address that, this change adds the minimal pyproject.toml
to enable pbr to be properly used to build editable wheels.

This is required to support installing devstack on
centos stream 9 and related distros with GLOBAL_VENV=True
Without this change the wsgi scripts are not generated in
editable mode. i.e. pip install -e /opt/stack/keystone

See https://pip.pypa.io/en/stable/news/#v23-1
and https://github.com/pypa/pip/issues/8368 for more
details on the removal of the fallback support.

setuptools v64.0.0 is used to support editable installs
via its PEP-660 implmentation
https://github.com/pypa/setuptools/pull/3488

Co-Authored-By: Sean Mooney <work@seanmooney.info>
Change-Id: I0fd13f34ddeec25161d63437f2ea14f7b3a4c42e
2025-05-07 14:30:30 +09:00
Takashi Kajinami
85713447b1 osc: Use FormattableColumn for formatter
... because usage of legacy format function was deprecated 8 years ago
and was recently removed from osc-lib[1].

[1] 0e7dada02b825b2f97ac3eb68544bdd438a3a099

Change-Id: I62521846b4aaf8036cd83e3f5a38d9eed6c520a7
2025-05-07 14:30:30 +09:00
Takashi Kajinami
28464d9b99 Drop redundant injection of VIRTUAL_ENV
tox automatically injects the environment so no manual override is
necessary.

Also remove basepython because tox uses the python version where tox
is installed by default, and we no longer expect that the tests may run
in env with python 2.

Change-Id: I4082aedf525f8d39dc65236d74e4063d3ae3a1ba
2025-04-15 21:25:47 +09:00
Zuul
6c9e65f61b Merge "doc: Use common requirements definition" 2025-04-15 05:08:20 +00:00
Takashi Kajinami
ba0c13610b doc: Use common requirements definition
Change-Id: Ie6204cb48e707e1f4d0170a970e8ceaed4c48b1d
2025-04-14 00:41:50 +09:00
Takashi Kajinami
d5756db596 Run pyupgrade to clean up Python 2 syntaxes
Update all .py source files by
 $ pyupgrade --py3-only $(git ls-files | grep ".py$")
to modernize the code according to Python 3 syntaxes.

pep8 errors are fixed by
 $ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \
    --in-place heatclient
and a few manual adjustments.

Also replace a few remaining usage of %s by format or join.

Change-Id: I054046b414f809ff2e390713dd605f3732064148
2025-04-13 16:50:48 +09:00
Takashi Kajinami
704e13a7e0 Use pre-commit to run format check
Change-Id: Ie91c1e1623c9c2712effa98bdbb39a0895677933
2025-04-13 16:45:22 +09:00
Tobias Urdin
f35ae22279 Add --project param to stack list in OSC plugin
This adds the --project parameter for the `stack list`
command in the OSC plugin so that we can retrieve the
stacks for a single project.

Change-Id: Ia1a198526292f4f8a6bccaa6235755525230e73e
2025-03-17 14:57:40 +01:00
Zuul
895751dcd9 Merge "Skip functional tests for .gitreview" 2025-03-15 16:39:41 +00:00
Takashi Kajinami
804539bd5d Skip functional tests for .gitreview
... because the file does not affect actual functionality.

Change-Id: I7462021f96ac62c7f9364180fa9ab65c3c46f0ac
2025-03-15 14:34:23 +00:00
OpenStack Release Bot
ad1846c8c6 Update master for stable/2025.1
Add file to the reno documentation build to show release notes for
stable/2025.1.

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

Sem-Ver: feature
Change-Id: Ie17fb89a3fe70eeb32896dae6bab8cd58ec05001
2025-03-06 09:05:24 +00:00
Takashi Kajinami
82d5c983f5 Remove deprecated --enable-rollback option
This option in stack-update command was deprecated a long ago[1].

[1] 847a8fd566

Change-Id: I39d96d22f811e420a72e22f384a3ea0709324e8c
2025-02-16 07:52:49 +00:00
OpenStack Release Bot
dd976ac913 reno: Update master for unmaintained/2023.1
Update the 2023.1 release notes configuration to build from
unmaintained/2023.1.

Change-Id: I27ee5870cfff272885a0a8981e3b20323b0ed108
2024-11-20 09:55:45 +00:00
Zuul
bc6fa63c9c Merge "Require int value for --limit option" 2024-11-16 17:20:24 +00:00
Takashi Kajinami
f589ad7ea2 Declare Python 3.12 support
Now Python 3.12 unit tests job is voting. So we can safely say this
is tested with Python 3.12 .

Change-Id: Iabceca3fb0496aee7ced8d476effdf53123f0254
2024-10-09 22:38:04 +09:00
OpenStack Release Bot
fa0a332c14 Update master for stable/2024.2
Add file to the reno documentation build to show release notes for
stable/2024.2.

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

Sem-Ver: feature
Change-Id: I6b28ffa86c76cce8d9d3873b864a2c093f3f4efc
2024-09-05 15:53:10 +00:00
Takashi Kajinami
d55e096132 Fix storyboard links
We have a dedicated project for python-heatclient project.

Change-Id: Ib419c4463f347195595ef8aa673720321289b171
2024-08-28 14:57:07 +00:00
Zuul
1927719fb2 Merge "Remove Python 3.8 support" 2024-06-25 16:00:33 +00:00
Takashi Kajinami
2d07858d1d Remove old excludes
These are detected as errors since the clean up was done[1] in
the requirements repository.

[1] 314734e938f107cbd5ebcc7af4d9167c11347406

Change-Id: Ia41294d1be0cb661c9fd8ecd7f01d08967e1e3e1
2024-04-30 19:26:11 +09:00
Takashi Kajinami
e89f3f4c89 Remove Python 3.8 support
Python 3.8 is no longer part of the tested runtimes for 2024.2[1]
because its EOL is coming soon.

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

Change-Id: I53af6de4448e43ddd8bc0203b9e5124c691d645e
2024-04-30 13:26:27 +09:00
OpenStack Release Bot
b46e23eafe reno: Update master for unmaintained/zed
Update the zed release notes configuration to build from
unmaintained/zed.

Change-Id: I832ce2a06024cb05149ac23841f52688c015a092
2024-04-29 10:47:58 +00:00
OpenStack Release Bot
643212e85c Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

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

Sem-Ver: feature
Change-Id: Iafa90de5fb36450d7d418862cceceb973e004862
2024-03-07 15:35:46 +00:00
Zuul
1aab1e29bd Merge "reno: Update master for unmaintained/victoria" 2024-03-06 15:21:09 +00:00
Zuul
4a9afd4a45 Merge "reno: Update master for unmaintained/wallaby" 2024-03-06 15:05:53 +00:00
OpenStack Release Bot
4dd33e06e1 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I98a1546db851a26e3d82c8ebd980526280c9cc3a
2024-03-06 11:42:07 +00:00