diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bdd09a..69125a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,29 @@ # Changelog + All notable changes to this project will be documented in this file. -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres +to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.1.4] - 2022-08-30 + +--- + +### Added + +- Add `upload_storage` to the default information saved into the database. Before, `upload_storage` can be extracted + from `path` attribute. Now you can access directly with `file['upload_storage']` by + @jowilf https://github.com/jowilf/sqlalchemy-file/pull/11 +- Accept additional metadata from `File` object by @jowilf https://github.com/jowilf/sqlalchemy-file/pull/11 +- Add section [Upload File](https://jowilf.github.io/sqlalchemy-file/tutorial/using-files-in-models/#upload-file) to the + documentation ## [0.1.3] - 2022-08-23 --- ### Added + - Add `thumbnail_size` property to ImageField by @jowilf https://github.com/jowilf/sqlalchemy-file/pull/9 ## [0.1.2] - 2022-08-11 @@ -16,4 +31,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 --- ### Added + - Add CHANGELOG.md diff --git a/docs/changelog.md b/docs/changelog.md index 5040b16..4b64235 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.1.4] - 2022-08-30 + +--- + +### Added + +- Add `upload_storage` to the default information saved into the database. Before, `upload_storage` can be extracted + from `path` attribute. Now you can access directly with `file['upload_storage']` in [#11](https://github.com/jowilf/sqlalchemy-file/pull/11) +- Accept additional metadata from `File` object in [#11](https://github.com/jowilf/sqlalchemy-file/pull/11) +- Add section [Upload File](https://jowilf.github.io/sqlalchemy-file/tutorial/using-files-in-models/#upload-file) to the + documentation + ## [0.1.3] - 2022-08-23 --- diff --git a/examples/fastapi/__init__.py b/examples/fastapi/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/examples/fastapi_app.py b/examples/fastapi/app.py similarity index 100% rename from examples/fastapi_app.py rename to examples/fastapi/app.py diff --git a/examples/flask_app.py b/examples/flask/__init__.py similarity index 100% rename from examples/flask_app.py rename to examples/flask/__init__.py diff --git a/examples/templates/index.html b/examples/flask/templates/index.html similarity index 100% rename from examples/templates/index.html rename to examples/flask/templates/index.html diff --git a/mkdocs.yml b/mkdocs.yml index 404e41f..efd7a15 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -5,8 +5,6 @@ repo_name: jowilf/sqlalchemy-file repo_url: https://github.com/jowilf/sqlalchemy-file theme: name: material - icon: - logo: material/file-cloud palette: - media: "(prefers-color-scheme: light)" scheme: default diff --git a/pyproject.toml b/pyproject.toml index 14c8682..c9827e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "sqlalchemy-file" -version = "0.1.3" +version = "0.1.4" description = "SQLAlchemy-file is a SQLAlchemy extension for attaching files to SQLAlchemy model and uploading them to various storage." authors = ["Jocelin Hounon "] license = "MIT" diff --git a/sqlalchemy_file/__init__.py b/sqlalchemy_file/__init__.py index b51995f..7af5a1a 100644 --- a/sqlalchemy_file/__init__.py +++ b/sqlalchemy_file/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.1.3" +__version__ = "0.1.4" from .file import File as File from .types import FileField as FileField