From e47ef6ba9e2dd124a444b11628da665fe1ec42f6596e168b55ee21a9f7686764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 13 Jun 2025 12:16:00 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-svgwrite?expand=0&rev=23 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-svgwrite.changes | 80 +++++++++++++++++++++++++++++++++++++++++ python-svgwrite.spec | 67 ++++++++++++++++++++++++++++++++++ svgwrite-1.4.3.zip | 3 ++ 5 files changed, 174 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-svgwrite.changes create mode 100644 python-svgwrite.spec create mode 100644 svgwrite-1.4.3.zip 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-svgwrite.changes b/python-svgwrite.changes new file mode 100644 index 0000000..a0e694a --- /dev/null +++ b/python-svgwrite.changes @@ -0,0 +1,80 @@ +------------------------------------------------------------------- +Fri Jun 13 12:15:47 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Fri Jan 5 12:40:40 UTC 2024 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Tue Oct 11 07:54:28 UTC 2022 - John Vandenberg + +- Update to v1.4.3 + * BUGFIX: Polyline validation +- from v1.4.2 + * Merged some contributions and bugfixes. + +------------------------------------------------------------------- +Mon May 10 00:41:24 UTC 2021 - Daniel Molkentin + +- Update to 1.4.1 + - no changelog provided + +------------------------------------------------------------------- +Thu Apr 23 16:22:34 UTC 2020 - Marcus Rueckert + +- Update to 1.4 + - Requires Python 3.6 + - Removed Python2 support + - Optimized/faster svgparser.py module by Florian Festi + - Removed batch files to run tests on Windows, use pytest or tox + instead + +------------------------------------------------------------------- +Tue Mar 10 10:43:52 UTC 2020 - Tomáš Chvátal + +- Skip one test that started to fail with python 3.8: + * test_pretty_print + +------------------------------------------------------------------- +Mon Jul 22 12:44:34 UTC 2019 - Tomáš Chvátal + +- Update to 1.3.1: + * NEW: easy stylesheet embedding: Drawing.embed_stylesheet(content), see example using_fonts.py + * NEW: embedded local fonts: Drawing.embed_font(fontname, filename), see example using_fonts.py + * NEW: embedded web fonts: Drawing.embed_google_web_font(fontname, uri), see example using_fonts.py + * NEW: shapes extension by Christof Hanke + * NEW: for write(), save() and saveas(), indentation for pretty print is configurable by Mitar + * BUGFIX: converted regex strings in tests to raw strings by tirkarthi + +------------------------------------------------------------------- +Wed Jan 2 11:43:25 UTC 2019 - Tomáš Chvátal + +- Version update to 1.2.1: + * BUGFIX: Python 2 pretty print encoding issue + * NEW: Inkscape extension - support for Inkscape layers + * BUGFIX: compatibility with Python 3.7 by fixing re.split() usage + +------------------------------------------------------------------- +Tue Dec 4 12:55:01 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Sun Jul 29 12:32:26 UTC 2018 - jengelh@inai.de + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Thu May 24 17:49:27 UTC 2018 - toddrme2178@gmail.com + +- Update 1.1.12 + * BUGFIX: values attribute for element animate, accepts any semicolon separated values +- spec file cleanups + +------------------------------------------------------------------- +Fri Oct 20 16:19:04 UTC 2017 - toddrme2178@gmail.com + +- initial version diff --git a/python-svgwrite.spec b/python-svgwrite.spec new file mode 100644 index 0000000..960e2e3 --- /dev/null +++ b/python-svgwrite.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-svgwrite +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-svgwrite +Version: 1.4.3 +Release: 0 +Summary: Python module for creating SVG drawings +License: MIT +URL: https://github.com/mozman/svgwrite +Source: https://files.pythonhosted.org/packages/source/s/svgwrite/svgwrite-%{version}.zip +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +Requires: python-pyparsing >= 2.0.1 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pyparsing >= 2.0.1} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +A Python library to create SVG drawings. + +%prep +%setup -q -n svgwrite-%{version} +find svgwrite -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \; -exec sed -i 's/\r$//' {} \; +sed -i 's/\r$//' LICENSE.TXT NEWS.rst README.rst + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# test_embed_google_web_font - asks google for data +# test_pretty_print - fails on python 3.8 because xml output is now ordering tags +%pytest -k 'not test_embed_google_web_font and not test_pretty_print' + +%files %{python_files} +%doc NEWS.rst README.rst +%license LICENSE.TXT +%{python_sitelib}/svgwrite +%{python_sitelib}/svgwrite-%{version}*-info + +%changelog diff --git a/svgwrite-1.4.3.zip b/svgwrite-1.4.3.zip new file mode 100644 index 0000000..0c6dfc5 --- /dev/null +++ b/svgwrite-1.4.3.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8fbdfd4443302a6619a7f76bc937fc683daf2628d9b737c891ec08b8ce524c3 +size 189516