1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-07-17 12:33:28 +01:00

Add WA Create Database Command

Add a command to create a PostgreSQL database with supplied parameters
which draws its structure from the supplied schema (Version 1.1). This
database is of a format intended to be used with the forthcoming WA
Postgres output processor.
This commit is contained in:
Waleed El-Geresy
2018-07-20 15:14:51 +01:00
committed by Marc Bonnici
parent ca03f21f46
commit bb255de9ad
4 changed files with 388 additions and 2 deletions

5
setup.py Normal file → Executable file

@ -31,7 +31,7 @@ wa_dir = os.path.join(os.path.dirname(__file__), 'wa')
sys.path.insert(0, os.path.join(wa_dir, 'framework'))
from version import get_wa_version, get_wa_version_with_commit
# happends if falling back to distutils
# happens if falling back to distutils
warnings.filterwarnings('ignore', "Unknown distribution option: 'install_requires'")
warnings.filterwarnings('ignore', "Unknown distribution option: 'extras_require'")
@ -41,7 +41,7 @@ except OSError:
pass
packages = []
data_files = {}
data_files = {'': [os.path.join(wa_dir, 'commands', 'postgres_schema.sql')]}
source_dir = os.path.dirname(__file__)
for root, dirs, files in os.walk(wa_dir):
rel_dir = os.path.relpath(root, source_dir)
@ -67,6 +67,7 @@ params = dict(
version=get_wa_version_with_commit(),
packages=packages,
package_data=data_files,
include_package_data=True,
scripts=scripts,
url='https://github.com/ARM-software/workload-automation',
license='Apache v2',