commit python-alembic for openSUSE:Factory
Hello community, here is the log from the commit of package python-alembic for openSUSE:Factory checked in at 2017-08-29 11:45:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-alembic (Old) and /work/SRC/openSUSE:Factory/.python-alembic.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-alembic" Tue Aug 29 11:45:05 2017 rev:27 rq:519120 version:0.9.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-alembic/python-alembic.changes 2017-02-06 15:22:52.390062450 +0100 +++ /work/SRC/openSUSE:Factory/.python-alembic.new/python-alembic.changes 2017-08-29 11:45:49.613553978 +0200 @@ -1,0 +2,16 @@ +Tue Aug 22 12:41:25 UTC 2017 - tbechtold@suse.com + +- update to 0.9.5: + * see http://alembic.zzzcomputing.com/en/latest/changelog.html#change-0.8.8 + * see http://alembic.zzzcomputing.com/en/latest/changelog.html#change-0.8.9 + * see http://alembic.zzzcomputing.com/en/latest/changelog.html#change-0.8.10 + * see http://alembic.zzzcomputing.com/en/latest/changelog.html#change-0.9.0 + * see http://alembic.zzzcomputing.com/en/latest/changelog.html#change-0.9.1 + * see http://alembic.zzzcomputing.com/en/latest/changelog.html#change-0.9.2 + * see http://alembic.zzzcomputing.com/en/latest/changelog.html#change-0.9.3 + * see http://alembic.zzzcomputing.com/en/latest/changelog.html#change-0.9.4 + * see http://alembic.zzzcomputing.com/en/latest/changelog.html#change-0.9.5 +- convert to singlespec +- split -doc package + +------------------------------------------------------------------- Old: ---- alembic-0.8.10.tar.gz New: ---- alembic-0.9.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-alembic.spec ++++++ --- /var/tmp/diff_new_pack.jmkKVT/_old 2017-08-29 11:45:51.237325091 +0200 +++ /var/tmp/diff_new_pack.jmkKVT/_new 2017-08-29 11:45:51.241324527 +0200 @@ -16,8 +16,9 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-alembic -Version: 0.8.10 +Version: 0.9.5 Release: 0 Url: http://bitbucket.org/zzzeek/alembic Summary: A database migration tool for SQLAlchemy @@ -25,27 +26,26 @@ Group: Development/Languages/Python Source: https://pypi.io/packages/source/a/alembic/alembic-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros # Test requirements: -BuildRequires: python-Mako -BuildRequires: python-SQLAlchemy >= 0.7.6 -BuildRequires: python-argparse -BuildRequires: python-mock -BuildRequires: python-nose >= 0.11 -BuildRequires: python-pytest-cov -BuildRequires: python-python-editor >= 0.3 +BuildRequires: %{python_module Mako} +BuildRequires: %{python_module SQLAlchemy >= 0.7.6} +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} Requires: python-Mako Requires: python-SQLAlchemy >= 0.7.6 -Requires: python-argparse +Requires: python-python-dateutil Requires: python-python-editor >= 0.3 Requires(post): /usr/sbin/update-alternatives Requires(postun): /usr/sbin/update-alternatives -%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 + +%python_subpackages %description Alembic is a new database migrations tool, written by the author @@ -60,39 +60,53 @@ "downgrade" similarly, doing the same steps in reverse. * Allows the scripts to execute in some sequential manner. +%package -n python-alembic-doc +Summary: Documentation for %{name} +Group: Documentation/Other +Provides: %{python_module alembic-doc = %{version}} + +%description -n python-alembic-doc +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. + +This package contains the documentation. + %prep %setup -q -n alembic-%{version} mv docs html && rm -rf html/build %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -# update-alternatives -mv %{buildroot}%{_bindir}/alembic %{buildroot}%{_bindir}/alembic-%{py_ver} -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -touch %{buildroot}%{_sysconfdir}/alternatives/alembic -ln -sf %{_sysconfdir}/alternatives/alembic %{buildroot}%{_bindir}/alembic +%python_install +%python_clone -a %{buildroot}%{_bindir}/alembic %check -python setup.py test +%python_exec setup.py test %post -update-alternatives \ - --install %{_bindir}/alembic alembic %{_bindir}/alembic-%{py_ver} 20 +%python_install_alternative alembic %postun -if [ $1 -eq 0 ] ; then - update-alternatives --remove alembic %{_bindir}/alembic-%{py_ver} -fi +%python_uninstall_alternative alembic -%files +%files %{python_files} %defattr(-,root,root,-) -%doc CHANGES LICENSE README.rst html -%ghost %{_sysconfdir}/alternatives/alembic -%{_bindir}/alembic -%{_bindir}/alembic-%{py_ver} +%doc CHANGES LICENSE README.rst +%python_alternative %{_bindir}/alembic %{python_sitelib}/* +%files -n python-alembic-doc +%doc LICENSE html + %changelog ++++++ alembic-0.8.10.tar.gz -> alembic-0.9.5.tar.gz ++++++ ++++ 52573 lines of diff (skipped)
participants (1)
-
root@hilbert.suse.de