15
0
Files
python-alembic/python-alembic.spec
Thomas Bechtold f02ff6c7c5 - update to 1.2.0:
* bugs
    + Reverted the name change of the “revisions” argument to
      command.stamp() to “revision” as apparently applications are
      calling upon this argument as a keyword name. Pull request
      courtesy Thomas Bechtold. Special translations are also added
      to the command line interface so that it is still known
      as “revisions” in the CLI.
      References: #601
    + Removed the “test requirements” from “setup.py test”, as
      this command now only emits a removal error in any case
      and these requirements are unused.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=96
2019-09-25 03:30:28 +00:00

87 lines
2.8 KiB
RPMSpec

#
# spec file for package python-alembic
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-alembic
Version: 1.2.1
Release: 0
Summary: A database migration tool for SQLAlchemy
License: MIT
Group: Development/Languages/Python
URL: https://github.com/sqlalchemy/alembic
Source0: https://files.pythonhosted.org/packages/source/a/alembic/alembic-%{version}.tar.gz
Source1: python-alembic-rpmlintrc
BuildRequires: %{python_module Mako}
BuildRequires: %{python_module SQLAlchemy >= 1.1.0}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
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 >= 1.1.0
Requires: python-python-dateutil
Requires: python-python-editor >= 0.3
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
Alembic is a new database migrations tool, written by the author
of SQLAlchemy <http://www.sqlalchemy.org>. A migrations tool
offers the following functionality:
* Can emit ALTER statements to a database in order to change
the structure of tables and other constructs
* Provides a system whereby "migration scripts" may be constructed;
each script indicates a particular series of steps that can "upgrade" a
target database to a new version, and optionally a series of steps that can
"downgrade" similarly, doing the same steps in reverse.
* Allows the scripts to execute in some sequential manner.
%prep
%setup -q -n alembic-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/alembic
%check
%pytest
%post
%python_install_alternative alembic
%postun
%python_uninstall_alternative alembic
%files %{python_files}
%license LICENSE
%doc CHANGES README.rst
%python_alternative %{_bindir}/alembic
%{python_sitelib}/alembic*
%changelog