The pyproject.toml migration in f7c1f3a816
(https://review.opendev.org/c/openstack/skyline-apiserver/+/970991)
used explicit packages list which only included the top-level
skyline_apiserver package, causing subpackages like skyline_apiserver.db
to be missing during installation. This broke db_sync during container
bootstrap with ModuleNotFoundError.
- Switch to setuptools package auto-discovery using packages.find
- Include all skyline_apiserver subpackages automatically
- Ensure skyline_apiserver.db is available for alembic migrations
Closes-Bug: #2136994
Change-Id: If1d16cfc88ac531bc7114a2ea1aafbc28a81ecb0
Signed-off-by: Wu Wenxiang <wu.wenxiang@99cloud.net>
56 lines
1.8 KiB
TOML
56 lines
1.8 KiB
TOML
[build-system]
|
|
requires = ["pbr>=6.1.1"]
|
|
build-backend = "pbr.build"
|
|
|
|
[project]
|
|
name = "skyline-apiserver"
|
|
description = "OpenStack Skyline APIServer"
|
|
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",
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://docs.openstack.org/skyline-apiserver/latest/"
|
|
Repository = "https://opendev.org/openstack/skyline-apiserver"
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["skyline_apiserver*"]
|
|
|
|
[project.entry-points."console_scripts"]
|
|
skyline-swagger-generator = "skyline_apiserver.cmd.generate_swagger:main"
|
|
skyline-sample-config-generator = "skyline_apiserver.cmd.generate_sample_config:main"
|
|
skyline-nginx-generator = "skyline_apiserver.cmd.generate_nginx:main"
|
|
skyline-policy-manager = "skyline_apiserver.cmd.policy_manager:main"
|
|
|
|
[tool.mypy]
|
|
show_column_numbers = true
|
|
show_error_context = true
|
|
ignore_missing_imports = true
|
|
follow_imports = "skip"
|
|
incremental = true
|
|
check_untyped_defs = true
|
|
warn_unused_ignores = true
|
|
show_error_codes = true
|
|
pretty = true
|
|
html_report = "mypy-report"
|
|
no_implicit_optional = true
|