Migrate setup configuration to pyproject.toml

Change-Id: I28d2a6f190f547bd982a1f98a99394ccb9d4e975
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-09-11 12:23:02 +01:00
parent 68f86a2db8
commit 25cbdf1e8c
2 changed files with 56 additions and 45 deletions

View File

@@ -1,3 +1,59 @@
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
[project]
name = "oslo.cache"
description = "Cache storage for OpenStack projects."
authors = [
{name = "OpenStack", email = "openstack-discuss@lists.openstack.org"},
]
readme = {file = "README.rst", content-type = "text/x-rst"}
license = {text = "Apache-2.0"}
dynamic = ["version", "dependencies"]
requires-python = ">=3.10"
classifiers = [
"Environment :: OpenStack",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.urls]
Homepage = "https://docs.openstack.org/oslo.cache"
Repository = "https://opendev.org/openstack/oslo.cache"
[project.optional-dependencies]
dogpile = [
"python-memcached>=1.56", # PSF
"pymemcache>=3.5.0", # Apache-2.0
"python-binary-memcached>=0.29.0", # MIT
"redis>=3.0.0", # MIT
]
mongo = [
"pymongo>=3.0.2", # Apache-2.0
]
etcd3gw = [
"etcd3gw>=0.2.0", # Apache-2.0
]
[project.entry-points."oslo.config.opts"]
"oslo.cache" = "oslo_cache._opts:list_opts"
[project.entry-points."dogpile.cache"]
"oslo_cache.mongo" = "oslo_cache.backends.mongo:MongoCacheBackend"
"oslo_cache.memcache_pool" = "oslo_cache.backends.memcache_pool:PooledMemcachedBackend"
"oslo_cache.dict" = "oslo_cache.backends.dictionary:DictCacheBackend"
"oslo_cache.etcd3gw" = "oslo_cache.backends.etcd3gw:Etcd3gwCacheBackend"
[tool.setuptools]
packages = [
"oslo_cache"
]

View File

@@ -1,47 +1,2 @@
[metadata]
name = oslo.cache
summary = Cache storage for OpenStack projects.
description_file =
README.rst
author = OpenStack
author_email = openstack-discuss@lists.openstack.org
home_page = https://docs.openstack.org/oslo.cache/latest
python_requires = >=3.10
classifier =
Environment :: OpenStack
Intended Audience :: Information Technology
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
[files]
packages =
oslo_cache
[entry_points]
oslo.config.opts =
oslo.cache = oslo_cache._opts:list_opts
dogpile.cache =
oslo_cache.mongo = oslo_cache.backends.mongo:MongoCacheBackend
oslo_cache.memcache_pool = oslo_cache.backends.memcache_pool:PooledMemcachedBackend
oslo_cache.dict = oslo_cache.backends.dictionary:DictCacheBackend
oslo_cache.etcd3gw = oslo_cache.backends.etcd3gw:Etcd3gwCacheBackend
[extras]
dogpile =
python-memcached>=1.56 # PSF
pymemcache>=3.5.0 # Apache-2.0
python-binary-memcached>=0.29.0 # MIT
redis>=3.0.0 # MIT
mongo =
pymongo>=3.0.2 # Apache-2.0
etcd3gw =
etcd3gw>=0.2.0 # Apache-2.0