add migrate.cfg to wheel package to install image

Change-Id: If2d256aa56a9b278f7fecae76d1a1efd3a6a0444
Story: 2004008
Task: 30682
Signed-off-by: Sun Austin <austin.sun@intel.com>
This commit is contained in:
Sun Austin 2019-05-01 22:14:02 +08:00
parent 2441aededf
commit 53ddc3285a
2 changed files with 1 additions and 4 deletions

View File

@ -65,9 +65,6 @@ install -p -D -m 755 scripts/fm-api %{buildroot}%{local_initddir}/fm-api
install -d -m 755 %{buildroot}%{local_etc_pmond}
install -p -D -m 644 fm-api-pmond.conf %{buildroot}%{local_etc_pmond}/fm-api.conf
# Install sql migration stuff that wasn't installed by setup.py
install -m 640 fm/db/sqlalchemy/migrate_repo/migrate.cfg %{buildroot}%{pythonroot}/fm/db/sqlalchemy/migrate_repo/migrate.cfg
# install default config files
cd %{_builddir}/%{name}-%{version} && oslo-config-generator --config-file fm/config-generator.conf --output-file %{_builddir}/%{name}-%{version}/fm.conf.sample
install -p -D -m 644 %{_builddir}/%{name}-%{version}/fm.conf.sample %{buildroot}%{_sysconfdir}/fm/fm.conf

View File

@ -29,7 +29,7 @@ setup(
platforms=['any'],
provides=['fm'],
packages=find_packages(),
package_data={},
package_data={'fm': ['db/sqlalchemy/migrate_repo/migrate.cfg'], },
include_package_data=False,
entry_points={
'fm.database.migration_backend': [