Releases: cainmagi/flask-sqlalchemy-compat
flask-sqlalchemy-compat v0.2.2
Introduction
Support the compatibility between flask_sqlalchemy and flask_sqlalchemy_lite. It allows users to make minimal changes when they need to migrate from either one of these two packages to each other.
The main motivation of this package is because flask_sqlalchemy_lite does not support python<=3.8. This package is designed for providing the similar usages when users have to make the flask_sqlalchemy_lite working with python<=3.8 by using flask_sqlalchemy. In this case, users can get rid of the difficulty of maintaining two sets of codes.
Changelog
0.2.2 @ 12/31/2024
🔧 Fix
- Fix: Correct typos in the docstrings.
Full Changelog: v0.2.1...v0.2.2
flask-sqlalchemy-compat v0.2.1
Introduction
Support the compatibility between flask_sqlalchemy and flask_sqlalchemy_lite. It allows users to make minimal changes when they need to migrate from either one of these two packages to each other.
The main motivation of this package is because flask_sqlalchemy_lite does not support python<=3.8. This package is designed for providing the similar usages when users have to make the flask_sqlalchemy_lite working with python<=3.8 by using flask_sqlalchemy. In this case, users can get rid of the difficulty of maintaining two sets of codes.
Changelog
0.2.1 @ 12/17/2024
🔧 Fix
- Fix: Remove unwanted printed information.
- Fix: Fix the typos in the docstrings.
- Fix: Correct the
usage.pywhere the instance path and the engine options are not configured properly. - Fix:
utilities.clone_methodandutilities.clone_functiondoes not provide correct signature in run time. Correct the signature manually.
💾 Change
- Adjust the project information. This change is mainly targeted for adding the documentation link.
Full Changelog: v0.2.0...v0.2.1
flask-sqlalchemy-compat v0.2.0
Introduction
Support the compatibility between flask_sqlalchemy and flask_sqlalchemy_lite. It allows users to make minimal changes when they need to migrate from either one of these two packages to each other.
The main motivation of this package is because flask_sqlalchemy_lite does not support python<=3.8. This package is designed for providing the similar usages when users have to make the flask_sqlalchemy_lite working with python<=3.8 by using flask_sqlalchemy. In this case, users can get rid of the difficulty of maintaining two sets of codes.
Changelog
0.2.0 @ 12/13/2024
📣 New
- Make
backends.fsaandbackends.fsa_liteprotected bybackends.proxy. The other parts of this project will access backends module by this newly addedproxy. This change allows users to deliberately changeproxyfor testing purposes. For example, the users can disableflask-sqlalchemyby settingproxy.fsa = Noneeven if the package is already installed. - Provide two new methods
get_flask_sqlalchemy_proxy_ver(...)andget_flask_sqlalchemy_lite_proxy_ver(...). In run time, they are totally the same asget_flask_sqlalchemy(...)andget_flask_sqlalchemy_lite(...), respectively. The only difference is that the returned values of_proxy_ver(...)are notated by the the proxy classes likeSQLAlchemyProxy. Users can use these methods to check the compatibility with the falling back version via the static type checker. - Add three examples (demos):
examples.app_fsqla,examples.app_fsqla_lite,usage. - Add unit tests and the corresponding configurations.
- Add the GitHub workflow for running the unit tests.
🔧 Fix
- Fix: When the module is reloaded, accessing the
SQLAlchemyProxy().Model.querymay causeRuntimeError. Now, this error has been catched. - Fix: Prevent
flake8from raisingF722when working with older python versions (Python<3.10).
💾 Change
- Update the metadata of the package. The chages are made for adjusting the new optional dependencies and tests.
- Update the project information for preparing to upload a new PyPI release.
Full Changelog: v0.1.3...v0.2.0
flask-sqlalchemy-compat v0.1.3
Introduction
Support the compatibility between flask_sqlalchemy and flask_sqlalchemy_lite. It allows users to make minimal changes when they need to migrate from either one of these two packages to each other.
The main motivation of this package is because flask_sqlalchemy_lite does not support python<=3.8. This package is designed for providing the similar usages when users have to make the flask_sqlalchemy_lite working with python<=3.8 by using flask_sqlalchemy. In this case, users can get rid of the difficulty of maintaining two sets of codes.
Changelog
0.1.3 @ 12/11/2024
🔧 Fix
- Fix: Previously, running
db.init_app(...)outside the app context will fail ifdbis provided by the proxy class. Now, theinit_appcan be used without limitations.
💾 Change
- Adjust the readme file to make the examples consistent with the
db.init_appbehavior in the new version.
Full Changelog: v0.1.2...v0.1.3
flask-sqlalchemy-compat v0.1.2
Introduction
Support the compatibility between flask_sqlalchemy and flask_sqlalchemy_lite. It allows users to make minimal changes when they need to migrate from either one of these two packages to each other.
The main motivation of this package is because flask_sqlalchemy_lite does not support python<=3.8. This package is designed for providing the similar usages when users have to make the flask_sqlalchemy_lite working with python<=3.8 by using flask_sqlalchemy. In this case, users can get rid of the difficulty of maintaining two sets of codes.
Changelog
0.1.2 @ 12/10/2024
🔧 Fix
- Fix: Adjust the dependency versions to make the requirements satisfy the usage in
Python=3.13.
Full Changelog: v0.1.1...v0.1.2
flask-sqlalchemy-compat v0.1.1
Introduction
Support the compatibility between flask_sqlalchemy and flask_sqlalchemy_lite. It allows users to make minimal changes when they need to migrate from either one of these two packages to each other.
The main motivation of this package is because flask_sqlalchemy_lite does not support python<=3.8. This package is designed for providing the similar usages when users have to make the flask_sqlalchemy_lite working with python<=3.8 by using flask_sqlalchemy. In this case, users can get rid of the difficulty of maintaining two sets of codes.
Changelog
0.1.1 @ 12/10/2024
🔧 Fix
- Fix: Stabilize the backend import when using
Python=3.7, where the compatible backend will provide an version that would not be overridden by other installations. - Fix: Correct the package information. The package should be zip-safe and does not include extra data.
- Fix: Correct some out-of-date information in the readme file.
- Fix: Make some type hint excluded from the run time to improve the stability.
- Fix: Adjust the dependency versions to match the requirements specified in
flask-sqlalchemy-lite.
💾 Change
- Add more files to the exclude list of
black.
Full Changelog: v0.1.0...v0.1.1
flask-sqlalchemy-compat v0.1.0
Introduction
Support the compatibility between flask_sqlalchemy and flask_sqlalchemy_lite. It allows users to make minimal changes when they need to migrate from either one of these two packages to each other.
The main motivation of this package is because flask_sqlalchemy_lite does not support python<=3.8. This package is designed for providing the similar usages when users have to make the flask_sqlalchemy_lite working with python<=3.8 by using flask_sqlalchemy. In this case, users can get rid of the difficulty of maintaining two sets of codes.
Changelog
0.1.0 @ 12/09/2024
📣 New
- Create this project.
- Finish the first version of the pacakge
flask-sqlalchemy-compat. - Add configurations
pyproject.toml. - Add the devloper's environment folder
./dockerand theDockerfile. - Add the community guideline files:
CODE_OF_CONDUCT.md,CONTRIBUTING.md, andSECURITY.md. - Add the issue and pull request templates.
- Configure the github workflows for publishing the package.
- Add the banner and adjust the format in the readme.
🔧 Fix
- Fix: Adjust the formats of the
requirementsto make them compatible withpyproject.toml. - Fix: A Git-sourced dependency is not approved by PyPI. Therefore, replace the Git source by a customized related package:
Flask-SQLAlchemy-compat-backend-py37.
💾 Change
- Adjust the metadata according to the current project status.
Full Changelog: https://github.com/cainmagi/flask-sqlalchemy-compat/commits/v0.1.0