Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-Flask-Migrate for
openSUSE:Factory checked in at 2026-03-29 20:00:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Flask-Migrate (Old)
and /work/SRC/openSUSE:Factory/.python-Flask-Migrate.new.8177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Flask-Migrate"
Sun Mar 29 20:00:59 2026 rev:15 rq:1343420 version:4.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-Flask-Migrate/python-Flask-Migrate.changes
2025-04-22 17:29:27.134028231 +0200
+++
/work/SRC/openSUSE:Factory/.python-Flask-Migrate.new.8177/python-Flask-Migrate.changes
2026-03-29 20:01:26.003264001 +0200
@@ -1,0 +2,9 @@
+Sun Mar 29 12:01:26 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 4.1.0:
+ * Accept arguments such as `--directory` in environment
+ variables #553 (commit)
+ * Fix minor typos in documentation #552 (commit) (thanks
+ **Kevin Kirsche**!)
+
+-------------------------------------------------------------------
Old:
----
Flask-Migrate-4.0.7.tar.gz
New:
----
Flask-Migrate-4.1.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-Flask-Migrate.spec ++++++
--- /var/tmp/diff_new_pack.vdPuNO/_old 2026-03-29 20:01:27.579328934 +0200
+++ /var/tmp/diff_new_pack.vdPuNO/_new 2026-03-29 20:01:27.599329758 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-Flask-Migrate
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-Flask-Migrate
-Version: 4.0.7
+Version: 4.1.0
Release: 0
Summary: SQLAlchemy database migrations for Flask applications using
Alembic
License: MIT
++++++ Flask-Migrate-4.0.7.tar.gz -> Flask-Migrate-4.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-Migrate-4.0.7/.github/FUNDING.yml
new/Flask-Migrate-4.1.0/.github/FUNDING.yml
--- old/Flask-Migrate-4.0.7/.github/FUNDING.yml 2024-03-11 19:42:55.000000000
+0100
+++ new/Flask-Migrate-4.1.0/.github/FUNDING.yml 1970-01-01 01:00:00.000000000
+0100
@@ -1,3 +0,0 @@
-github: miguelgrinberg
-patreon: miguelgrinberg
-custom: https://paypal.me/miguelgrinberg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-Migrate-4.0.7/.readthedocs.yaml
new/Flask-Migrate-4.1.0/.readthedocs.yaml
--- old/Flask-Migrate-4.0.7/.readthedocs.yaml 1970-01-01 01:00:00.000000000
+0100
+++ new/Flask-Migrate-4.1.0/.readthedocs.yaml 2025-01-10 19:50:24.000000000
+0100
@@ -0,0 +1,14 @@
+version: 2
+
+build:
+ os: ubuntu-22.04
+ tools:
+ python: "3.11"
+
+sphinx:
+ configuration: docs/conf.py
+
+python:
+ install:
+ - method: pip
+ path: .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-Migrate-4.0.7/CHANGES.md
new/Flask-Migrate-4.1.0/CHANGES.md
--- old/Flask-Migrate-4.0.7/CHANGES.md 2024-03-11 19:42:55.000000000 +0100
+++ new/Flask-Migrate-4.1.0/CHANGES.md 2025-01-10 19:50:24.000000000 +0100
@@ -1,5 +1,10 @@
# Flask-Migrate Change Log
+**Release 4.1.0** - 2025-01-10
+
+- Accept arguments such as `--directory` in environment variables
[#553](https://github.com/miguelgrinberg/flask-migrate/issues/553)
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/12a181ce0542659f10b4ce154a10cfd41fa1f501))
+- Fix minor typos in documentation
[#552](https://github.com/miguelgrinberg/flask-migrate/issues/552)
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/3b073a2c500303894c495d2e4fa0ef449b6a2833))
(thanks **Kevin Kirsche**!)
+
**Release 4.0.7** - 2024-03-11
- Regression from #438: check `g.x_arg` exists before accessing it
[#541](https://github.com/miguelgrinberg/flask-migrate/issues/541)
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/7e8032c61e5c47f4e50b03dcf98c3b20dd5a8e55))
(thanks **Skye Im**!)
@@ -11,7 +16,7 @@
**Release 4.0.5** - 2023-09-12
-- Compatiblity fixes for Flask-SQLAlchemy >= 3.1
[#526](https://github.com/miguelgrinberg/flask-migrate/issues/526)
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/f562178bbe1912912f3cb6877cbae8b0899c74da))
(thanks **David Lord**!)
+- Compatibility fixes for Flask-SQLAlchemy >= 3.1
[#526](https://github.com/miguelgrinberg/flask-migrate/issues/526)
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/f562178bbe1912912f3cb6877cbae8b0899c74da))
(thanks **David Lord**!)
- Allow `process_revision_directives` option to be configurable
[#523](https://github.com/miguelgrinberg/flask-migrate/issues/523)
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/821e37fcc4a5e339f197153cdbb4dd2316cbd44b))
(thanks **llc**!)
- Stop testing Python 3.7, as Flask-SQLAlchemy 3.1 stopped supporting it
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/8d175193f00bf4e5578f0142d011093d8cd53d57))
@@ -37,7 +42,7 @@
**Release 4.0.0** - 2022-11-13
-- Updates for Flask-SQLAlchemy 3.x compatiblity
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/51752948aabdb68f7c032e1c1fc8317f895e10a6))
+- Updates for Flask-SQLAlchemy 3.x compatibility
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/51752948aabdb68f7c032e1c1fc8317f895e10a6))
- Enable type comparison and batch mode by default
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/a3085b34e5b1865d2b773248b37468764df7c312))
- Option to rename "db" command group to a custom name
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/b9c9d35744a08f4f62084ce6e3ddf30d21431dc7))
- Better handling of MetaData instances in templates
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/c051a000c1518a71e0a5d045c1f8065b9add5122))
@@ -203,7 +208,7 @@
- Do not generate a migration if no schema changes are found
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/626c83feb49f571c2a4468a8fc9f81a44eecc451))
- Fix the merge command by allowing more than one argument.
[#74](https://github.com/miguelgrinberg/flask-migrate/issues/74)
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/9c62c963c0e142a40233dd6dde17925cdc34ea9d))
(thanks **Kevin Dwyer**!)
-**Relese 1.5.0** - 2015-08-01
+**Release 1.5.0** - 2015-08-01
- Make the multi-database configuration fully automatic
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/ed1606c02dd3e57580d853db6ebe66804a5f0ceb))
- Add sane default for `db downgrade --sql`
[#71](https://github.com/miguelgrinberg/flask-migrate/issues/71)
([commit](https://github.com/miguelgrinberg/flask-migrate/commit/01a2e701259e7792c82b2173587750efe5523877))
(thanks **Anthony Miyaguchi**!)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-Migrate-4.0.7/docs/index.rst
new/Flask-Migrate-4.1.0/docs/index.rst
--- old/Flask-Migrate-4.0.7/docs/index.rst 2024-03-11 19:42:55.000000000
+0100
+++ new/Flask-Migrate-4.1.0/docs/index.rst 2025-01-10 19:50:24.000000000
+0100
@@ -188,7 +188,7 @@
- All commands take one or more ``--x-arg ARG=VALUE`` or ``-x ARG=VALUE``
options with custom arguments that can be used in ``env.py``.
- All commands take a ``--directory DIRECTORY`` option that points to the
directory containing the migration scripts. If this argument is omitted the
directory used is ``migrations``.
-- The default directory can also be specified as a ``directory`` argument to
the ``Migrate`` constructor.
+- A directory can also be specified as a ``directory`` argument to the
``Migrate`` constructor, or in the ``FLASK_DB_DIRECTORY`` environment variable.
- The ``--sql`` option present in several commands performs an 'offline' mode
migration. Instead of executing the database commands the SQL statements that
need to be executed are printed to the console.
- Detailed documentation on these commands can be found in the `Alembic's
command reference page
<http://alembic.zzzcomputing.com/en/latest/api/commands.html>`_.
@@ -238,5 +238,5 @@
Notes:
-- These commands will invoke the same functionality that runs from the
command-line, including output to the terminal. The logging configuration of
the process will be overriden by Alembic according to the contents of the
alembic.ini file.
+- These commands will invoke the same functionality that runs from the
command-line, including output to the terminal. The logging configuration of
the process will be overridden by Alembic according to the contents of the
alembic.ini file.
- For greater scripting flexibility you can also use the API exposed by
Alembic directly.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-Migrate-4.0.7/pyproject.toml
new/Flask-Migrate-4.1.0/pyproject.toml
--- old/Flask-Migrate-4.0.7/pyproject.toml 2024-03-11 19:42:55.000000000
+0100
+++ new/Flask-Migrate-4.1.0/pyproject.toml 2025-01-10 19:50:24.000000000
+0100
@@ -1,6 +1,6 @@
[project]
name = "Flask-Migrate"
-version = "4.0.7"
+version = "4.1.0"
authors = [
{ name = "Miguel Grinberg", email = "[email protected]" },
]
@@ -19,6 +19,16 @@
"alembic >= 1.9.0",
]
+[project.optional-dependencies]
+dev = [
+ "tox",
+ "flake8",
+ "pytest",
+]
+docs = [
+ "sphinx",
+]
+
[project.license]
text = "MIT"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-Migrate-4.0.7/src/flask_migrate/cli.py
new/Flask-Migrate-4.1.0/src/flask_migrate/cli.py
--- old/Flask-Migrate-4.0.7/src/flask_migrate/cli.py 2024-03-11
19:42:55.000000000 +0100
+++ new/Flask-Migrate-4.1.0/src/flask_migrate/cli.py 2025-01-10
19:50:24.000000000 +0100
@@ -19,11 +19,14 @@
@click.group()
[email protected]('-d', '--directory', default=None,
+ help=('Migration script directory (default is "migrations")'))
@click.option('-x', '--x-arg', multiple=True,
help='Additional arguments consumed by custom env.py scripts')
@with_appcontext
-def db(x_arg):
+def db(directory, x_arg):
"""Perform database migrations."""
+ g.directory = directory
g.x_arg = x_arg # these will be picked up by Migrate.get_config()
@@ -47,7 +50,7 @@
@with_appcontext
def init(directory, multidb, template, package):
"""Creates a new migration repository."""
- _init(directory, multidb, template, package)
+ _init(directory or g.directory, multidb, template, package)
@db.command()
@@ -76,8 +79,8 @@
def revision(directory, message, autogenerate, sql, head, splice, branch_label,
version_path, rev_id):
"""Create a new revision file."""
- _revision(directory, message, autogenerate, sql, head, splice,
- branch_label, version_path, rev_id)
+ _revision(directory or g.directory, message, autogenerate, sql, head,
+ splice, branch_label, version_path, rev_id)
@db.command()
@@ -106,8 +109,8 @@
rev_id, x_arg):
"""Autogenerate a new revision file (Alias for
'revision --autogenerate')"""
- _migrate(directory, message, sql, head, splice, branch_label, version_path,
- rev_id, x_arg)
+ _migrate(directory or g.directory, message, sql, head, splice,
+ branch_label, version_path, rev_id, x_arg or g.x_arg)
@db.command()
@@ -117,7 +120,7 @@
@with_appcontext
def edit(directory, revision):
"""Edit a revision file"""
- _edit(directory, revision)
+ _edit(directory or g.directory, revision)
@db.command()
@@ -133,7 +136,7 @@
@with_appcontext
def merge(directory, message, branch_label, rev_id, revisions):
"""Merge two revisions together, creating a new revision file"""
- _merge(directory, revisions, message, branch_label, rev_id)
+ _merge(directory or g.directory, revisions, message, branch_label, rev_id)
@db.command()
@@ -151,7 +154,7 @@
@with_appcontext
def upgrade(directory, sql, tag, x_arg, revision):
"""Upgrade to a later version"""
- _upgrade(directory, revision, sql, tag, x_arg)
+ _upgrade(directory or g.directory, revision, sql, tag, x_arg or g.x_arg)
@db.command()
@@ -169,7 +172,7 @@
@with_appcontext
def downgrade(directory, sql, tag, x_arg, revision):
"""Revert to a previous version"""
- _downgrade(directory, revision, sql, tag, x_arg)
+ _downgrade(directory or g.directory, revision, sql, tag, x_arg or g.x_arg)
@db.command()
@@ -179,7 +182,7 @@
@with_appcontext
def show(directory, revision):
"""Show the revision denoted by the given symbol."""
- _show(directory, revision)
+ _show(directory or g.directory, revision)
@db.command()
@@ -194,7 +197,7 @@
@with_appcontext
def history(directory, rev_range, verbose, indicate_current):
"""List changeset scripts in chronological order."""
- _history(directory, rev_range, verbose, indicate_current)
+ _history(directory or g.directory, rev_range, verbose, indicate_current)
@db.command()
@@ -206,7 +209,7 @@
@with_appcontext
def heads(directory, verbose, resolve_dependencies):
"""Show current available heads in the script directory"""
- _heads(directory, verbose, resolve_dependencies)
+ _heads(directory or g.directory, verbose, resolve_dependencies)
@db.command()
@@ -216,7 +219,7 @@
@with_appcontext
def branches(directory, verbose):
"""Show current branch points"""
- _branches(directory, verbose)
+ _branches(directory or g.directory, verbose)
@db.command()
@@ -226,7 +229,7 @@
@with_appcontext
def current(directory, verbose):
"""Display the current revision for each database."""
- _current(directory, verbose)
+ _current(directory or g.directory, verbose)
@db.command()
@@ -246,7 +249,7 @@
def stamp(directory, sql, tag, revision, purge):
"""'stamp' the revision table with the given revision; don't run any
migrations"""
- _stamp(directory, revision, sql, tag, purge)
+ _stamp(directory or g.directory, revision, sql, tag, purge)
@db.command()
@@ -255,4 +258,4 @@
@with_appcontext
def check(directory):
"""Check if there are any new operations to migrate"""
- _check(directory)
+ _check(directory or g.directory)