Commit Graph

38 Commits

Author SHA1 Message Date
Takashi Kajinami 6c73ace4f7 redis: Add functional tests
This adds functional tests with redis and redis sentinel, to ensure
the current implementation can initialize clients properly.

Change-Id: I6318f6ad00d5b0ee3db1be5e8671a4c346b9daff
2024-02-04 13:20:54 +00:00
Ghanshyam Mann 3aae0ac7ab Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I28b8d0bdc06a9bd12290180f5e5cdc9e9c82be74
2024-01-11 15:36:11 -08:00
Ghanshyam a7200161b0 Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit 4daef2972e.

Keeping Python 3.10 in setup.cfg classifier and zuul.yaml changes.

Reason for revert:

Needed-By: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

TC has been discussing about re-adding the python 3.8
testing in current master 2023.2 release testing.

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-04-25-18.00.log.html#l-191
- https://lists.openstack.org/pipermail/openstack-discuss/2023-April/033469.html

While governance changes are under review, TC agreed to add py3.8 testing
so that we do not see more project/lib dropping python 3.8 and make them
uninstalable on python 3.8

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-05-02-18.00.log.html#l-17
- https://review.opendev.org/c/openstack/governance/+/882165

Also adding py3.8 testing back in job https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

Change-Id: Ic6a80cc57730e16cb898bee39672f14ccf038cc0
2023-05-05 18:55:01 +00:00
Hervé Beraud 4daef2972e Moves supported python runtimes from version 3.8 to 3.10
Within 2023.2 python version 3.9 and 3.10 are the
supported python runtimes [1].
[1] https: //review.opendev.org/c/openstack/governance/+/872232

Change-Id: I767de94cb56508c8e9f4cf7c2a0b31f4d7c414ba
2023-04-10 12:57:38 +09:00
Pierre Riteau 7c6effd10e Add bmemcached as optional dependency
This is now required when using oslo_cache.memcache_pool.

Change-Id: I508f336494a194b68eb45a6b01bb32984b435bb0
2022-08-25 15:59:03 +02:00
Hervé Beraud ce85406b61 Drop python3.6/3.7 support in testing runtime
In Zed cycle testing runtime, we are targetting to drop the
python 3.6/3.7 support, project started adding python 3.8 as minimum,
example nova:
- 56b5aed08c/setup.cfg (L13)

Change-Id: Idc494496c547b71f8f669f97bbb94eec7e2371f1
2022-05-05 16:07:22 +02:00
Zuul 96205a84cb Merge "Add Python 3 only classifier" 2022-03-22 16:19:41 +00:00
Takashi Kajinami a036c4643c Add Python 3 only classifier
Python 2 support was removed during Ussuri cycle. This change adds
the classifier to clearly state that only Python 3 is supported.

Note that the python 3 only classifier was already added to the other
oslo libraries so this improves consistency among all libraries.

Change-Id: I961f128f9aaaf82cc1345a0c19bdfbae516f8f43
2022-02-08 23:10:20 +09:00
Hervé Beraud f4fa6aa6fa Add socket keepalive options to oslo.cache
This patch specifies a set of options required to setup the
socket keepalive of the dogpile.cache's pymemcache
backend [1][2]. This setup from those options can later on
be passed to this backend.

This patch also sets up the socket keepalive object based on
the configuration options passed via oslo.config and adds it
as an argument to be passed to the selected oslo.cache backend.

Dogpile.cache will be used as an interface between oslo.cache and
pymemcache [3].

[1] https://github.com/sqlalchemy/dogpile.cache/pull/205
[2]
b289c87bb8
[3]
https://dogpilecache.sqlalchemy.org/en/latest/api.html?highlight=keepalive#dogpile.cache.backends.memcached.PyMemcacheBackend.params.socket_keepalive

Change-Id: I501100e1a48cdd4e094c08046e2150405dcf371e
2022-01-07 11:58:28 +01:00
dengzhaosen d2aef19023 Update python testing classifier
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 updates the classifier in setup.cfg file.

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

