35 Commits

Author SHA256 Message Date
Ana Guerrero
8151373b7f Accepting request 1224457 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/1224457
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=16
2024-11-17 15:39:45 +00:00
f8b049f014 - temporarily disable tests that are broken with SLQAlchemy 2.0.36
* https://github.com/pallets-eco/flask-sqlalchemy/issues/1378

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=35
2024-11-15 13:31:07 +00:00
Dominique Leuenberger
631bc225d4 Accepting request 1219235 from devel:languages:python:flask
- Ignore ResourceWarning during pytest to avoid a Python 3.13 failure.

OBS-URL: https://build.opensuse.org/request/show/1219235
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=15
2024-10-30 16:37:20 +00:00
Steve Kowalik
755c75e296 - Ignore ResourceWarning during pytest to avoid a Python 3.13 failure.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=33
2024-10-30 02:35:00 +00:00
Ana Guerrero
50d5ddb8b0 - Add patch stop-using-utcnow.patch:
* Use a callable wrapping datetime.now(utc) rather than utcnow().

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=14
2024-02-01 17:05:03 +00:00
OBS User buildservice-autocommit
697f0ef774 Updating link to change in openSUSE:Factory/python-Flask-SQLAlchemy revision 14
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=56fc2c884f11bc38acab02a72538be17
2024-02-01 17:05:03 +00:00
OBS User buildservice-autocommit
690a150496 Accepting request 1143168 from devel:languages:python:flask
baserev update by copy to link target

OBS-URL: https://build.opensuse.org/request/show/1143168
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=32
2024-02-01 17:05:03 +00:00
Steve Kowalik
ea2fa74d48 - Add patch stop-using-utcnow.patch:
* Use a callable wrapping datetime.now(utc) rather than utcnow().

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=31
2024-02-01 05:14:53 +00:00
Ana Guerrero
5552e93568 Accepting request 1119107 from devel:languages:python:flask
- Clean up the SPEC file

OBS-URL: https://build.opensuse.org/request/show/1119107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=13
2023-10-20 21:18:19 +00:00
9e564dfca5 - Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=29
2023-10-19 21:37:26 +00:00
98cd69e2d0 Better files
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=28
2023-10-19 21:36:25 +00:00
Ana Guerrero
6bf6f69283 Accepting request 1114539 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/1114539
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=12
2023-10-02 18:06:14 +00:00
57c17ff0d4 Accepting request 1114375 from home:mimi_vx:branches:devel:languages:python:flask
- update to 3.1.1
 * Deprecate the __version__ attribute.
 * Drop support for Python 3.7.
 *  Add support for the SQLAlchemy 2.x API via model_class parameter.
 * Bump minimum version of SQLAlchemy to 2.0.16.
 * Remove previously deprecated code.
 * Pass extra keyword arguments from get_or_404 to session.get.
 * Fix bug with finding right bind key for clause statements.

OBS-URL: https://build.opensuse.org/request/show/1114375
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=26
2023-09-30 13:16:05 +00:00
Dominique Leuenberger
d8f3df3dab Accepting request 1101893 from devel:languages:python:flask
- Update to 3.0.5:
  * ``Pagination.next()`` enforces ``max_per_page``.
  * Improve type hint for ``get_or_404`` return value to be non-optional.
  * Fix type hint for ``get_or_404`` return value.
  * Fix type hints for pyright (used by VS Code Pylance extension).
  * Show helpful errors when mistakenly using multiple ``SQLAlchemy``
    instances for the same app, or without calling ``init_app``
  * Fix issue with getting the engine associated with a model that uses
    polymorphic table inheritance.
- Update URL.

OBS-URL: https://build.opensuse.org/request/show/1101893
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=11
2023-08-02 14:50:03 +00:00
Steve Kowalik
abc7263eb9 - Update to 3.0.5:
* ``Pagination.next()`` enforces ``max_per_page``.
  * Improve type hint for ``get_or_404`` return value to be non-optional.
  * Fix type hint for ``get_or_404`` return value.
  * Fix type hints for pyright (used by VS Code Pylance extension).
  * Show helpful errors when mistakenly using multiple ``SQLAlchemy``
    instances for the same app, or without calling ``init_app``
  * Fix issue with getting the engine associated with a model that uses
    polymorphic table inheritance.
