15
0

- update 0.9.10:

+ Render autogenerate=True if present Fixed issue where
      "autoincrement=True" would not render for a column that specified
      it, since as of SQLAlchemy 1.1 this is no longer the default value
      for "autoincrement".
    + Make call to declarative_base clear in example.
    + Use external impl for type rendering The render_type() method of
      DefaultImpl was hardcoded to only work for SQLAlchemy types.
    + Implement native boolean check constraint flag in test suite
    + Use repr for drop_constraint schema
    + Add recipe for generating Python code for existing tables
  * The ScriptDirectory system that loads migration files from a
  * [feature] Added -r argument to alembic history command, allows specification of [start]:[end] to view a slice of history.
  * [feature] Source base is now in-place for Python 2.6 through 3.3,
  without the need for 2to3.
  + added Operations.create_primary_key() operation, will genenerate an
  + Explicit error message describing the case when downgrade --sql
  + [feature] New config argument
    is run, to support script.py.mako templates with
    to the template context when running the
    MySQL.  CHECK and undefined raise an error.
    identifiers, i.e. "alembic upgrade +2",
    "alembic downgrade -1".  Courtesy
  + [bug] Fixed bug whereby directories inside of
    on Pypy, would mistakenly be interpreted as

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=65
This commit is contained in:
2018-07-05 21:34:54 +00:00
committed by Git OBS Bridge
parent 79dbf75747
commit 84bb17be26
5 changed files with 49 additions and 32 deletions

3
alembic-0.9.10.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1cd32df9a3b8c1749082ef60ffbe05ff16617b6afadfdabc680dcb9344af33d7
size 1017454

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:85bd3ea7633024e4930900bc64fb58f9742dedbc6ebb6ecf25be2ea9a3c1b32e
size 1012778

2
python-alembic-rpmlintrc Normal file
View File