Change-Id: I0d1fa7c06eb6a822cb72f0f9e1f628f35d739303
2021-12-21 17:26:23 +08:00
yangyawei d89cc82be3 setup.cfg: Replace dashes with underscores
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: Id0c08c4fce10ac3979119a74383d0e869a853571
2021-05-14 15:34:49 +08:00
Andreas Jaeger 955de570eb Remove unneeded babel.cfg etc
The file babel.cfg and the sections in setup.cfg are not needed anymore,
translations will be done without these.

Change-Id: Id5f515e01cb68ac0da875da52598704270c9cafb
2020-05-09 12:32:55 +00:00
Radosław Piliszek cec9b8801c Revert "Switch from python-memcached to pymemcache."
pymemcache turned out to be far from drop-in replacement.
It will be reintroduced as another backend. See [1].

Closes-bug: #1866008
Related-bug: #1812935

This reverts commit 8a8248d764.

[1] https://review.opendev.org/711220

Co-Authored-By: Hervé Beraud <hberaud@redhat.com>
Change-Id: Ia3b8d42435b0eac1c87b866449b08a1d11818986
2020-03-24 18:03:05 +00:00
Hervé Beraud 8a8248d764 Switch from python-memcached to pymemcache.
Switch memcachepool to use pymemcache.

This change switches from python-memcached to pymemcached for
the memcachepool backend fixing an issue due to the
__new__ attribute reassign.

Change-Id: Icaa6b252145685d1b5667b883e3bf693920b5b93
Closes-Bug: #1812935
2020-02-25 17:17:01 +01:00
Andreas Jaeger 791b9952d5 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

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: Ie8e737cfde8b2587ef60cd25ab746e6b04936390
2020-02-03 13:44:20 +01:00
Corey Bryant a5023ba275 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I097a6df0db8bbdd9434abe0ef7176bf0999d44ef
Story: #2005924
Task: #34234
2019-07-05 14:42:06 -04:00
Ghanshyam Mann 79ea6a99b7 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: Ic98870c5449203556034eedd3a997afc3679efaf
2019-04-15 18:57:59 +00:00
ZhongShengping 33aa6d270b Update mailinglist from dev to discuss
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss

Change-Id: I7b19a27e087da7ada66caa16551b66fe19fc7382
2018-12-05 09:38:02 +08:00
Hervé Beraud 77c3684284 Always build universal wheels
All of our projects are pure python, so we can build
universal wheels by default.

Change-Id: Iee39e1ab0a1dd282dd2d04a4cf95ae63685e658d
2018-10-05 10:47:20 +02:00
Sean McGinnis 6507ff752e Avoid use of autodoc_tree_index_modules
Changes doc jobs to not user the pbr autodoc_tree_index_modules
directive to generate module documentation by using the new
sphinxcontrib.apidoc extension.

Depends-On: https://review.openstack.org/560379/
Change-Id: Idc84455cf78b6114b31109b7ef9ab3ac9c97e136
2018-04-12 16:13:14 -04:00
OpenStack Proposal Bot d45e01534d Updated from global requirements
Change-Id: I89fcf31d35e628d140775f1fa5d743a54cc12f12
2017-10-07 22:12:51 +00:00
ChangBo Guo(gcb) c0d615b9a2 update the doc URLs
Change-Id: Iff24d2ba53344d6b32c44b792d205b005db97cc5
2017-07-11 21:51:41 +08:00
Dong Ma 66a72a1bc7 turn on warning-is-error in doc build
Change-Id: Iad1ac75bfe1a29350d23014f0b7345d3e8f76c41
2017-07-07 00:10:38 +08:00
Dong Ma a2335dbb69 rearrange content to fit the new standard layout
Change-Id: I5cbe836cf54f752eb4f93e105ffb49b387440db7
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454
2017-07-06 23:45:16 +08:00
Davanum Srinivas e79d1ab159 etcd3 driver for oslo.cache
Support for oslo.cache to use the etcd3 grpc gateway based
HTTP API (/v3alpha) using the python-etd3gw library

