jowilf / sqlalchemy-file

SQLAlchemy-file is a SQLAlchemy extension for attaching files to SQLAlchemy model and uploading them to various storage such as Local Storage, Amazon S3, Rackspace CloudFiles, Google Storage and others using Apache Libcloud.
https://jowilf.github.io/sqlalchemy-file/
MIT License
95 stars 12 forks source link

Update flask-sqlalchemy requirement from ^2.5.1 to ^3.0.2 #24

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Updates the requirements on flask-sqlalchemy to permit the latest version.

Release notes

Sourced from flask-sqlalchemy's releases.

3.0.2

This is a fix release for the 3.0.x feature release. It updates compatibility with SQLAlchemy 2.0 beta 1.

Changelog

Sourced from flask-sqlalchemy's changelog.

Version 3.0.2

Released 2022-10-14

  • Update compatibility with SQLAlchemy 2. :issue:1122

Version 3.0.1

Released 2022-10-11

  • Export typing information instead of using external typeshed definitions. :issue:1112
  • If default engine options are set, but SQLALCHEMY_DATABASE_URI is not set, an invalid default bind will not be configured. :issue:1117

Version 3.0.0

Released 2022-10-04

  • Drop support for Python 2, 3.4, 3.5, and 3.6.
  • Bump minimum version of Flask to 2.2.
  • Bump minimum version of SQLAlchemy to 1.4.18.
  • Remove previously deprecated code.
  • The session is scoped to the current app context instead of the thread. This requires that an app context is active. This ensures that the session is cleaned up after every request.
  • An active Flask application context is always required to access session and engine, regardless of if an application was passed to the constructor. :issue:508, 944
  • Different bind keys use different SQLAlchemy MetaData registries, allowing tables in different databases to have the same name. Bind keys are stored and looked up on the resulting metadata rather than the model or table.
  • SQLALCHEMY_DATABASE_URI does not default to sqlite:///:memory:. An error is raised if neither it nor SQLALCHEMY_BINDS define any engines. :pr:731
  • Configuring SQLite with a relative path is relative to app.instance_path instead of app.root_path. The instance folder is created if necessary. :issue:462
  • Added get_or_404, first_or_404, one_or_404, and paginate methods to the extension object. These use SQLAlchemy's preferred session.execute(select()) pattern instead of the legacy query interface. :issue:1088
  • Setup methods that create the engines and session are renamed with a leading underscore. They are considered internal interfaces which may change at any time.
  • All parameters to SQLAlchemy except app are keyword-only.
  • Renamed the bind parameter to bind_key and removed the app parameter from various SQLAlchemy methods.
  • The extension object uses __getattr__ to alias names from the SQLAlchemy

... (truncated)

Commits


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
codecov[bot] commented 2 years ago

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (d152f6f) compared to base (afbf4b7). Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #24 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 25 25 Lines 1821 1819 -2 ========================================= - Hits 1821 1819 -2 ``` | [Impacted Files](https://codecov.io/gh/jowilf/sqlalchemy-file/pull/24?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jocelin+Hounon) | Coverage Δ | | |---|---|---| | [sqlalchemy\_file/types.py](https://codecov.io/gh/jowilf/sqlalchemy-file/pull/24/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jocelin+Hounon#diff-c3FsYWxjaGVteV9maWxlL3R5cGVzLnB5) | `100.00% <0.00%> (ø)` | | | [sqlalchemy\_file/storage.py](https://codecov.io/gh/jowilf/sqlalchemy-file/pull/24/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jocelin+Hounon#diff-c3FsYWxjaGVteV9maWxlL3N0b3JhZ2UucHk=) | `100.00% <0.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jocelin+Hounon). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jocelin+Hounon)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

dependabot[bot] commented 2 years ago

Looks like flask-sqlalchemy is up-to-date now, so this is no longer needed.