Resolve deprecation warning from alembic

Resolve the following warning from alembic by adding the path_separator
option:

  DeprecationWarning: No path_separator found in configuration; falling
  back to legacy splitting on spaces, commas, and colons for
  prepend_sys_path.  Consider adding path_separator=os to Alembic
  config.

The same was done in nova for example.
 https://review.opendev.org/c/openstack/nova/+/952266

Change-Id: I4a8cf5a54e3de768cd1883b67ce57484c32ce643
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami 2025-12-24 02:26:43 +09:00
parent 3bc8178832
commit 70ffb6c1e7

View file

@ -14,6 +14,10 @@ script_location = %(here)s/alembic
# defaults to the current working directory.
prepend_sys_path = .
# indicates what character is used to split lists of file paths, including
# version_locations and prepend_sys_path
path_separator = os
# timezone to use when rendering the date within the migration file
# as well as the filename.
# If specified, requires the python-dateutil library that can be