Commit Graph

1448 Commits

Author SHA1 Message Date
Zuul 41b8a44f69 Merge "reno: Update master for unmaintained/xena" 2024-03-07 09:07:33 +00:00
Zuul 7d14e7e677 Merge "reno: Update master for unmaintained/wallaby" 2024-03-07 09:07:32 +00:00
OpenStack Release Bot 011145bef5 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: Iaee59e438b755e0dd6226819bb1028b28fa4a4cf
2024-03-07 08:46:04 +00:00
OpenStack Release Bot bac1ec579c reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I3e51246a6b6b541a5bcfdd874650527a04100c8f
2024-03-07 08:45:05 +00:00
OpenStack Release Bot 8ffeeef11d reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I393167aa7a92eae40c5a63735191ee7a56376823
2024-03-07 08:43:59 +00:00
Dr. Jens Harbott 7689c38f3f zuul: Use openstack-python3-jobs template
Switch to the generic template that will be update each cycle.

Change-Id: I16ff153d8b949d9c17e6592ecfc005ec3187a872
2024-02-29 17:35:28 +01:00
Dr. Jens Harbott 6032f8b0a7 Fix branch selection in zuul config
Negative lookahead is no longer working, be positive instead.

Change-Id: Ic2ddb04bc1f1e81586fff54f1e7bee9ee3689512
2024-02-29 17:33:47 +01:00
OpenStack Release Bot 73ecaa7425 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ice4f5a77220ea48247f65234cb946c3ff85accf0
2024-02-05 16:14:09 +00:00
Stephen Finucane f0e64f7624 Remove lower-constraints.txt
This is no longer used.

Change-Id: Ief5a0fad9b1a3ef6b31342e691fb68598d68a541
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-11-15 10:06:18 +00:00
Stephen Finucane be8e6ba4fa tox: Use pre-commit for style checks
Change-Id: Ibe29f450c67c2297b659bd3c0b3b3b0d4d5e13a8
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-11-15 10:06:18 +00:00
Stephen Finucane 9f1ff00685 Ignore black changes
Add a .git-blame-ignore-revs file to ignore the black changes.

Change-Id: I73c39fb5a9f74d093a58c4f9bb8d2d3f5d9bda38
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-11-15 10:06:17 +00:00
Stephen Finucane 316044734f pre-commit: Integrate black
Change-Id: I1691e5cb0e0aa1d2f23466ff5458addd7b412a66
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-11-15 10:05:52 +00:00
Stephen Finucane ab7cdb4c25 Blacken code
Another library down.

Change-Id: Id29f29331ba994a1f09376763702fcca82ec6f1c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-11-15 10:05:52 +00:00
Zuul 6304b384bb Merge "Drop formal support for Python 3.6, 3.7" 2023-11-13 18:49:08 +00:00
Zuul 3ada0bd474 Merge "Add pre-commit" 2023-11-13 18:30:06 +00:00
Zuul 9d02ad3460 Merge "Fix pre-commit issues" 2023-11-13 18:29:46 +00:00
Zuul 3f47018de8 Merge "utils: Don't warn for partial formatter classes" 2023-10-26 10:39:22 +00:00
OpenStack Release Bot 32b640f3c0 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: Ic489db56a8ec5699dcc77640763542e55de45e83
2023-09-07 09:49:34 +00:00
Stephen Finucane 98aabe6cd6 Add pre-commit
Change-Id: Iac28b1a544b1b262e20481e77447f609b8b1699e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-08-30 19:29:30 +01:00
Stephen Finucane 147c01e734 Fix pre-commit issues
Change-Id: Ie973475b714e01b0619acd5554a88f7da9014edc
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-08-30 19:29:30 +01:00
Stephen Finucane 9af8b45dd6 utils: Don't warn for partial formatter classes
We make use of functools.partial in OSC to allow us to pass additional
configuration to formatters. This incorrectly results in a warning being
raised for these formatters since they are of type 'partial', not
'type'.

  DeprecationWarning: The usage of formatter functions is now
  discouraged. Consider using cliff.columns.FormattableColumn instead.
  See reviews linked with bug 1687955 for more detail.

Add a special handler for these since it's likely a somewhat
widespread pattern.

Change-Id: Icf8644d51e1f6fa9fc3a5896edd76db1c4ec38f0
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-08-30 19:18:29 +01:00
Stephen Finucane 22c047d81d Drop formal support for Python 3.6, 3.7
If it's not tested, it doesn't work.

Change-Id: I7b450500090bb4ea9f8849ed9bd0bed28d9f4d39
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-08-25 14:31:19 +01:00
suheoon d889faa0cd Fix comment of auth_config_hook
Change-Id: I86ded6871026f32e395e9fa15bf55e0367e7ced6
2023-08-19 17:48:05 +09:00
Zuul 2f5167f475 Merge "Revert "Do not output log on bash autocomplete generation"" 2023-07-29 18:35:15 +00:00
Stephen Finucane db9cdc95ed setup.cfg: Replace dash-separated config
Resolve the following warnings like the following being issued when
building the package:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

Change-Id: I4b75aac2c09b772f91e5ac9a4e77e9462f38bfd1
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-03-29 12:38:03 +01:00
Stephen Finucane 6152b686b7 Add 'SizeColumn' formatter
Present file sizes in human readable format.

Change-Id: I7e4a013cba7f91e38ba496d3ba7c4a67c4cd81c5
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-03-29 12:38:02 +01:00
Zuul 4bb2e57358 Merge "formatters: Cast *all* columns before outputting" 2023-03-28 16:32:49 +00:00
OpenStack Release Bot d0d30b31b9 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: I2261e0c0c7b4f1f818f41d02782dcfa1284233af
2023-03-02 14:10:45 +00:00
Stephen Finucane 12900da15b tox 4 compatibility
Remove 'usedevelop = true' and 'skipsdist = true', the combination of
which now means we don't install dependencies. Also remove the
basepython setting, which is no longer needed since we don't have any
Python 2-first distros to worry about. Finally, remove the
lower-constraints job and we no longer test for these.

