OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlalchemy-migrate?expand=0&rev=19
83 lines
2.9 KiB
RPMSpec
83 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-sqlalchemy-migrate
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# Copyright 2011 LISA GmbH, Bingen, 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-sqlalchemy-migrate
|
|
Version: 0.8.2
|
|
Release: 0
|
|
Summary: Database schema migration for SQLAlchemy
|
|
License: MIT
|
|
Group: Development/Libraries/Python
|
|
Url: http://pypi.python.org/pypi/sqlalchemy-migrate
|
|
Source: https://pypi.python.org/packages/source/s/sqlalchemy-migrate/sqlalchemy-migrate-%{version}.tar.gz
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-pbr
|
|
# Documentation requirements:
|
|
BuildRequires: python-SQLAlchemy >= 0.6
|
|
BuildRequires: python-Sphinx >= 0.5
|
|
# Test requirements:
|
|
#BuildRequires: python-ScriptTest >= 1.0
|
|
BuildRequires: python-Tempita >= 0.4
|
|
BuildRequires: python-decorator
|
|
#BuildRequires: python-pysqlite
|
|
#BuildRequires: python-pytz
|
|
Requires: python-SQLAlchemy >= 0.6
|
|
Requires: python-Tempita >= 0.4
|
|
Requires: python-decorator
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
%else
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description
|
|
Inspired by Ruby on Rails' migrations, Migrate provides a way to deal with
|
|
database schema changes in SQLAlchemy projects.
|
|
|
|
Migrate extends SQLAlchemy to have database changeset handling. It provides a
|
|
database change repository mechanism which can be used from the command line as
|
|
well as from inside python code.
|
|
|
|
%prep
|
|
%setup -q -n sqlalchemy-migrate-%{version}
|
|
find . -type f -name "*.py" -o -name "*.py_tmpl" | xargs sed -i "/#!/d" # Remove shebang from non-executable scripts
|
|
sed -i "s/, 'sphinxcontrib.issuetracker'//g" doc/source/conf.py # No internet access please
|
|
|
|
%build
|
|
python setup.py build
|
|
python setup.py build_sphinx && rm doc/build/html/.buildinfo # Build HTML documentation
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
%fdupes %{buildroot}%{python_sitelib}
|
|
|
|
#NOTE(saschpe): enable tests later, there are one or two upstream issues
|
|
#%%check
|
|
#python setup.py test
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README.rst doc/build/html
|
|
%{_bindir}/migrate
|
|
%{_bindir}/migrate-repository
|
|
%{python_sitelib}/migrate
|
|
%{python_sitelib}/sqlalchemy_migrate-*
|
|
|
|
%changelog
|