Skip to content

Commit

Permalink
Restrict SQLAlchemy version to <2.0
Browse files Browse the repository at this point in the history
SQLALchemy 2.0 required major changes and will need a major version release

Reported in #40
  • Loading branch information
mrevutskyi committed Mar 15, 2023
1 parent 66a37ec commit 0c5ca6e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
Changes in Flask-Restless-NG
============================

Version 2.5.1 (2023-22-15):
- Restricted SQLAlchemy to <2.0. Support of 2.0 requires significant changes and will be a major release

Version 2.5.0 (2022-12-24):
- Added support for X-Forwarded- headers (pagination links now use the original host/proto) (#38)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This is a fork of [Flask-Restless](https://github.com/jfinkels/flask-restless) m
Version `1.0.*` of `Flask-Restless-NG` is fully API compatible with `Flask-Restless` version `1.0.0b1`
with the following improvements:

* Supports Flask 1.0+ and SQLAlchemy 1.3+
* Supports Flask 1.0+ and SQLAlchemy 1.3-1.4 (2.x is not supported yet)
* 2-5x faster serialization of JSON responses.
* Miscellaneous bugs fixed

Expand Down
4 changes: 2 additions & 2 deletions flask_restless/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2011 Lincoln de Sousa <[email protected]>.
# Copyright 2012, 2013, 2014, 2015, 2016 Jeffrey Finkelstein
# <[email protected]> and contributors.
# Copyright 2020, 2021, 2022 Maksym Revutskyi <[email protected]> and contributors.
# Copyright 2020, 2021, 2022, 2023 Maksym Revutskyi <[email protected]> and contributors.
#
# This file is part of Flask-Restless-NG.
#
Expand All @@ -13,7 +13,7 @@
"""
#: The current version of this extension.
__version__ = '2.5.0'
__version__ = '2.5.1'


# The following names are available as part of the public API for Flask-Restless-NG.
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
flask>=1.0
flask-sqlalchemy>=0.10
sqlalchemy>=1.2
sqlalchemy>=1.3,<2.0
python-dateutil>2.2

setuptools>=65.5.1
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#: required, so the user must install it explicitly.
REQUIREMENTS = [
'flask>=1.0',
'sqlalchemy>=1.3.6',
'sqlalchemy>=1.3.6,<2.0',
'python-dateutil>2.2',
]

Expand Down Expand Up @@ -83,6 +83,7 @@ def find_version(*file_path):
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Database :: Front-Ends',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules'
Expand Down

0 comments on commit 0c5ca6e

Please sign in to comment.