750 Commits

Author SHA1 Message Date
Zuul
9fa3a3689e Merge "Use py3 as the default runtime for tox" 7.3.0 2026-01-24 13:25:43 +00:00
Zuul
8b1a2103b0 Merge "Cleanup py27 support" 7.2.0 2025-03-12 15:28:06 +00:00
Zuul
586e474403 Merge "Remove Python 3.8 support" 7.1.0 2024-10-30 15:30:09 +00:00
Takashi Kajinami
0ff34351e3 Remove Python 3.8 support
Python 3.8 was removed from the tested runtimes for 2024.2[1] and has
not been tested since then.

Also add Python 3.12 which is part of the tested runtimes for 2025.1.
Now unit tests job with Python 3.12 is voting.

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

Change-Id: I5b238d25a443cc47b6bcd1d033115082ce90f004
2024-10-24 18:09:58 +09:00
Takashi Kajinami
ddec9a61e2 Drop unnecessary 'x' bit from doc config file
This file is not actually executable.

Trivial-Fix

Change-Id: I42d6aec5f522dc098311856d602387d837c44036
2024-10-21 20:22:18 +09:00
Zuul
39e46755e3 Merge "Remove support for certificate order" 7.0.0 2024-06-26 16:26:44 +00:00
Takashi Kajinami
73e173298b Remove old excludes
These are detected as errors since the clean up was done[1] in
the requirements repository.

[1] 314734e938f107cbd5ebcc7af4d9167c11347406

Change-Id: I7dd3fe7cfeecc5e7f1d2d4b2080c49d59503faae
6.0.0
2024-04-30 19:24:08 +09:00
Zuul
a14739658c Merge "coveragerc: Remove non-existent path" 2024-03-27 15:48:21 +00:00
Zuul
92035b9391 Merge "Update python classifier in setup.cfg" 2024-03-27 15:48:20 +00:00
Zuul
c25f87915f Merge "Bump hacking" 2024-03-27 15:48:19 +00:00
Zuul
2ac2b97593 Merge "Bump hacking" 2024-03-27 05:59:33 +00:00
Takashi Kajinami
e688a6fc30 Remove support for certificate order
... because certificate order was removed from Barbican.

Also make sure that a supported value is given in CLI.

Change-Id: I8c431d8bceedc90d091f49ccb7313ffbbb0e2256
2024-03-15 13:44:41 +09:00
Takashi Kajinami
08e6662549 Replace pytz
The current usage can be easily replaced by the built-in datetime
module. Also it has been missing from the test requirements and now
is no longer installed by the dependencies.

Change-Id: Idb2ca40fd7ab2334bc97fcf23888a2d326daa1c5
2024-03-15 13:44:38 +09:00
Takashi Kajinami
2b676640a2 Bump hacking
hacking 3.1.x is too old.

Change-Id: Id3a43018f09ef66c6caceed1ac4452476762c56b
2024-02-19 02:32:16 +09:00
Takashi Kajinami
a29eba3436 Bump hacking
hacking 3.0.x is too old.

Change-Id: I5d426927e73e275dcc145dc351bfcf7c03b1ebad
2024-01-27 22:36:48 +09:00
Takashi Kajinami
8b55b8646d coveragerc: Remove non-existent path
The barbicanclient/openstack directory does not exist.

This also adds a few more options to make the file content consistent
with the other repos.

Change-Id: Iaa8208dd133a4c586b5622e3ece0d1a5df1428b9
2024-01-25 23:50:08 +09:00
Ghanshyam Mann
95e0d165d6 Update python classifier in setup.cfg
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg

Change-Id: Ic23273fde5a3bba18ee9970baea88279c4d45c40
2024-01-03 21:24:04 -08:00
Zuul
e0005a11f2 Merge "Migrate back to Launchpad" 5.7.0 2023-09-26 18:20:51 +00:00
Natzcheng
713de24b38 Use py3 as the default runtime for tox
Change-Id: I49da09777e2cd46bbf4742d040547d92340a901b
2023-09-25 14:47:53 +08:00
Grzegorz Grasza
cb31351e92 Migrate back to Launchpad
Change-Id: I8e2db5a3d3e3f5991527f3951af70ff7e98bc550
2023-09-12 15:11:35 +00:00
wangjiaqi07
5c53121ba9 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py

Change-Id: I3a58babd11aaac99641d35e96e490a55dcafce2e
2023-09-12 15:09:26 +00:00
Stephen Finucane
721e9d8838 Use constraints for docs job
Change-Id: Ia668961054a793f37ef83ec795ae84aaad382409
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
5.6.1
2023-09-12 15:39:42 +01:00
Stephen Finucane
e597e8d13a Fix functional tests
The 'skip_sdist' option in 'tox.ini' changes behavior in tox 4. In tox
3, it was ignored if 'usedevelop = true' was specified. In tox 4, the
opposite is true. This means our plugin was not installed in the
environment. Fix this.

While we're here, cleanup the whole 'tox.ini' file and remove a lot of
stuff that is no longer necessary in a world where everything is Python
3.

Change-Id: Iee4ef8e1c15e67c4ab9a77676214f1062bd0c96a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-09-12 13:11:32 +01:00
Mauricio Harley
7d9c28ab17 Fixed typo in the release notes
Change-Id: I5d651e85d984a6a854481087ccfd4d716a245068
5.6.0
2023-03-03 14:47:50 +01:00
Mauricio Harley
ad14b64a7a Add secret consumers documentation
Change-Id: I55cdf4735d6936c966f7b1638714762747f6d480
5.5.0
2023-02-15 10:30:03 +01:00
Mauricio Harley
da03fc5cf0 Added secret consumers list functionality. Unit, smoke
and functional tests were also added.

