diff --git a/affine-1.2.0.tar.gz b/affine-1.2.0.tar.gz deleted file mode 100644 index 699eeec..0000000 --- a/affine-1.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:69e6f82130bfc61a223624f49359e7e3bda131221ca02f7da486a3d0505c7efa -size 10918 diff --git a/affine-2.2.2.tar.gz b/affine-2.2.2.tar.gz new file mode 100644 index 0000000..f2e721e --- /dev/null +++ b/affine-2.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff0d0f40a90faa651f7bc7fece15bdbb7a0e0658b1e7ba6a03422c21efa7da90 +size 14438 diff --git a/python-affine.changes b/python-affine.changes index a6ebbfd..9bc96dd 100644 --- a/python-affine.changes +++ b/python-affine.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Wed Mar 6 18:47:41 UTC 2019 - Todd R + +- Update to 2.2.2 + * Affine.itransform computed the wrong results for arrays with rotation or + shear (#40). This is fixed (#41). +- Update to 2.2.1 + * Docstring improvements (#37). +- Update to 2.2.0 + * Addition of permutation matrix (#35). +- Update to 2.1.0 + * Addition of new ``eccentricity`` and ``rotation_angle`` properties (#28). +- Update to 2.0.0 + * Bug fix: restore ``Affine __rmul__`` even though it permits dubious + vector * matrix expressions (#27). + * Breaking change: precision used in properties like ``is_conformal`` is no + longer a global module attribute, but an Affine class or instance attribute + (#19, #20). + * Breaking change: ``is_degenerate`` property is now exact and not subject to + a level of precision (#23). + * Breaking change: we have reversed our sense of rotation, a positive angle + now rotates a point counter-clockwise about the pivot point (#25). + * Bug fix: a bug in matrix-vector multiplication had been reversing the + direction of rotation and is now fixed (#25). +- Update to 1.3.0 + * is_degenerate predicate is precise, not approximate (#22) +- Implement single-spec version + ------------------------------------------------------------------- Thu Jun 09 10:43:00 UTC 2015 - Angelos Tzotsos diff --git a/python-affine.spec b/python-affine.spec index 1836b6c..de6407e 100644 --- a/python-affine.spec +++ b/python-affine.spec @@ -1,7 +1,7 @@ # -# spec file for package Affine +# spec file for package python-affine # -# Copyright (c) 2015 Angelos Tzotsos +# 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 @@ -12,50 +12,50 @@ # 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/ -# +# Please submit bugfixes or comments via https://bugs.opensuse.org/ -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} -%define pyname affine - -Name: python-%{pyname} -Version: 1.2.0 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-affine +Version: 2.2.2 Release: 0 -Summary: Matrices describing affine transformation of the plane License: BSD-3-Clause +Summary: Affine transformation matrices Url: https://github.com/sgillies/affine -Group: Productivity/Scientific/Other -Source0: %{pyname}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch -BuildRequires: python-devel -BuildRequires: python-setuptools +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/a/affine/affine-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} BuildRequires: fdupes -Requires: python +# SECTION test requirements +BuildRequires: %{python_module coveralls} +BuildRequires: %{python_module pydocstyle} +BuildRequires: %{python_module pytest >= 3.0} +BuildRequires: %{python_module pytest-cov} +# /SECTION +BuildArch: noarch + +%python_subpackages %description Matrices describing affine transformation of the plane. %prep -%setup -q -n %{pyname}-%{version} +%setup -q -n affine-%{version} %build -%{__python} setup.py build +%python_build %install -rm -rf %{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -python setup.py install --prefix=%{_prefix} --root=%{buildroot} \ - --record-rpm=INSTALLED_FILES +%check +%python_exec setup.py test -%fdupes -s %{buildroot} - -%clean -rm -rf %{buildroot} - -%files -f INSTALLED_FILES -%defattr(-,root,root,-) +%files %{python_files} +%doc AUTHORS.txt CHANGES.txt README.rst +%license LICENSE.txt +%{python_sitelib}/* %changelog