* Update osc-lib from branch 'master'
to 41b8a44f696d14a84b5d93e2c76f96a4ec73901e
- Merge "reno: Update master for unmaintained/xena"
- reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.
Change-Id: Iaee59e438b755e0dd6226819bb1028b28fa4a4cf
* Update osc-lib from branch 'master'
to 7d14e7e67785480c7329d9c949aaff0d05966ee4
- Merge "reno: Update master for unmaintained/wallaby"
- reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.
Change-Id: I3e51246a6b6b541a5bcfdd874650527a04100c8f
* Update osc-lib from branch 'master'
to 8ffeeef11de13c614cab80c627110151b04d93a9
- reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.
Change-Id: I393167aa7a92eae40c5a63735191ee7a56376823
* Update osc-lib from branch 'master'
to 7689c38f3f30b1fdfeb26cbb8b1eff64ab4be292
- zuul: Use openstack-python3-jobs template
Switch to the generic template that will be update each cycle.
Change-Id: I16ff153d8b949d9c17e6592ecfc005ec3187a872
* Update osc-lib from branch 'master'
to 6032f8b0a7bd60ea81e7d3f89a2e97d4998d5f84
- Fix branch selection in zuul config
Negative lookahead is no longer working, be positive instead.
Change-Id: Ic2ddb04bc1f1e81586fff54f1e7bee9ee3689512
* Update osc-lib from branch 'master'
to 73ecaa7425214cf61e5f35b69178619a1579f73c
- reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.
Change-Id: Ice4f5a77220ea48247f65234cb946c3ff85accf0
* Update osc-lib from branch 'master'
to f0e64f76240d2a2d9a4ec032ab091457fcd54248
- Remove lower-constraints.txt
This is no longer used.
Change-Id: Ief5a0fad9b1a3ef6b31342e691fb68598d68a541
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update osc-lib from branch 'master'
to be8e6ba4faebadd04da24ccf959407a9c9566fad
- tox: Use pre-commit for style checks
Change-Id: Ibe29f450c67c2297b659bd3c0b3b3b0d4d5e13a8
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update osc-lib from branch 'master'
to 9f1ff006858611ddff60fb9ffece1b99bd9eef4f
- 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>
* Update osc-lib from branch 'master'
to 316044734f97531b9233f4f2eeafc57b50a768ff
- pre-commit: Integrate black
Change-Id: I1691e5cb0e0aa1d2f23466ff5458addd7b412a66
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update osc-lib from branch 'master'
to ab7cdb4c25304c0bb781fd643b0d36d8ecd8600e
- Blacken code
Another library down.
Change-Id: Id29f29331ba994a1f09376763702fcca82ec6f1c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update osc-lib from branch 'master'
to 6304b384bb9b8e792adf5b10004d6cd02065e1ea
- Merge "Drop formal support for Python 3.6, 3.7"
- 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>
* Update osc-lib from branch 'master'
to 3f47018de8d5f7a83425e1d2d08ce2e3c7a33534
- Merge "utils: Don't warn for partial formatter classes"
- 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>
* Update osc-lib from branch 'master'
to 32b640f3c058936389911465489ff9bb22f2fe7d
- 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
* Update osc-lib from branch 'master'
to d889faa0cdfdcab752d8df58ecd9e31fbb2882c4
- Fix comment of auth_config_hook
Change-Id: I86ded6871026f32e395e9fa15bf55e0367e7ced6
* Update osc-lib from branch 'master'
to 2f5167f4752504515828f9f227f93134ea965c4a
- Merge "Revert "Do not output log on bash autocomplete generation""
- Revert "Do not output log on bash autocomplete generation"
This reverts commit 973e16960d3d8054e3d6b367033ea975900741c0.
Reason for revert: This patch is wrong, it actually breaks the generated autocomplete output.
Change-Id: I553b76da9ba32d04d6ec4fcac88217616b7fc3ac
* Update osc-lib from branch 'master'
to db9cdc95ed96045ff47c02cf822b1ba90ffa67b0
- 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>
* Update osc-lib from branch 'master'
to 6152b686b700c0478a1eb8a0f904ef0e5b90150c
- Add 'SizeColumn' formatter
Present file sizes in human readable format.
Change-Id: I7e4a013cba7f91e38ba496d3ba7c4a67c4cd81c5
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update osc-lib from branch 'master'
to 4bb2e57358ef373809df0f4e5e50c66f7a6f7201
- Merge "formatters: Cast *all* columns before outputting"
- 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>
* Update osc-lib from branch 'master'
to d0d30b31b942bb118ace145807d78fad06fea91b
- 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
* Update osc-lib from branch 'master'
to 12900da15b3163ac46504c9658f83e81b6849d82
- 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>
* Update osc-lib from branch 'master'
to 58ff270a9c54c591e743092f0002997ba5b62b79
- Merge "tox: Ignore .venv files for flake8"
- tox: Ignore .venv files for flake8
Commonly used for testing virtual environments (at least by me).
Change-Id: I3b711bd3464a2ca2a8dced37d9d6ec328b8bf827
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update osc-lib from branch 'master'
to 6510200ee12b8bba683fcce91d6a84a8d9c9114e
- Merge "remove unicode prefix from code"
- 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
* Update osc-lib from branch 'master'
to a894a938c6601ce7253a4db6744f4915f0463c2f
- 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>
* Update osc-lib from branch 'master'
to 899e8c8a44259fd982fffec1539a272ee1abf43f
- 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
* Update osc-lib from branch 'master'
to d2b70bc04d041cd472c50706d5fd6b31c5e3d064
- 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
* Update osc-lib from branch 'master'
to d438afaff1ae7d5b2a59ed504f9a23a7f878dbdb
- Merge "doc: Comment out language option"
- 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
* Update osc-lib from branch 'master'
to 973e16960d3d8054e3d6b367033ea975900741c0
- 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
* Update osc-lib from branch 'master'
to 65c73fd5030276e34f3d52c03ddb9d27cd8ec6f5
- Merge "Add Python3 zed unit tests"
- 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
* Update osc-lib from branch 'master'
to d7200025889898b9e0c3764ae3c1f14199b0d139
- Merge "Update master for stable/yoga"
- 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
* Update osc-lib from branch 'master'
to 0d088d62a04801cd6411420f01bb46eef4ebb2fc
- Merge "Fixed test for interface key"
- 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
* Update osc-lib from branch 'master'
to cce539d65e8aeb1001be936f3ae0659e6e35f738
- Merge "Don't fail on extlinks warnings for reno build"
- 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
* Update osc-lib from branch 'master'
to a8fde07fe418350cf9637bc3566ffe74c76188c9
- Merge "Fix TestTagHelps for python3.10"
- Fix TestTagHelps for python3.10
With pytheon3.10 the naming of the "optional arguments" section has been
changed to "options"[0]. Adapt the reference texts accordingly.
[0] https://docs.python.org/3/whatsnew/3.10.html#argparse
Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
Change-Id: I4c572153b53ca381e2f100456bf77f6fe2892b5c
* Update osc-lib from branch 'master'
to ce936a2f724c7ca761ce68d1c5720384972da643
- Merge "Respect 'interface' key from clouds.yaml"
- Respect 'interface' key from clouds.yaml
Commit c500b63703 assigned DEFAULT_INTERFACE as the default value of cli
parser's 'interface' key. But this resulted in the 'interface' key from
clouds.yaml aka OSC_Config always being ignored/overridden.
Instead this commit overrides the config default for 'interface' key with
DEFAULT_INTERFACE which can still be overridden with keys 'interface' or
'endpoint_type' in clouds.yaml or via the existing
--os-interface/OS_INTERFACE methods.
Ref.: c500b63703
Task: 38955
Story: 2007380
Change-Id: Ia4e511c9d47201cca175711e1c4cfa596168202f
* Update osc-lib from branch 'master'
to 78d276e7223420212a6f63239d48cc794d2054ef
- Merge "parseractions: Make key validation reusable"
- parseractions: Make key validation reusable
Sub-classes of 'MultiKeyValueAction' may wish to reuse the key
validation aspects of the action (Do I have the required keys? Do I have
unknown keys?) wile overriding other aspects of the action. Make this
possible, reducing some duplication in the process.
Change-Id: I549d0897ef3704b7f47000f867d6731ad15d3f2b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update osc-lib from branch 'master'
to 650795af70f8709292200f677f6ee29880aab54e
- Replace allow_get check with allow_fetch
We got rid of all allow_get checks in the code and now can let SDK drop
the attribute
Change-Id: I61750cc491cf769b1daf42af2eca6b6199fa2b5d
* Update osc-lib from branch 'master'
to 58eff5e7f99b648d8b8dff66f607e4698ac8e711
- 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: Ia1659dec8b6b7f683704c2ad33c91f0219276345
* Update osc-lib from branch 'master'
to efc33767f9441e5ebcf18eef66aac301612991a4
- 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: I48902ee9b4b0eaff4cbdd822fbcac4c90e7270b4
* Update osc-lib from branch 'master'
to 415a6c7b191ac665fb7763d12d1b427b7b630586
- Merge "Correct the tox option for skipping sdist generation"
- Correct the tox option for skipping sdist generation
The tox option to skip source distribution building is skipsdist,
but this seems to be often misspelled skipdist instead, which gets
silently ignored and so does not take effect. Correct it
everywhere, in hopes that new projects will finally stop copying
this mistake around.
See https://tox.readthedocs.io/en/latest/config.html#conf-skipsdist
and https://github.com/tox-dev/tox/issues/1388 for details.
Change-Id: I639066169913072b992c0e1073f9398d6ac8cdd2
* Update osc-lib from branch 'master'
to 97c578bcadf24eec970f4b711aaf58d5c9e099c8
- Close session at clean_up if available
To avoid unclosed socket[1] left overs, explicitly
close session at clean_up if available.
[1] sys:1: ResourceWarning: unclosed <socket.socket fd=4>
Story: 2009015
Task: 42735
Related-Bug: #1934098
Change-Id: Idf4865686c37f6f9f61d1f3333b976cc687de9e1
* Update osc-lib from branch 'master'
to dd75c8fdbf1662928038103f199d66141107c569
- Add check for sdk_connection
This change checks if the attribute sdk_connection exists
before attempting to close it. Without this change we're
seeing the following exception:
> Could not clean up: 'ClientManager' object has no attribute 'sdk_connection'
Related-Change: https://review.opendev.org/c/openstack/osc-lib/+/765650
Signed-off-by: Kevin Carter <kecarter@redhat.com>
Change-Id: Ib7e9958d5a64e6500bc38eed9d3e783d5a48d21f
* Update osc-lib from branch 'master'
to 1354890f0bd6ea4b0ac8022a9130a15d61525d47
- Merge "Add Python3 xena unit tests"
- 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: I07faaf33e6cf3c0d47334ce5ea75aac4eb3eb67f
* Update osc-lib from branch 'master'
to 1c818ab2ef909b27418fb1ef38ae5acaaad81a04
- Merge "Update master for stable/wallaby"
- 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: I943adedca1b66bdd0159a9e36ea057bff6af64a2
* Update osc-lib from branch 'master'
to 90b83fde95941afe7c1999191bca5e000b211a88
- Merge "Add support for SDK auth caching"
- Add support for SDK auth caching
SDK starts caching authorization state in keyring (when available and
enabled). Respecting it requires few minor changes: closing connection
and reusing auth_ref.
Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/735352
Change-Id: I7b7cff4887ec77e4c9d98809150d9064eedafaf6
* Update osc-lib from branch 'master'
to 2b7a679a4296c45fbc2fea152e3b51029a201143
- Fix lower-constraints job
pip 20.3 finally includes a proper dependency resolver. Its use is
causing the following error messages on the lower-constraints job:
ERROR: Could not find a version that satisfies the requirement
hacking<3.1.0,>=3.0.1
ERROR: No matching distribution found for hacking<3.1.0,>=3.0.1
Resolve this by moving the 'hacking' and 'flake8-import-order'
dependencies from 'test-requirements.txt' to 'tox.ini' since we don't
need to use our constraints machinery for linters.
While we're here, also drop 'bandit' from 'test-requirements.txt'. This
was introduced in change I691829c1224557d1d239c9f665ac539d0f13c4d3 but
commit f78173f0e1daabccbbe0230fe93df98ac971afbc (there's no change ID)
removed the 'bandit' testenv from 'tox.ini' meaning we no longer use
this anywhere.
Change-Id: I744efd75c4cbf8c630c5f95dc254acff581be959
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update osc-lib from branch 'master'
- Merge "Add Python3 wallaby unit tests"
- 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: I06e4b9dda2d6ccb22737ff06b37881b9f5bd85a5