0.0.14
- Refactor both pypi-publish.yml and docker-publish.yml to separate the version string update in pyproject.toml and version validation into distinct steps. This makes the workflows more maintainable and clear.
- Copies a new docker.env file into the Docker container to handle database URI configuration.
- Updates README.md to provide documentation on how to use environment variables for configuration.
- Removes the import exception handling for
importlib.metadata
ingull_api/__init__.py
to simplify imports. - Adds a new
config.py
ingull_api
which usespython-dotenv
to load environment variables from a.env
file. - Refactors
db.py
to use environment variables for the database URI instead of adb_config.json
file. - Updates
main.py
to use the new configuration handling for loadingcli.json
. - Adds a new script
run_gull_api.py
that provides a command-line interface for running the API using uvicorn. - Adds
python-dotenv
topyproject.toml
dependencies. - Replaces the default
load_dotenv()
call with specifying a path to the.env
file in the current working directory. - This enables environment variable loading for applications installed through pip which may not have the
.env
file in the module's directory. - Moved the configuration for the executable's path from
cli.json
toconfig.py
for consistency. Introduced an environment variable for specifying the executable's path. Updatedmain.py
to use this new configuration and also updated the relevant tests.
BREAKING CHANGE: The configuration of the executable path is no longer read from cli.json
. It must now be configured through an environment variable or directly in config.py.
Full Changelog: 0.0.13...0.0.14