- Update URL.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=24
2023-08-02 07:01:11 +00:00
Dominique Leuenberger
b43ffb7eaf Accepting request 1092484 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/1092484
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=10
2023-06-12 13:27:47 +00:00
539e631799 Accepting request 1092332 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1092332
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=22
2023-06-12 08:18:34 +00:00
Dominique Leuenberger
7a41444bf8 Accepting request 1039834 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/1039834
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=9
2022-12-04 13:58:19 +00:00
John Vandenberg
f120d40f13 Accepting request 1039833 from home:jayvdb:branches:devel:languages:python:flask
- Remove  python-Flask-SQLAlchemy-no-mock.patch merged upstream
- Update to v3.0.2

OBS-URL: https://build.opensuse.org/request/show/1039833
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=20
2022-12-03 15:54:04 +00:00
John Vandenberg
8af54fe132 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=19 2022-12-03 15:41:34 +00:00
Dominique Leuenberger
0731832ed2 Accepting request 977759 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/977759
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=8
2022-05-17 15:24:46 +00:00
John Vandenberg
3b9f2de3fd Accepting request 977751 from home:pgajdos:python
- do not require python-mock for build
- added patches
  fix 20864ddfe4
  + python-Flask-SQLAlchemy-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/977751
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=17
2022-05-17 12:13:37 +00:00
Dominique Leuenberger
99f468e8eb Accepting request 958744 from devel:languages:python:flask
- Work around test suite failure inside OBS: BuildRequire krb5.
  krb5 is a dependency to python (via tirpc), and inside OBS we get
  a slightly limited version of it as krb5-mini. The test suite of
  this package fails to pass with the mini flavor though. As -mini
  is never offered to actual users, we can get away with this
  workaround.

OBS-URL: https://build.opensuse.org/request/show/958744
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=7
2022-03-03 23:17:54 +00:00
8e2bd8c0c6 Accepting request 958741 from home:dimstar:Factory
- Work around test suite failure inside OBS: BuildRequire krb5.
  krb5 is a dependency to python (via tirpc), and inside OBS we get
  a slightly limited version of it as krb5-mini. The test suite of
  this package fails to pass with the mini flavor though. As -mini
  is never offered to actual users, we can get away with this
  workaround.

OBS-URL: https://build.opensuse.org/request/show/958741
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=15
2022-03-03 11:47:30 +00:00
3812631f42 Clean up SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=14
2022-03-03 08:11:50 +00:00
Dominique Leuenberger
a2d26a6e1d Accepting request 896577 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/896577
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=6
2021-06-01 08:40:07 +00:00
b462d8f0f7 Accepting request 882931 from home:apersaud:branches:devel:languages:python:flask
update to latest version

OBS-URL: https://build.opensuse.org/request/show/882931
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=12
2021-06-01 06:51:47 +00:00
Dominique Leuenberger
795253d69b Accepting request 822157 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/822157
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=5
2020-07-24 07:57:40 +00:00
Petr Cervinka
6326481ad2 Accepting request 821669 from home:apersaud:branches:devel:languages:python:flask
update to latest version

OBS-URL: https://build.opensuse.org/request/show/821669
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=10
2020-07-22 06:02:01 +00:00
Dominique Leuenberger
9cedde3083 Accepting request 810457 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/810457
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=4
2020-06-02 12:38:00 +00:00
Petr Cervinka
f20ea25847 Accepting request 810414 from home:apersaud:branches:devel:languages:python:flask
update to latest version

OBS-URL: https://build.opensuse.org/request/show/810414
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=8
2020-05-31 09:56:39 +00:00
Dominique Leuenberger
f326634b95 Accepting request 733496 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/733496
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=3
2019-09-26 18:47:31 +00:00
Petr Cervinka
7a5d1533e2 Accepting request 733495 from home:apersaud:branches:devel:languages:python:flask
update to latest version

