2013-04-07 18:24:27 -04:00
|
|
|
[metadata]
|
2018-09-12 16:26:39 -06:00
|
|
|
name = openstack-placement
|
2018-09-03 12:12:23 +01:00
|
|
|
summary = Resource provider inventory usage and allocation service
|
2021-07-15 12:17:15 +01:00
|
|
|
description_file =
|
2013-04-07 18:24:27 -04:00
|
|
|
README.rst
|
|
|
|
author = OpenStack
|
2021-07-15 12:17:15 +01:00
|
|
|
author_email = openstack-discuss@lists.openstack.org
|
|
|
|
url = https://docs.openstack.org/placement/latest/
|
2019-09-10 13:17:50 +01:00
|
|
|
project_urls =
|
2023-03-07 16:56:21 +00:00
|
|
|
Bug Tracker = https://bugs.launchpad.net/placement
|
2019-09-10 13:17:50 +01:00
|
|
|
Documentation = https://docs.openstack.org/placement/latest/
|
|
|
|
API Reference = https://docs.openstack.org/api-ref/placement/
|
|
|
|
Source Code = https://opendev.org/openstack/placement
|
|
|
|
Release Notes = https://docs.openstack.org/releasenotes/placement/
|
2024-08-03 22:17:41 +09:00
|
|
|
python_requires = >=3.9
|
2013-04-07 18:24:27 -04:00
|
|
|
classifier =
|
2021-07-15 12:17:15 +01:00
|
|
|
Development Status :: 5 - Production/Stable
|
2013-04-07 18:24:27 -04:00
|
|
|
Environment :: OpenStack
|
|
|
|
Intended Audience :: Information Technology
|
|
|
|
Intended Audience :: System Administrators
|
|
|
|
License :: OSI Approved :: Apache Software License
|
|
|
|
Operating System :: POSIX :: Linux
|
|
|
|
Programming Language :: Python
|
2020-04-05 10:23:26 +02:00
|
|
|
Programming Language :: Python :: Implementation :: CPython
|
|
|
|
Programming Language :: Python :: 3 :: Only
|
2017-06-29 13:53:21 +09:00
|
|
|
Programming Language :: Python :: 3
|
2021-11-24 18:02:10 -06:00
|
|
|
Programming Language :: Python :: 3.9
|
2024-01-03 19:22:50 -08:00
|
|
|
Programming Language :: Python :: 3.10
|
|
|
|
Programming Language :: Python :: 3.11
|
2024-10-02 03:10:15 +09:00
|
|
|
Programming Language :: Python :: 3.12
|
2013-04-07 18:24:27 -04:00
|
|
|
|
|
|
|
[files]
|
|
|
|
packages =
|
2018-09-03 12:12:23 +01:00
|
|
|
placement
|
Package db migration scripts in placement pypi dist
Having the db migration scripts within the openstack-placement pypi
distribution is desirable for deployment tools, such as
openstack-ansible. It provides a known good location for the script,
available with a pip install.
There are several ways to distribute files with a python package. The
method used here was chosen because it works both with tarballs and
wheels (the files are already in the tarball, as a result of the way pbr
works, but not in the wheel).
Here's what's done:
* The db migrate scripts are put in their own direcory,
placement_db_tools, so that only they are packaged, not the other
tools.
* To preserve how grenade interacts with these files as well as not
disrupt the docs, symlinks from tools to placement_db_tools have been
created.
* placement_db_tools is added to the list of packages included in the
openstack-placement distro. This means that when 'pip install
openstack-placement' happens, the python environment will then include
placement and placement_db_tools directories.
The end result is that the true path to the script can be found with:
pkg_resources.resource_filename('placement_db_tools', 'mysql-migrate-db.sh')
This has been noted in the to-stein.rst document.
A different package was chosen to not muddy the waters of what is
"actually placement".
Similarly, the 'data_files' functionality provided by pbr was not used,
because that requires the file be written to a location on the local
filesystem, relative to the install prefix. Dirtying the filesystem
outside the python lib with this sort of thing is inappropriate.
Change-Id: Ie326ce8a2a0692d20793bc18be606e034fa94a44
Story: 2005535
Task: 30671
2019-05-01 16:05:23 -06:00
|
|
|
placement_db_tools
|
2013-04-07 18:24:27 -04:00
|
|
|
|
|
|
|
[entry_points]
|
2015-05-04 23:00:25 -04:00
|
|
|
oslo.config.opts =
|
2018-09-03 12:12:23 +01:00
|
|
|
placement.conf = placement.conf.opts:list_opts
|
2020-11-26 20:04:08 -06:00
|
|
|
oslo.config.opts.defaults =
|
|
|
|
nova.conf = placement.conf.base:set_lib_defaults
|
2016-06-29 16:59:20 -04:00
|
|
|
oslo.policy.enforcer =
|
2018-08-30 23:07:27 +00:00
|
|
|
placement = placement.policy:get_enforcer
|
2016-06-21 16:53:57 -04:00
|
|
|
oslo.policy.policies =
|
|
|
|
# The sample policies will be ordered by entry point and then by list
|
|
|
|
# returned from that entry point. If more control is desired split out each
|
|
|
|
# list_rules method into a separate entry point rather than using the
|
|
|
|
# aggregate method.
|
2018-08-30 23:07:27 +00:00
|
|
|
placement = placement.policies:list_rules
|
2013-04-07 18:24:27 -04:00
|
|
|
console_scripts =
|
2018-09-05 18:28:10 +01:00
|
|
|
placement-manage = placement.cmd.manage:main
|
2018-11-20 11:28:25 -05:00
|
|
|
placement-status = placement.cmd.status:main
|
2016-08-30 21:05:06 -04:00
|
|
|
wsgi_scripts =
|
2018-09-03 12:12:23 +01:00
|
|
|
placement-api = placement.wsgi:init_application
|