From 465c70ce06dfe6c69b55d5c7fa17a913205dc76c7c458f244946879c5fab0327 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 3 Nov 2025 14:31:00 +0000 Subject: [PATCH] - Update to 0.12.2 * simplify use of pyfilesystem2 API in test suite * bump fonttools >= 4.59, remove fs dependency - Remove unzip package from BuildRequires - Switch source archive format to TAR.GZ - Drop support for older Python versions - Use Python 3.11 on SLE-15 by default OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-defcon?expand=0&rev=24 --- .gitattributes | 23 ++++++++ .gitignore | 1 + defcon-0.12.1.zip | 3 ++ defcon-0.12.2.tar.gz | 3 ++ python-defcon.changes | 120 ++++++++++++++++++++++++++++++++++++++++++ python-defcon.spec | 73 +++++++++++++++++++++++++ 6 files changed, 223 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 defcon-0.12.1.zip create mode 100644 defcon-0.12.2.tar.gz create mode 100644 python-defcon.changes create mode 100644 python-defcon.spec 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/defcon-0.12.1.zip b/defcon-0.12.1.zip new file mode 100644 index 0000000..5d02ebd --- /dev/null +++ b/defcon-0.12.1.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aca8674a8f71723af6a08f332f3ed3156ba0fe00591eb5aff7572caad1472d09 +size 521128 diff --git a/defcon-0.12.2.tar.gz b/defcon-0.12.2.tar.gz new file mode 100644 index 0000000..2fd1b4b --- /dev/null +++ b/defcon-0.12.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25dfe7fd0152ccf292cb190d1928a47d588899c20b046854293e039e1c93e5e0 +size 417681 diff --git a/python-defcon.changes b/python-defcon.changes new file mode 100644 index 0000000..d7507fa --- /dev/null +++ b/python-defcon.changes @@ -0,0 +1,120 @@ +------------------------------------------------------------------- +Fri Oct 31 12:47:56 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 0.12.2 + * simplify use of pyfilesystem2 API in test suite + * bump fonttools >= 4.59, remove fs dependency +- Remove unzip package from BuildRequires +- Switch source archive format to TAR.GZ +- Drop support for older Python versions +- Use Python 3.11 on SLE-15 by default + +------------------------------------------------------------------- +Thu Jun 5 06:01:35 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Tue Apr 15 08:08:48 UTC 2025 - Dirk Müller + +- update to 0.12.1: + * clear glyph.lib on glyph.clear +- update to 0.12.0: + * Loop over all possibilities and test if one of them is + disabled +- update to 0.11.0: + * add `.readthedocs.yaml` + * Remove some big memory attributes from all defcon objects on + delete + * Mark regex/docstring as raw to fix SyntaxWarning invalid + escape seq + * Remove a useless shebang line in a non-executable test script + * Remove guideline color key when setting color none + * Update tested python versions + +------------------------------------------------------------------- +Mon Sep 18 09:19:26 UTC 2023 - Dirk Müller + +- update to 0.10.3: + * Add in missing `_dirty` + +------------------------------------------------------------------- +Wed Dec 7 17:55:50 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 0.10.2 + * Create a new glyphset from the provided reader by @typemytype in #409 + +------------------------------------------------------------------- +Tue Jul 19 11:27:11 UTC 2022 - Dirk Müller + +- update to 0.10.1: + * Python 3.10 support + * Add glyphSet argument in _stampLayerInfoDataState + * when guideline.name is set to None remove the name key + * add eq and hash to FuzzyNumber + +------------------------------------------------------------------- +Sun Jan 23 16:18:07 UTC 2022 - Dirk Müller + +- update to 0.10.0: + * drop python 3.6 support + +------------------------------------------------------------------- +Thu Dec 16 10:22:57 UTC 2021 - Ben Greiner + +- Update to 0.9.0 + * Makes glyph.image object “sticky”, just like lib objects (#352) + * Adds a .tempLib to font, layer, and glyph that is available for + the life of the object and is never saved with the ufo. (#367) +- Skip python36: FontTools now dropped it. + +------------------------------------------------------------------- +Tue Mar 23 19:23:58 UTC 2021 - Benjamin Greiner + +- reinstate python36 build (python36-FontTools is available) + +------------------------------------------------------------------- +Fri Mar 19 01:52:35 UTC 2021 - Steve Kowalik + +- Update 0.8.1: + * Fixes behavior with None in removeObserver (#349) + * Resets glyph set on save (#297) + * Gives Anchors and Guidelines a glyph attribute (#325) + * Dispatcher enhancements (#337) + * Adds __eq__ in BaseDict (#344) + +------------------------------------------------------------------- +Sat Feb 13 10:25:23 UTC 2021 - Dirk Müller + +- skip python 3.6 (needs FontTools which needs scipy) + +------------------------------------------------------------------- +Mon Jun 15 05:47:09 UTC 2020 - Steve Kowalik + +- Update to 0.7.2: + * Name the wheel file as non-universal (py3-only). + * [setup.py] Mark library as requiring Python 3.6+, or else pip2 will attempt to install it on Python 2.7, which is no longer supported (#293). + * Dropped support for Py2, now only Py3 + * Updated documentation: #232 + * Fixed docstring typos (thanks @Space0726!): #263 + * added notification: Font.GuidelineWillBeAdded: #239 + * Fixes for UFOZ (#209 testForExternalChanges and #218 glyphSet is required): #220 + * Added close to font: #269 + * Setting glyph.unicode will now set glyph.unicodes to a one member list: #258 + * Add notifications for: Glyph.LeftMarginWillChange, Glyph.LeftMarginDidChange, Glyph.RightMarginWillChange, Glyph.RightMarginDidChange, Glyph.TopMarginWillChange, Glyph.TopMarginDidChange, Glyph.BottomMarginWillChange, Glyph.BottomMarginDidChange: #253 + * Improved joinSegments: #259 + * Added identifier to addComponent callback: #268 + * Fix glyphs with components getting proper area value: #272 + * Use ufoFormatTuple: #289 + * Add ufoFormatVersionTuple property, deprecate ufoFormatVersion: #291 + +------------------------------------------------------------------- +Tue May 26 07:45:45 UTC 2020 - Tomáš Chvátal + +- Fix FontTool dep (camelcase) +- Remove devel dependency + +------------------------------------------------------------------- +Wed May 20 10:29:57 UTC 2020 - Antonio Larrosa + +- Initial release of python-defcon diff --git a/python-defcon.spec b/python-defcon.spec new file mode 100644 index 0000000..dee48ab --- /dev/null +++ b/python-defcon.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-defcon +# +# 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-defcon +Version: 0.12.2 +Release: 0 +Summary: A set of UFO based objects for use in font editing applications +License: MIT +URL: https://github.com/robotools/defcon +Source: https://files.pythonhosted.org/packages/source/d/defcon/defcon-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-FontTools >= 4.59.0 +# SECTION fonttools[ufo,unicode] +Requires: python-fs >= 2.2 +%if 0%{?python_version_nodots} < 39 +Requires: python-unicodedata2 >= 13.0.0 +%endif +# /SECTION +Suggests: python-fontPens >= 0.1.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module FontTools >= 4.59.0} +BuildRequires: %{python_module fs >= 2.2} +BuildRequires: %{python_module pytest >= 3.0.3} +BuildRequires: %{python_module unicodedata2 >= 13.0.0 if %python-base < 3.9} +# /SECTION +%python_subpackages + +%description +A set of UFO based objects optimized for use in font editing applications. + +%prep +%setup -q -n defcon-%{version} +sed -i -e '1{\,^#!%{_bindir}/env python,d}' Lib/defcon/test/tools/test_unicodeTools.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license License.txt +%{python_sitelib}/defcon +%{python_sitelib}/defcon-%{version}*-info + +%changelog