forked from pool/python-alembic
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user