From 7691fb14084f2e08161d01be4af8a13be68dda392f829a2b0664232d84ff169c Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Fri, 9 May 2025 11:48:13 +0000 Subject: [PATCH] - Update to 1.7.0 * Hashes used by test suite are now platform-agnostic * Drop support for Python < 3.8 - Enable test suite OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-svgpathtools?expand=0&rev=19 --- .gitattributes | 23 +++++++++ .gitignore | 1 + python-svgpathtools.changes | 95 +++++++++++++++++++++++++++++++++++++ python-svgpathtools.spec | 61 ++++++++++++++++++++++++ svgpathtools-1.6.1.tar.gz | 3 ++ svgpathtools-1.7.0.tar.gz | 3 ++ 6 files changed, 186 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-svgpathtools.changes create mode 100644 python-svgpathtools.spec create mode 100644 svgpathtools-1.6.1.tar.gz create mode 100644 svgpathtools-1.7.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-svgpathtools.changes b/python-svgpathtools.changes new file mode 100644 index 0000000..68f0169 --- /dev/null +++ b/python-svgpathtools.changes @@ -0,0 +1,95 @@ +------------------------------------------------------------------- +Fri May 9 11:36:43 UTC 2025 - Mia Herkt + +- Update to 1.7.0 + * Hashes used by test suite are now platform-agnostic + * Drop support for Python < 3.8 +- Enable test suite + +------------------------------------------------------------------- +Sun May 21 12:16:43 UTC 2023 - Mia Herkt + +- Update to 1.6.1 + * Fix circles parsing to non-closed paths + #gh/mathandy/svgpathtools#198 + * path.transform: Arc sweep is reversed by negative scale + #gh/mathandy/svgpathtools#200 + * return error if Path.point() cannot be computed + +------------------------------------------------------------------- +Tue Feb 21 09:51:58 UTC 2023 - Mia Herkt + +- Updote to 1.6.0 + +------------------------------------------------------------------- +Wed Jul 20 22:11:58 UTC 2022 - Mia Herkt + +- Update to 1.5.1 + * Fix float rounding error in elliptic arc radius check + (#gh/mathandy/svgpathtools#171) +- Disable test suite because it can only work on specific CPU + (micro-)architectures. + (#gh/mathandy/svgpathtools#183) + +------------------------------------------------------------------- +Wed Jun 15 15:57:45 UTC 2022 - Mia Herkt + +- Update to 1.5.0 + * Fix implementation of points() + (#gh/mathandy/svgpathtools#155) + * Add support for rounded rectangles + (#gh/mathandy/svgpathtools#161) + * Fix Document.add_path for empty groups + (#gh/mathandy/svgpathtools#170) + * Allow file-like object as input to Documents ctor and + svg2paths function + * Add convenience functions for converting svgs contained in a + string to paths + +------------------------------------------------------------------- +Thu Dec 23 06:11:31 UTC 2021 - Mia Herkt + +- Update to 1.4.4 + * Fix issue with filenames with no directory causing error +- No notable changes in 1.4.3 +- Changes in 1.4.2: + * Hashable Path objects, and more. + +------------------------------------------------------------------- +Sat Feb 13 08:13:15 UTC 2021 - Dirk Müller + +- skip python 3.6 (scipy) + +------------------------------------------------------------------- +Wed Dec 16 04:22:58 UTC 2020 - Mia Herkt + +- Update to 1.4.1 + * Added clipping to work around floating point error in + Arc._parameterize + * Support flattening SVG groups and handling transforms + * save() now requires filename + * Better implementation of Arc.intersect(Line) + * Fixed issue with viewbox being written as tuple + * Added paths2Drawing functionality + * Update Path.area to work with Arc segments + * When cx and cy attributes are not defined either in ellipse + or circle tag, consider both to be 0 + * Fix Arc.sweep when transform scale flips it around + * Relative path support + * Fixed crash in line2paths() + * Support flattening paths of only nested groups + * Add Path.is_contained_by() to check if one path is inside + another + * Fix Arc/Arch intersections + * Add Path.attributes and Path.meta attributes + * Fix polyline and polygon conversion + * Document now stores element and transform in path + * Renamed Document.flatten_all_paths to flattened_paths + * Added vectorized points() method for bezier segments + * Sped up randialrange for Line objects + * Fix paths-data-12-t.svg from the SVG 1.1 test suite + +------------------------------------------------------------------- +Thu Jul 23 14:19:06 UTC 2020 - Mia Herkt + +- init, 1.3.3 diff --git a/python-svgpathtools.spec b/python-svgpathtools.spec new file mode 100644 index 0000000..9e7dfcd --- /dev/null +++ b/python-svgpathtools.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-svgpathtools +# +# Copyright (c) 2025 SUSE LLC +# +# 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/ +# + + +Name: python-svgpathtools +Version: 1.7.0 +Release: 0 +Summary: Tools for manipulating and analyzing SVG Path objects and Bézier curves +License: MIT +URL: https://github.com/mathandy/svgpathtools +Source: https://files.pythonhosted.org/packages/source/s/svgpathtools/svgpathtools-%{version}.tar.gz +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module scipy} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module svgwrite} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-numpy +Requires: python-scipy +Requires: python-svgwrite +BuildArch: noarch +%python_subpackages + +%description +Svgpathtools is a collection of tools for manipulating and +analyzing SVG Path objects and Bézier curves. + +%prep +%setup -q -n svgpathtools-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE.txt LICENSE2.txt +%doc README.md +%{python_sitelib}/svgpathtools* + +%changelog diff --git a/svgpathtools-1.6.1.tar.gz b/svgpathtools-1.6.1.tar.gz new file mode 100644 index 0000000..420f0e4 --- /dev/null +++ b/svgpathtools-1.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7054e6de1953e295bf565d535d585695453b09f8db4a2f7c4853348732097a3e +size 2133040 diff --git a/svgpathtools-1.7.0.tar.gz b/svgpathtools-1.7.0.tar.gz new file mode 100644 index 0000000..0e693db --- /dev/null +++ b/svgpathtools-1.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bdcb6dedce45fc2307c96119d0f720bab243418a753c514aa7c423b39289519c +size 2132481