Change-Id: I5b4b8cc1facb6e18cf12d33ea8113d47a0a76235
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-02-16 10:26:15 +00:00
Stephen Finucane 1deaaecc09 formatters: Cast *all* columns before outputting
This is a continuation of a previous change, change
Ib7db6a25f2352a013cb2ce603e60ca48b6cc70e6 ("formatters: Cast columns
before outputting"). As noted in that change, libraries can return
non-primitive types for many operations which can break YAML output
formatting since PyYAML only works with primitive types in safe mode.
That change was not complete as it only handled the formatters for dicts
and lists, not dicts of lists or lists of dicts. Close this gap now.

While we're here, we improve test coverage and catch a number of bugs
with the existing tests.

Change-Id: Ifd8db5b725f46a1ca216986167a0bcde5aec1e16
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-12-20 11:18:29 +00:00
Dr. Jens Harbott 1a6c1c2a26 Revert "Do not output log on bash autocomplete generation"
This reverts commit 973e16960d.

Reason for revert: This patch is wrong, it actually breaks the generated autocomplete output.

Change-Id: I553b76da9ba32d04d6ec4fcac88217616b7fc3ac
2022-10-10 19:26:50 +00:00
Zuul 58ff270a9c Merge "tox: Ignore .venv files for flake8" 2022-10-10 17:01:29 +00:00
Zuul 6510200ee1 Merge "remove unicode prefix from code" 2022-10-10 16:08:27 +00:00
Stephen Finucane a894a938c6 Remove Python 3 guide in HACKING
All files are Python 3 and unicode these days.

Change-Id: If444d9f667666154e36c345cbb1290e0f0feef3f
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-09-27 17:40:49 +01:00
OpenStack Release Bot 899e8c8a44 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: I1907a1785b7b2600e5f99005758bdbf898f89db0
2022-09-09 11:21:39 +00:00
OpenStack Release Bot d2b70bc04d 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: Ifd96607a202a9d7b570724901c9278b1d95ef329
2022-09-09 11:21:37 +00:00
niuke ae0aad4b37 remove unicode prefix from code
All strings are considered as unicode string from Python 3.

This patch drops the explicit unicode literal (u'...')
appearances from the unicode strings.

Change-Id: I9ecbedd5c31ed098c4a6d913a1cafebd7af49573
2022-08-30 05:37:18 +00:00
Zuul d438afaff1 Merge "doc: Comment out language option" 2022-08-02 13:06:35 +00:00
Takashi Kajinami bf47118a12 doc: Comment out language option
... because explicit language=None causes the below warning since
Sphinx 5.0.0.

Invalid configuration value found: 'language = None'. Update your
configuration to a valid language code. Falling back to 'en' (English).

Change-Id: Ib48278aa7e995477b5d3f970fa9234274d4f4556
2022-06-07 00:35:38 +09:00
David Hill 973e16960d Do not output log on bash autocomplete generation
Do not output log on bash autocomplete generation as it requires
manual sanitizing.   For instance, when running `openstack complete`,
it appends the following two lines:
~~~
complete -F _openstack openstack
2022-05-10 12:50:25.052 863 INFO osc_lib.shell [-] END return value: 0
~~~
and in the current .spec file, we manually remove the `complete -F`
line but we still get that LOG.info output in train at least.  This
behavior was not seen on master/wallaby.

Change-Id: Id99791831ffc145b10a0ec8c211a99f8a714fa0a
2022-05-10 12:52:15 -04:00
Zuul 65c73fd503 Merge "Add Python3 zed unit tests" 2022-03-09 12:24:13 +00:00
Zuul d720002588 Merge "Update master for stable/yoga" 2022-03-09 11:30:31 +00:00
Zuul 0d088d62a0 Merge "Fixed test for interface key" 2022-03-07 15:18:21 +00:00
OpenStack Release Bot 098efa38ef 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: I928b7ec69a6bc3646c9cbea1ebd861d9dd8b6f43
2022-03-04 17:01:53 +00:00
OpenStack Release Bot 9e4105af16 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: Ib1bfe9d5a77a947ef0d7920958cd5a2a301f9867
2022-03-04 17:01:50 +00:00
Zuul cce539d65e Merge "Don't fail on extlinks warnings for reno build" 2022-02-21 12:20:36 +00:00
Zuul a8fde07fe4 Merge "Fix TestTagHelps for python3.10" 2022-02-21 12:20:34 +00:00
Zuul ce936a2f72 Merge "Respect 'interface' key from clouds.yaml" 2022-02-21 12:20:26 +00:00
Dr. Jens Harbott d993b52b30 Don't fail on extlinks warnings for reno build
With Sphinx==4.4.0 some "helpful" warnings were introduced when an
external link could be replaced by a macro, like for :lpbug:. Sadly we
have a very high number of existing release notes that trigger these
warnings and no good way to fix them retrospectively, because would mess
up their mapping to releases. So we change the logging for the
sphinx.ext.extlinks to ignore these warnings for now.

Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
Change-Id: Id646d77afc6817921e29eeab3bee75c50021c50b
2022-02-21 12:24:45 +01:00
Jakob Meng 333c681a4c Fixed test for interface key
Previously, key interface was asserted to be 'public'
when testing reads from clouds.yaml. But to effectively
assert values from clouds.yaml, one has to use values
which differ from the defaults.

Change-Id: Ifc9a10e6ca02369c2f00b10d9b2b5412140dbeee
2022-02-21 10:55:31 +00:00