diff --git a/pyproject.toml b/pyproject.toml index 2a38d6bc..e52bf850 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" +] diff --git a/setup.cfg b/setup.cfg index 319c3909..29727152 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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