Change-Id: I41ed9f6ea72641dc1db5fec45920dc41de5088bf
2017-05-26 10:55:25 -04:00
Eric Brown eeb787db74 Remove references to Python 3.4
Now that there exists only a gate job for Python 3.5 and not 3.4,
we should remove those references to the 3.4 that is untested.

Change-Id: I3986b19a28f8ac918359abadfde2a8c3ba19f639
2017-01-09 10:10:12 -08:00
melissaml 036e2bf5bb Changed the home-page link
Set the correct link for home-page.

Change-Id: I4525a602c25a057e3c227927175d378016c3e97a
2016-10-16 20:17:44 +08:00
Andreas Jaeger 1129b5245b Fix OpenStack capitalization
Small documentation nit:
s/Openstack/OpenStack/g

Change-Id: Ibab1cae72b9396dc1c45f063810a960e98538522
2016-07-28 09:19:28 +02:00
ChangBo Guo(gcb) e989c40226 Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv and removes py33 venv.

Change-Id: Icd3a362b785c8071ddc338092e2f0f311522befe
2016-07-12 15:30:12 +08:00
Jamie Lennox 43f4c9781f Use entrypoints for backends
Register the oslo_cache backends via the dogpile.cache entry points
rather than manually in configure.

Change-Id: If62bbd8c613770926bd116ceaa05463630cbc0c0
2016-06-09 17:17:29 +10:00
OpenStack Proposal Bot 7961acc400 Updated from global requirements
Change-Id: Ib40662586a918390dc8fc71a0da2cfddb13d475e
2016-03-09 16:51:08 +00:00
Andreas Jaeger 18de292603 Update translation setup
Follow new infra setup for translations, see spec
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html
for full details.

This basically renames
oslo.cache/locale/oslo.cache.pot to
oslo_cache/locale/oslo_cache.pot. For this we need to update
setup.cfg.

Update also domain name in i18n.py.

The project has no translations currently, let's remove the outdated
pot file, the updated scripts work without them. So, we can just
delete the file and once there are translations, an updated pot file
together with translations can be imported automatically.

Change-Id: I854c82dc99578c5171352cdada13615c6fd22202
2016-01-28 14:13:08 +00:00
OpenStack Proposal Bot 2e816912ea Updated from global requirements
Change-Id: Idf49647bac657e6f943d27369c03f68913897bc8
2016-01-16 03:31:01 +00:00
ChangBo Guo(gcb) f2da770150 Remove Python 2.6 classifier
We have decided to remove Python 2.6 support, this commit
removes Python 2.6 classifier before dropping any Python
2.6 support in code.

Change-Id: Ie506b6279cf156087f875c0868f166267244bf3f
2015-11-17 16:46:06 +08:00
Matt Riedemann 950a4448e3 Move optional backend dependencies into setup.cfg [extras]
The dogpile and mongo backends are optional so therefore the
dependencies that are only used for those backends are optional.

This makes use of the 'extras' capability in setuptools to declare those
as optional dependencies if you're using those backends.

If a consumer of oslo.cache wants to use the dogpile backend, for
example, then they install oslo.cache like 'sudo pip install
oslo.cache[dogpile]'.

Note that the dogpile dependency is left in requirements.txt because
the oslo_cache.core module has an unconditional import on that library.

Change-Id: I28332964d568bda405fb8d1376d50db49d288b94
2015-08-18 09:09:56 -07:00
Brant Knudson 6569f726a3 Fixes up the API docs and module index
- Automatically generate the API docs
- Makes the index on the modules index page useful

Change-Id: I4eafe2c64a0733f6fb81b20e85cd943355860f9a
2015-07-09 18:22:58 -05:00
Davanum Srinivas 308f49aaaa Expose list_opts entry points for oslo-config-generator
Change-Id: If1154f018d3d51ff49eb2320841edcbab685403e
2015-06-29 11:03:32 -04:00
Eric Larson 9b41e58819 Initial commit from oslo cookiecutter template 2015-04-15 11:22:01 -05:00