Updating link to change in openSUSE:Factory/python-sqlalchemy-migrate revision 20.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlalchemy-migrate?expand=0&rev=afd378dbb38b42b4347fcbba2866112b
This commit is contained in:
committed by
Git OBS Bridge
parent
4ea109d9ed
commit
1dbb577ee0
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 3 15:10:45 UTC 2017 - tbechtold@suse.com
|
||||
|
||||
- convert to singlespec
|
||||
- split -doc package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 9 21:51:10 UTC 2017 - dmueller@suse.com
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-sqlalchemy-migrate
|
||||
Version: 0.11.0
|
||||
Release: 0
|
||||
@@ -25,27 +26,28 @@ License: MIT
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://pypi.python.org/pypi/sqlalchemy-migrate
|
||||
Source: https://pypi.io/packages/source/s/sqlalchemy-migrate/sqlalchemy-migrate-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pbr}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-pbr
|
||||
BuildRequires: python-rpm-macros
|
||||
# Documentation requirements:
|
||||
BuildRequires: python-SQLAlchemy >= 0.7.8
|
||||
BuildRequires: python-Sphinx >= 1.1.2
|
||||
BuildRequires: python3-SQLAlchemy >= 0.7.8
|
||||
BuildRequires: python3-Sphinx >= 1.1.2
|
||||
# Test requirements:
|
||||
#BuildRequires: python-ScriptTest >= 1.0
|
||||
BuildRequires: python-Tempita >= 0.4
|
||||
BuildRequires: python-decorator
|
||||
#BuildRequires: python-pysqlite
|
||||
#BuildRequires: python-pytz
|
||||
BuildRequires: %{python_module Tempita >= 0.4}
|
||||
BuildRequires: %{python_module decorator}
|
||||
Requires: python-SQLAlchemy >= 0.7.8
|
||||
Requires: python-Tempita >= 0.4
|
||||
Requires: python-decorator
|
||||
Requires: python-six >= 1.7.0
|
||||
Requires: python-sqlparse
|
||||
%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
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Inspired by Ruby on Rails' migrations, Migrate provides a way to deal with
|
||||
@@ -55,29 +57,57 @@ 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.
|
||||
|
||||
%package -n python-sqlalchemy-migrate-doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation/Other
|
||||
Provides: %{python_module sqlalchemy-migrate-doc = %{version}}
|
||||
|
||||
%description -n python-sqlalchemy-migrate-doc
|
||||
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.
|
||||
|
||||
This package contains the documentation.
|
||||
|
||||
%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
|
||||
%python_build
|
||||
python3 setup.py build_sphinx && rm doc/build/html/.buildinfo # Build HTML documentation
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%fdupes %{buildroot}%{python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/migrate
|
||||
%python_clone -a %{buildroot}%{_bindir}/migrate-repository
|
||||
|
||||
#NOTE(saschpe): enable tests later, there are one or two upstream issues
|
||||
#%%check
|
||||
#python setup.py test
|
||||
|
||||
%files
|
||||
%post
|
||||
%python_install_alternative migrate
|
||||
%python_install_alternative migrate-repository
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative migrate
|
||||
%python_uninstall_alternative migrate-repository
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING README.rst doc/build/html
|
||||
%{_bindir}/migrate
|
||||
%{_bindir}/migrate-repository
|
||||
%doc COPYING README.rst
|
||||
%python_alternative %{_bindir}/migrate
|
||||
%python_alternative %{_bindir}/migrate-repository
|
||||
%{python_sitelib}/migrate
|
||||
%{python_sitelib}/sqlalchemy_migrate-*
|
||||
|
||||
%files -n python-sqlalchemy-migrate-doc
|
||||
%doc COPYING doc/build/html
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user