- 18 May, 2022 3 commits
-
-
Takashi Kajinami authored
... because u'...' is equivalent to '...' in Python 3. Also, removed the unicode prefix from example outputs because it is no longer shown in Python 3. Change-Id: I1f8fbec1d711659872cb07d2dcef9e33d5a9d21a
-
Takashi Kajinami authored
Python 2 is no longer supported, so we no longer need the six library. This change removes usage of the library as well as reference to it (and Python 2) from the documentation. Change-Id: I6328b11dcad54f70f64ecff53eb60708e34351cf
-
Zuul authored
-
- 17 May, 2022 5 commits
-
-
Zuul authored
-
Zuul authored
-
Zuul authored
-
Zuul authored
-
Takashi Kajinami authored
Since setuptools v54.1.0[1], the parmeters with dash have been deprecated in favor of the new parameters with underscore. This change updates the parameters accordingly to avoid the warnings like the example below. 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: Ic8c6a45bfe86efff00061384e334af9d9840a08d
-
- 16 May, 2022 9 commits
-
-
Zuul authored
-
Zuul authored
-
Douglas Mendizábal authored
This patch updates the python jobs to use the Zed jobs. Change-Id: I24d1e379b2118954f51b856213d9baa977c8536c
-
wuchunyang authored
UPPER_CONSTRAINTS_FILE is old name and deprecated -https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file This allows to use lower-constraints file as more readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>. Change-Id: I54126f6aae313b28e54293d362b1cd81e19807b9
-
Takashi Kajinami authored
This change fixes the failure in unit tests, which was caused by the different exception raised by HelpExit since cliff 3.5.0[1]. [1] 7fdd7cb4c50a33233a7052fc345221cc7b935889 Story: 2010022 Task: 45241 Change-Id: I07e51211befa0296d15e6dbdd726c7a989678183
-
likui authored
Change-Id: I27a1bcb84c6f14a424fc355f8895304723f48024
-
Ghanshyam Mann authored
Yoga testing runtime[1] has been updated to add py39 testing as voting. Unit tests update are handled by the job template change in openstack-zuul-job - https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286 this commit makes other required changes in zuul.yaml and update the classifier in setup.cfg file. [1] https://governance.openstack.org/tc/reference/runtimes/yoga.html Change-Id: Ia7cd1aaf66714d7d885187fa14627d4d5c424f65
-
Takashi Kajinami authored
Python 2 support was removed during Ussuri cycle. This change adds the classifier to clearly state that only Python 3 is supported. Change-Id: Iaff42279c88bd72eaa1ed58d2a675b5967896069
-
Masayoshi Mizuma authored
openstack command gets the following warning: /usr/lib/python3.6/site-packages/barbicanclient/__init__.py:61: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead. To fix that, import secrets from barbicanclient.v1 as the warning indicates. Change-Id: Ib6548cfe30ce407f349cdeebec9a67e22a31bc74
-
- 13 May, 2022 1 commit
-
-
Ghanshyam Mann authored
As discussed in TC PTG[1] and TC resolution[2], we are dropping the lower-constraints.txt file and its testing. We will keep lower bounds in the requirements.txt file but with a note that these are not tested lower bounds and we try our best to keep them updated. This patch also fixes a broken test by updating the maximum payload size to match the current maximum in Barbican. [3] This patch also skips an additional broken test. It will be fixed in a separate patch. [1] https://etherpad.opendev.org/p/tc-zed-ptg#L326 [2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal [3] https://opendev.org/openstack/barbican/src/branch/stable/yoga/barbican/common/config.py#L33 Change-Id: Id192b8eef2c2518b8a89f200727bd03c47dbd07e
-
- 28 Oct, 2020 1 commit
-
-
Zuul authored
-
- 22 Sep, 2020 1 commit
-
-
wangzihao authored
in 'victoria' cycle, we should test py38 by default. Change-Id: I91257def33d99a0fdebdf01e60e9e031104e81bd
-
- 16 Sep, 2020 1 commit
-
-
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 wallaby. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I8f8fbffec2aeeb649e74b3269da7d7f08f157575
-
- 08 Sep, 2020 1 commit
-
-
Ghanshyam Mann authored
As per victoria cycle testing runtime and community goal[1] we need to migrate upstream CI/CD to Ubuntu Focal(20.04). Fixing: - bug#1886298 Bump the lower constraints for required deps which added python3.8 support in their later version. Story: #2007865 Task: #40177 Depends-On: https://review.opendev.org/#/c/738328/ Change-Id: I046e2bf0e730849ef6fd8b8d1d355916632a467e
-
- 29 Jul, 2020 1 commit
-
-
Douglas Mendizábal authored
Port the functional job to the native Zuul v3 format, and remove a few old wrapper scripts which are not needed anymore (the tests can be run locally through `tox -efunctional` as well). Also, switch to the Victoria run time for unit tests. Co-Authored-By:Luigi Toscano <ltoscano@redhat.com> Change-Id: Ibce326044c240d6c4e7f1ca3c3ac50a18282a86d
-
- 28 Jul, 2020 1 commit
-
-
Zuul authored
-
- 07 Jul, 2020 1 commit
-
-
Zuul authored
-
- 16 Jun, 2020 2 commits
- 11 Jun, 2020 1 commit
-
-
Dirk Mueller authored
With the removal of Python 2.x we can remove the unittest2 compat wrappers and switch to assertCountEqual instead of assertItemsEqual We have been able to use them since then, because testtools required unittest2, which still included it. With testtools removing Python 2.7 support [3][4], we will lose support for assertItemsEqual, so we should switch to use assertCountEqual. [1] - https://bugs.python.org/issue17866 [2] - https://hg.python.org/cpython/rev/d9921cb6e3cd [3] - testing-cabal/testtools#286 [4] - testing-cabal/testtools#277^ Change-Id: I5e02a7ed7803e21ad2baa93fccd00a23cda3da79
-
- 09 Jun, 2020 4 commits
-
-
Zuul authored
-
Andreas Jaeger authored
The repo is Python 3 now, so update hacking to version 3.1.0 which supports Python 3. Fix problems found. Change-Id: I54f9f7c5f6ee87ee886658388541f45e23c7546d
-
Andreas Jaeger authored
Switch to openstackdocstheme 2.2.0 and reno 3.1.0 versions. Using these versions will allow especially: * Linking from HTML to PDF document * Allow parallel building of documents * Fix some rendering problems Update Sphinx version as well. openstackdocstheme renames some variables, so follow the renames before the next release removes them. A couple of variables are also not needed anymore, remove them. Set openstackdocs_pdf_link to link to PDF file. Note that the link to the published document only works on docs.openstack.org where the PDF file is placed in the top-level html directory. The site-preview places the PDF in a pdf directory. Change pygments_style to 'native' since old theme version always used 'native' and the theme now respects the setting and using 'sphinx' can lead to some strange rendering. See also http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html Change-Id: Iec58d8dfa90b9b3d7b67d81798b32fb2670e21d4
-
Sean McGinnis authored
Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I3b728aee2f07ad547ee75cabf78659cef1233bc5 Signed-off-by:Sean McGinnis <sean.mcginnis@gmail.com>
-
- 08 Jun, 2020 2 commits
-
-
Ghanshyam Mann authored
OpenStack is dropping the py2.7 support in ussuri cycle. python-barbicanclient is ready with python 3 and ok to drop the python 2.7 support. Complete discussion & schedule can be found in - http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html - https://etherpad.openstack.org/p/drop-python2-support Ussuri Communtiy-wide goal: https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html Change-Id: Id55914141099650752027aa9dc0ad8a90528a2e9
-
Takashi Kajinami authored
- Fix incorrect type handling of secret payload in py3 (it should be bytes instead of str by default) - Fix py3 compatibility of test codes - Update expiration date so that resources are created with valid expiration. Change-Id: I4935f601f87e9c49499da1034a320eee2e655b4d
-
- 05 Nov, 2019 2 commits
- 02 Oct, 2019 1 commit
-
-
jonnary authored
This patch supports two-way auth for barbicanclient. Change-Id: I19fb971de864e94b31bf436bc27d5180aebbce4f blueprint:support-two-way-auth
-
- 01 Oct, 2019 3 commits
-
-
Alexandra Settle authored
This patch adds a `pdf-docs` tox target that will build PDF versions of our docs. As per the Train community goal: https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html Add sphinxcontrib-svg2pdfconverter to doc/requirements.txt to convert our SVGs. Update docs requirement as well to follow PTI. Change-Id: I0b866b2e57557290533ee7e7e162e56c9c17cf54 Story: 2006072
-
Stephen Finucane authored
There were two main issues here. Firstly, a function was being documented as a class, resulting in: WARNING: error while formatting arguments for barbicanclient.client.Client: 'function' object has no attribute '__mro__' Secondly, a docstring for a common function had an incorrect field list format, resulting in: docstring of barbicanclient.v1.acls.SecretACL.get:4: WARNING: Field list ends without a blank line; unexpected unindent docstring of barbicanclient.v1.acls.ContainerACL.get:4: WARNING: Field list ends without a blank line; unexpected unindent Resolve both. Change-Id: I69ef97cb48c6b5a1add4e89c4a53047420d314f4 Signed-off-by:Stephen Finucane <stephenfin@redhat.com>
-
Douglas Mendizábal authored
We seem to be running into a coverage issue [1] in 4.0. This patch raises the lower bound of coverage to 4.1 to get the lower-constraints target to pass again. [1] https://github.com/nedbat/coveragepy/issues/359 Change-Id: Ieddef753b4ee3e9b6d246168ed17c5c99e084564
-