Skip to content

0.0.14

Compare
Choose a tag to compare
@mdbecker mdbecker released this 27 Jun 11:48
· 1 commit to main since this release
  • 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 in gull_api/__init__.py to simplify imports.
  • Adds a new config.py in gull_api which uses python-dotenv to load environment variables from a .env file.
  • Refactors db.py to use environment variables for the database URI instead of a db_config.json file.
  • Updates main.py to use the new configuration handling for loading cli.json.
  • Adds a new script run_gull_api.py that provides a command-line interface for running the API using uvicorn.
  • Adds python-dotenv to pyproject.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 to config.py for consistency. Introduced an environment variable for specifying the executable's path. Updated main.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