@@ -0,0 +1,2 @@
# Obviously, these files are meant to be empty:
addFilter("zero-length /usr/share/doc/packages/python-alembic-doc/html/_static/site_custom_css.css")

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Thu Jul 5 21:07:55 UTC 2018 - mcepl@suse.com
- update 0.9.10:
+ Render autogenerate=True if present Fixed issue where
"autoincrement=True" would not render for a column that specified
it, since as of SQLAlchemy 1.1 this is no longer the default value
for "autoincrement".
+ Make call to declarative_base clear in example.
+ Use external impl for type rendering The render_type() method of
DefaultImpl was hardcoded to only work for SQLAlchemy types.
+ Implement native boolean check constraint flag in test suite
+ Use repr for drop_constraint schema
+ Add recipe for generating Python code for existing tables
-------------------------------------------------------------------
Sat Mar 24 00:03:34 UTC 2018 - arun@gmx.de
@@ -633,7 +648,7 @@ Thu Jul 24 11:33:27 UTC 2014 - dmueller@suse.com
- update to 0.6.5:
* See http://alembic.readthedocs.org/en/latest/changelog.html#change-0.6.5
* Added new argument EnvironmentContext.configure.user_module_prefix
* The ScriptDirectory system that loads migration files from a
* The ScriptDirectory system that loads migration files from a
versions/ directory
* The command.revision() command now returns the Script object
corresponding to the newly generated revision
@@ -669,9 +684,9 @@ Thu Aug 8 20:36:51 UTC 2013 - dmueller@suse.com
appended to the command line which can be consumed within an env.py script by
looking at context.config.cmd_opts.x, or more simply a new method
EnvironmentContext.get_x_argument().(link)
* [feature] Added -r argument to alembic history command, allows specification of [start]:[end] to view a slice of history.
* [feature] Source base is now in-place for Python 2.6 through 3.3,
without the need for 2to3.
* [feature] Added -r argument to alembic history command, allows specification of [start]:[end] to view a slice of history.
* [feature] Source base is now in-place for Python 2.6 through 3.3,
without the need for 2to3.
* [feature] Added new kw argument to EnvironmentContext.configure() include_object.
-------------------------------------------------------------------
@@ -683,7 +698,7 @@ Sun Apr 14 15:53:22 UTC 2013 - p.drouand@gmail.com
for the version table.
+ added output_encoding option to EnvironmentContext.configure(), used with --sql
mode to apply an encoding to the output stream.
+ added Operations.create_primary_key() operation, will genenerate an
+ added Operations.create_primary_key() operation, will genenerate an
ADD CONSTRAINT for a primary key.
+ upgrade and downgrade commands will list the first line of the docstring
out next to the version number.
@@ -734,7 +749,7 @@ Mon Jan 14 16:02:38 UTC 2013 - saschpe@suse.de
- Changes from version 0.4.1:
+ Added support for autogenerate render of ForeignKeyConstraint
options onupdate, ondelete, initially, and deferred.
+ Explicit error message describing the case when downgrade --sql
+ Explicit error message describing the case when downgrade --sql
is used without specifying specific start/end versions.
+ Fixed the minute component in file_template
which returned the month part of the create date.
@@ -791,31 +806,31 @@ Wed Jun 6 12:13:48 UTC 2012 - saschpe@suse.de
+ [bug] Fixed command-line bug introduced by the
"revision_environment" feature.
- Changes from version 0.3.3:
+ [feature] New config argument
+ [feature] New config argument
"revision_environment=true", causes env.py to
be run unconditionally when the "revision" command
is run, to support script.py.mako templates with
is run, to support script.py.mako templates with
dependencies on custom "template_args".
+ [feature] Added "template_args" option to configure()
so that an env.py can add additional arguments
to the template context when running the
to the template context when running the
"revision" command. This requires either --autogenerate
or the configuration directive "revision_environment=true".
+ [bug] Added "type" argument to op.drop_constraint(),
and implemented full constraint drop support for
MySQL. CHECK and undefined raise an error.
MySQL. CHECK and undefined raise an error.
MySQL needs the constraint type
in order to emit a DROP CONSTRAINT. #44
+ [feature] Added version_table argument to
EnvironmentContext.configure(), allowing for the
configuration of the version table name. #34
+ [feature] Added support for "relative" migration
identifiers, i.e. "alembic upgrade +2",
"alembic downgrade -1". Courtesy
identifiers, i.e. "alembic upgrade +2",
"alembic downgrade -1". Courtesy
Atsushi Odagiri for this feature.
+ [bug] Fixed bug whereby directories inside of
+ [bug] Fixed bug whereby directories inside of
the template directories, such as __pycache__
on Pypy, would mistakenly be interpreted as
on Pypy, would mistakenly be interpreted as
files which are part of the template. #49
-------------------------------------------------------------------

View File

@@ -18,34 +18,32 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-alembic
Version: 0.9.9
Version: 0.9.10
Release: 0
Url: http://bitbucket.org/zzzeek/alembic
Summary: A database migration tool for SQLAlchemy
License: MIT
Group: Development/Languages/Python
Source: https://pypi.io/packages/source/a/alembic/alembic-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
URL: http://bitbucket.org/zzzeek/alembic
Source: https://files.pythonhosted.org/packages/source/a/alembic/alembic-%{version}.tar.gz
# Test requirements:
BuildRequires: %{python_module Mako}
BuildRequires: %{python_module SQLAlchemy >= 0.7.6}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose >= 0.11}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module python-editor >= 0.3}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Mako
Requires: python-SQLAlchemy >= 0.7.6
Requires: python-python-dateutil
Requires: python-python-editor >= 0.3
Requires(post): /usr/sbin/update-alternatives
Requires(postun): /usr/sbin/update-alternatives
Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
BuildArch: noarch
%python_subpackages
%description
@@ -84,6 +82,7 @@ This package contains the documentation.
%prep
%setup -q -n alembic-%{version}
mv docs html && rm -rf html/build
sed -i -e '1d' alembic/testing/runner.py
%build
%python_build
@@ -103,12 +102,13 @@ mv docs html && rm -rf html/build
%python_uninstall_alternative alembic
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGES LICENSE README.rst
%license LICENSE
%doc CHANGES README.rst
%python_alternative %{_bindir}/alembic
%{python_sitelib}/*
%{python_sitelib}/alembic*
%files -n python-alembic-doc
%doc LICENSE html
%license LICENSE
%doc html
%changelog