OBS-URL: https://build.opensuse.org/request/show/733495
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-SQLAlchemy?expand=0&rev=6
2019-09-26 17:03:01 +00:00
Dominique Leuenberger
44f53e84fb Accepting request 701092 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/701092
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=2
2019-05-07 21:18:20 +00:00
Dominique Leuenberger
8221b8c5d2 Accepting request 611046 from devel:languages:python
- update to version 2.3.2:
  * Don't mask the parent table for single-table inheritance
    models. (#561)
- specfile:
  * increased SQLAlchemy dependency to >= 0.8
  * changed from nose to pytest
  * added fdupes to remove some rpmlint warnings
- update to version 2.3.1:
  * If a model has a table name that matches an existing table in the
    metadata, use that table. Fixes a regression where reflected
    tables were not picked up by models. (#551)
  * Raise the correct error when a model has a table name but no
    primary key. (#556)
  * Fix repr on models that don't have an identity because they have
    not been flushed yet. (#555)
  * Allow specifying a max_per_page limit for pagination, to avoid
    users specifying high values in the request args. (#542)
  * For paginate with error_out=False, the minimum value for page is 1
    and per_page is 0. (#558)
- changes from version 2.3.0:
  * Multiple bugs with __tablename__ generation are fixed. Names will
    be generated for models that define a primary key, but not for
    single-table inheritance subclasses. Names will not override a
    declared_attr. PrimaryKeyConstraint is detected. (#541)
  * Passing an existing declarative_base() as model_class to
    SQLAlchemy.__init__ will use this as the base class instead of
    creating one. This allows customizing the metaclass used to
    construct the base. (#546)
  * The undocumented DeclarativeMeta internals that the extension uses
    for binds and table name generation have been refactored to work
    as mixins. Documentation is added about how to create a custom
    metaclass that does not do table name generation. (#546)
  * Model and metaclass code has been moved to a new models
    module. _BoundDeclarativeMeta is renamed to DefaultMeta; the old
    name will be removed in 3.0. (#546)
  * Models have a default repr that shows the model name and primary
    key. (#530)
  * Fixed a bug where using init_app would cause connectors to always
    use the current_app rather than the app they were created
    for. This caused issues when multiple apps were registered with
    the extension. (#547)
- changes from version 2.2:
  * Minimum SQLAlchemy version is 0.8 due to use of
    sqlalchemy.inspect.
  * Added support for custom query_class and model_class as args to
    the SQLAlchemy constructor. (#328)
  * Allow listening to SQLAlchemy events on db.session. (#364)
  * Allow __bind_key__ on abstract models. (#373)
  * Allow SQLALCHEMY_ECHO to be a string. (#409)
  * Warn when SQLALCHEMY_DATABASE_URI is not set. (#443)
  * Don't let pagination generate invalid page numbers. (#460)
  * Drop support of Flask < 0.10. This means the db session is always
    tied to the app context and its teardown event. (#461)
  * Tablename generation logic no longer accesses class properties
    unless they are declared_attr. (#467)
- convert to single spec
- update copyright
- Update to Version 2.1
  - Table names are automatically generated in more cases, including
    subclassing mixins and abstract models.
  - Allow using a custom MetaData object.
  - Add support for binds parameter to session.
- Update to Version 2.0
  - Changed how the builtin signals are subscribed to skip non Flask-SQLAlchemy
    sessions.  This will also fix the attribute error about model changes
    not existing.
  - Added a way to control how signals for model modifications are tracked.
  - Made the ``SignallingSession`` a public interface and added a hook
    for customizing session creation.
  - If the ``bind`` parameter is given to the signalling session it will no
    longer cause an error that a parameter is given twice.
  - Added working table reflection support.
  - Enabled autoflush by default.
  - Consider ``SQLALCHEMY_COMMIT_ON_TEARDOWN`` harmful and remove from docs.
- Update to Version 1.0
  - Added Python 3.3 support.
  - Dropped 2.5 compatibility.
  - Various bugfixes
  - Changed versioning format to do major releases for each update now.
- Require python-setuptools instead of distribute (upstreams merged)
- Update to version 0.16:
  + New distribution format (flask_sqlalchemy)
  + Added support for Flask 0.9 specifics.
- Fix bnc#732325
- Update to version 0.15:
  + Added session support for multiple databases
- Initial version

OBS-URL: https://build.opensuse.org/request/show/611046
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-SQLAlchemy?expand=0&rev=1
2018-05-29 08:37:30 +00:00