
This commit adds a new cli utility for managing the subunit2sql db. Previously alembic could just be used directly however since access to the db models were needed for future migration scripts the db api was needed. This required invoking the config object to be able to use the db api calls. Alembic isn't aware of oslo.db or the config object, so by creating a seperate cli interface we initialize all of that at the same time. This also saves the need to configure connection info to the db in 2 places, since just the oslo.db option will be used. This utility borrows heavily from the neutron utility to do the same thing. Change-Id: I110baa532d08de4ca70b7ea2d1dcdc845d595693
39 lines
876 B
INI
39 lines
876 B
INI
[metadata]
|
|
name = subunit2sql
|
|
version = 0.2
|
|
summary = Command to Read a subunit file or stream and put the data in a SQL DB
|
|
description-file =
|
|
README.rst
|
|
license = Apache License, Version 2.0
|
|
author = Matthew Treinish
|
|
author-email = mtreinish@kortar.org
|
|
classifier =
|
|
Intended Audience :: Developers
|
|
License :: OSI Approved :: Apache Software License
|
|
Operating System :: OS Independent
|
|
Programming Language :: Python
|
|
Programming Language :: Python
|
|
Programming Language :: Python :: 3
|
|
|
|
|
|
[files]
|
|
packages =
|
|
subunit2sql
|
|
|
|
[entry_points]
|
|
console_scripts =
|
|
subunit2sql = subunit2sql.shell:main
|
|
sql2subunit = subunit2sql.write_subunit:main
|
|
subunit2sql-db-manage = subunit2sql.migrations.cli:main
|
|
|
|
[build_sphinx]
|
|
source-dir = doc/source
|
|
build-dir = doc/build
|
|
all_files = 1
|
|
|
|
[upload_sphinx]
|
|
upload-dir = doc/build/html
|
|
|
|
[wheel]
|
|
universal = 1
|