Change-Id: I093475833cdc6d68ff2d4735a0d4a8d0eb143a53
2023-02-10 18:22:43 +01:00
Mauricio Harley
7f6b3cf790 Added the force parameter to consumer removal and the corresponding CLI commands
When deleting a secret that has consumers, the
--force parameter must be specified in the CLI.

Change-Id: I49d19ac843d5c805fd7f533d07a3a719ce9a1104
2023-02-07 13:50:51 +01:00
Mauricio Harley
3ffa1600af Add secret consumers Python API
This adds the Python API for secret consumers,
similar to the container consumers API.
Also adding functional tests for both secret
and container consumers.

Co-Authored-By: Grzegorz Grasza <xek@redhat.com>
Change-Id: I024db27d12ea33713bda0273d8748577cc89a38d
2023-01-18 13:20:45 +00:00
Andre Aranha
35599e2b98 Unit tests for microversion, initial change for consumers
Add unit tests for microversions. This also changes the default
microversion to 1.1, which tells Barbican to return secret
consumers. Because of that, this patch adds consumers to the
Secret object in barbicanclient/v1/secrets.py , so that the
API response is correctly interpreted.

Co-Authored-By: Ade Lee <alee@redhat.com>
Co-Authored-By: Andre Aranha <afariasa@redhat.com>
Co-Authored-By: Grzegorz Grasza <xek@redhat.com>

Change-Id: Ibfaea3fe9e394f6b1286d92437629d0400305968
2023-01-17 17:06:11 +01:00
Douglas Mendizábal
b3f3912a71 Implement microversions
This patch introduces a new `microversion` parameter to the factory
method for the Client class.  The parameter is used to set
`default_microversion` in the HTTPClient.

Co-Authored-By: Andre Aranha <afariasa@redhat.com>
Co-Authored-By: Grzegorz Grasza <xek@redhat.com>
Depends-On: https://review.opendev.org/c/openstack/keystoneauth/+/865439

Change-Id: I2a0a5315daca8ce5bd6164cebbd2f917348c7675
2023-01-03 16:46:09 +00:00
Grzegorz Grasza
9a457b434d Bump tox minversion to 3.18.0
Since tox 3.18.0, the whitelist_externals option has been deprecated in
favor of the new allow_list_externals option[1].

This change bumps the minversion of tox so that we can replace
the deprecated option.

This also adds requirements.txt to the docs tox environment, to fix
the openstack-tox-docs job.

[1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Co-Authored-By: Grzegorz Grasza <xek@redhat.com>
Change-Id: I9066385091c80405c265bf95728c2011a8ad4780
2023-01-03 14:35:58 +01:00
Zuul
8a509d0670 Merge "Update the constraints url" 2022-10-27 17:45:35 +00:00
Zuul
b5eda7224d Merge "Switch to 2023.1 Python3 unit tests and generic template name" 2022-09-29 08:47:29 +00:00
Ade Lee
dc81852e95 Make functional tests use stestr instead of nose
This moves in the direction that most projects have been moving
and it works on python 3 too.

Change-Id: I471f803c62722aa9935713921db27fca34282fb5
2022-09-26 13:32:51 -04:00
a6dd25b107 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I2a678a5ecdf68783e8a5daff7cad7f8cec0f648e
2022-09-14 09:17:14 +00:00
Takashi Kajinami
771eb86402 Remove unicode literal
... 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
5.4.0
2022-05-18 13:31:28 +00:00
Takashi Kajinami
69125bfd07 Remove six
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
2022-05-18 22:31:01 +09:00
Zuul
c6ce0af028 Merge "Fix unit test failue with cliff>=3.5.0" 2022-05-18 13:28:34 +00:00
pengyuesheng
438d09a89f Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I632d25063333c178cf980e9dab5c36c155068112
2022-05-17 09:56:40 -05:00
Zuul
7d834cc8dd Merge "setup.cfg: Replace dashes by underscores" 2022-05-17 14:45:28 +00:00
Zuul
af3ff226a5 Merge "Add Python3 zed unit tests" 2022-05-17 13:59:39 +00:00
Zuul
55e145774b Merge "Replace deprecated UPPER_CONSTRAINTS_FILE variable" 2022-05-17 13:59:36 +00:00
Zuul
cb07386af7 Merge "Updating python testing as per Yoga testing runtime" 2022-05-17 13:59:34 +00:00
Takashi Kajinami
1fc7d459ad setup.cfg: Replace dashes by underscores
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
2022-05-17 17:11:18 +09:00
Zuul
3870938e1d Merge "Add Python 3 only classifier" 2022-05-16 22:27:24 +00:00
Zuul
f869b86b55 Merge "Fix the import warning of secrets" 2022-05-16 22:27:22 +00:00
Douglas Mendizábal
1c46400be2 Add Python3 zed unit tests
This patch updates the python jobs to use the Zed jobs.

Change-Id: I24d1e379b2118954f51b856213d9baa977c8536c
2022-05-16 16:35:12 -05:00
wuchunyang
57b559b38b Replace deprecated UPPER_CONSTRAINTS_FILE variable
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
2022-05-16 21:27:16 +00:00
Takashi Kajinami
ca596f05b1 Fix unit test failue with cliff>=3.5.0
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
2022-05-16 16:21:18 -05:00
likui
d6a7022778 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I27a1bcb84c6f14a424fc355f8895304723f48024
2022-05-16 21:13:14 +00:00