- Sep 09, 2022
-
-
OpenStack Release Bot authored
Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so that anyone working on this branch will switch to the correct upper-constraints list automatically when the requirements repository branches. Until the requirements repository has as stable/zed branch, tests will continue to use the upper-constraints list on master. Change-Id: I2d523716b74e177d7b7474e405172013cdc3d373
-
OpenStack Release Bot authored
Change-Id: I86d2437ea8bbeec8113accf157e533b2b8bc9452
-
- Aug 04, 2022
-
-
Jiri Podivin authored
While permissible syntactically, using brackets to wrap tested conditional is unnecessary and potentially confusing. As without inserted whitspace the code may look as a function call, rather than a statement and expression. The construct is also considered erroneous by linters. Closes-Bug: 1983593 Signed-off-by: Jiri Podivin <jpodivin@redhat.com> Change-Id: I0a086a8349e2a72cae024857e148fddc3556c319
- Jul 18, 2022
- Jul 15, 2022
-
-
Stephen Finucane authored
'pkg_resources' is slow, while 'importlib.metadata' is the new shiny and is *much* faster. Recent version of 'importlib.metadata' - namely those found in Python 3.10 or provided by the 4.4 'importlib-metadata' backport - now provide the last bit of functionality we were missing to remove 'pkg_resources' entirely, namely the ability to map package names to modules. This is used for generating epilogs. The benefits of this are huge, yielding a near 40% decrease in runtime for the cliffdemo app (100mS after compared to 160mS) before. Change-Id: I934d8a196d76622671781643f36bdb8a07d2f319 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
-
- Jul 14, 2022
-
-
Zuul authored
-
- May 27, 2022
-
-
Zuul authored
-
- May 25, 2022
-
-
Zuul authored
-
Stephen Finucane authored
Yet another library that's slow to import and is totally optional. Defer loading this one also and speed up initial start time. Change-Id: Ic694b4d36dbf7ce87bc8fe9a2f8b0597719418a1 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
-
Stephen Finucane authored
We were importing cmd2 purely so we could do some exception transformation. However, this is only needed if we're in interactive mode. Avoid both the import of cmd2 and the transformation of the exceptions unless this is the case. This speeds up import time by ~30% for the demoapp on my machine (~160mS after compared to ~210mS before) Change-Id: I2356dc9803b4d0eef3528c6d057207509932e6b2 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
-
Stephen Finucane authored
We don't rely on this ourselves and stestr will bring it in for us. Change-Id: I51f305ac080c41463081e7039421d238b81f5d95 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
-
Stephen Finucane authored
We don't use pbr at runtime; ergo, there is no reason to include this in requirements.txt. While we're here, we remove a note that is no longer true with the new dependency resolver introduced in pip 20.3. Change-Id: I39ee12f052fff6d69f8fe97949e6e5df7511647b Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
-
Stephen Finucane authored
This was added nearly a decade ago to work around a packaging bug in cmd2. We don't use this explicitly ourselves so we can and should remove it. Do that. Change-Id: Ia6061a22b9037d157c0b2afecb4e06bbc62c2d74 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
-
Stephen Finucane authored
In the Zed cycle, we have dropped the Python 3.6/3.7 [1] testing and its support. Update the Python classifiers to reflect this. Change-Id: Ieb80faf01d87e7fa7d717b74de6c5ec518ef9b05 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
-
- May 24, 2022
-
-
Takashi Kajinami authored
Support for Python 3.6 and 3.7 is being removed globally. The current latest release of python-novaclient (18.0.0) does not support these two versions. The next python-neutronclient release does not, either. This migrates Python 3.6/7 jobs to Python 3.8 because 3.8 is now the minimum supported version. This also replaces Python3 yoga unit tests by zena unit tests. Depends-on: https://review.opendev.org/843115 Change-Id: I03957cf4bd0a96cb1d07e80727c184854b869fc3
-
- Mar 04, 2022
-
-
Zuul authored
-
- Nov 19, 2021
-
-
Jiri Podivin authored
The global module documentation is no longer being generated and the link points to a non-existent document. The purpose of global module documentation is now fulfilled by the automatically generated class, and function level reference documents which are linked properly. As such there is no need to keep the link around, or to reestablish module level documentation. Signed-off-by: Jiri Podivin <jpodivin@redhat.com> Change-Id: I05e5144a36f33aa5feb996964d1a098b1716cf6a
-
- Sep 20, 2021
-
- Sep 10, 2021
-
-
OpenStack Release Bot authored
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: I4b6bb766c1272e32b09d59fac226792404895bc1
-
- Aug 06, 2021
-
-
Zuul authored
- Jul 20, 2021
-
-
Zuul authored
-
- Jul 13, 2021
-
-
Zane Bitter authored
The previous commit already ensures that the interactive help for individual commands is sent to a pager. This does the same for the 'help' command with no arguments. Change-Id: If5e38421d21e09f88a572dbb508b1997381bdb87
-
Zane Bitter authored
Using the autopage library we can automatically send the help output to a pager (less, by default), git-style. The pager is configured to not reset the terminal on exit, avoiding the problem when piping to less manually that the help text you want to refer to disappears off the screen when you go to use it. The pager is only invoked when the output is to the terminal. Since we invoke the pager, we can ensure that it is correctly set up to interpret ANSI escape codes, so it is safe to use colour to make the output easier to read. The autopage library provides light styling of the default argparse help output, and some additional colour highlighting is added here for the command list (which is generated by cliff, not using argparse's formatting code). Change-Id: If9e1aa5166da32c58cc0fa617f4f81eaa9b2c470 Depends-On: https://review.opendev.org/c/openstack/requirements/+/799343
-
- Jun 15, 2021
-
-
Joel Capitao authored
Fedora is already testing Python 3.10 [1] and an issue has been raised [2]. All the details are in the BZ ticket but TLDR is that "optional arguments" was replaced with "options [3]. So, I used assertRegexp to accept both of them (i.e "optional arguments" and "options"). [1] https://fedoraproject.org/wiki/Changes/Python3.10 [2] https://bugzilla.redhat.com/show_bug.cgi?id=1914138 [3] https://github.com/python/cpython/commit/fb35fa49d192368e94ffec09c092260ed0fea2e1 Change-Id: I18d9f1bea7bb5a7afb273550314c36da7b466a69
-
- Jun 07, 2021
-
-
Zane Bitter authored
If we are piping output to a command that exits before the entire output is written (e.g. "head") then we will receive a BrokenPipeError. This is expected and we should react by exiting gracefully, setting an appropriate return code (128 + SIGPIPE). Change-Id: I0d60e44450da1f48dbd8f459549da80fda69aad5
-
- Jun 04, 2021
-
-
matbu authored
Adding conflict_handler as attribut in the Command class in order to be able to take control of this parameter and change to different behavior that argparse is handling: error / resolve / ignore. Callers will be able to override it and get a proper Parser object. Change-Id: I327ece99a04bc8b2ebfa554dea643b1f2a456336
-
- May 14, 2021
-
- May 13, 2021
-
-
likui authored
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: Icccc9cc2b3a0d236746c4b58a8815d25d8b0a443
-
likui authored
inspect.getargspec() is deprecated since py3 [1] https://docs.python.org/3/library/inspect.html#inspect.getargspec Change-Id: I7a1692d9979e9ffaf781de1f39f5bfa59a01cf3c
-
- Apr 26, 2021
-
-
Yandong Xuan authored
Resolves warnings like the following: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead Change-Id: I328d2e7843e3ba62a6de4ef221c4f8564a64f234
-
- Apr 20, 2021
-
-
songwenping authored
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: I5d419e881a42e627fd0699cb2ab68b66e7295cee
-
- Mar 19, 2021
-
-
OpenStack Release Bot authored
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: Id810ebcb6620b4f6235ef3d616b858b4ab6b18b4
-
- Feb 11, 2021
-
-
Stephen Finucane authored
PrettyTable was capped at a < 0.8, which meant we were getting the veritably ancient 0.7.2 release first release in April 2013 (!) [1]. The project is now being maintained as a Jazzband project [2], meaning we should switch to this new version. The only significant change required here is that we no longer set the 'min_width' attribute since that actually does something - the wrong thing - now. We want this attribute to set a lower bound on the wrap width as opposed to an absolute minimum we can use, which is what setting the 'min_width' attribute would do. While we're here, we also remove a now useless bit of Python 2 code and bump cmd2 to a slightly newer version. [1] https://pypi.org/project/prettytable/#history [2] https://github.com/jazzband/prettytable Change-Id: Iceac729e7a9429e8ab25c60524a48d0aaeebeb37 Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Depends-On: https://review.opendev.org/c/openstack/requirements/+/774917
-
- Feb 10, 2021
-
-
Zuul authored
-