#6 Update to 0.3.0
Opened 3 months ago by fed500. Modified 3 months ago
rpms/ fed500/python-cffsubr update-0.3.0  into  rawhide

file modified
+1
@@ -1,3 +1,4 @@ 

  /cffsubr-0.2.8.tar.gz

  /cffsubr-0.2.9.tar.gz

  /cffsubr-0.2.9.post1.tar.gz

+ /cffsubr-0.3.0.tar.gz

file removed
-36
@@ -1,36 +0,0 @@ 

- From 822a00d2001fa4de06ca854c3047b8687d6c1a32 Mon Sep 17 00:00:00 2001

- From: "Benjamin A. Beasley" <code@musicinmybrain.net>

- Date: Wed, 29 Nov 2023 08:14:32 -0500

- Subject: [PATCH] Handle importlib.resources.path removal in Python 3.13

- 

- ---

-  src/cffsubr/__init__.py | 15 ++++++++++++---

-  1 file changed, 12 insertions(+), 3 deletions(-)

- 

- diff --git a/src/cffsubr/__init__.py b/src/cffsubr/__init__.py

- index 4428dcd..1d4eef2 100644

- --- a/src/cffsubr/__init__.py

- +++ b/src/cffsubr/__init__.py

- @@ -8,10 +8,19 @@

-  import sys

-  

-  try:

- -    from importlib.resources import path

- +    # Python >= 3.9

- +    from importlib.resources import as_file, files

-  except ImportError:

- -    # use backport for python < 3.7

- -    from importlib_resources import path

- +    try:

- +        # python >= 3.7, deprecated in python 3.11, removed in 3.13

- +        from importlib.resources import path

- +    except ImportError:

- +        # use backport for python < 3.7

- +        from importlib_resources import path

- +else:

- +    # https://docs.python.org/3.11/library/importlib.resources.html#importlib.resources.as_file

- +    def path(package, resource):

- +        return as_file(files(package).joinpath(resource))

-  

-  from fontTools import ttLib

-  

file modified
+10 -8
@@ -1,6 +1,6 @@ 

  Name:           python-cffsubr

- Version:        0.2.9.post1

- Release:        11%{?dist}

+ Version:        0.3.0

+ Release:        1%{?dist}

  Summary:        Standalone CFF subroutinizer based on the AFDKO tx tool

  

  # The entire source is Apache-2.0, except:
@@ -15,10 +15,6 @@ 

  # Written for Fedora in groff_man(7) format based on the output of “cffsubr --help”

  Source1:        cffsubr.1

  

- # Handle importlib.resources.path removal in Python 3.13

- # https://github.com/adobe-type-tools/cffsubr/pull/24

- Patch:          https://github.com/adobe-type-tools/cffsubr/pull/24.patch

- 

  BuildArch:      noarch

  

  BuildRequires:  python3-devel
@@ -48,8 +44,11 @@ 

  %prep

  %autosetup -n cffsubr-%{version} -p1

  

- # Patch out setuptools-git-ls-files dependency

- sed -r -i '/setuptools-git-ls-files/d' setup.py pyproject.toml

+ # Patch out setuptools-git-ls-files and other external dependencies

+ sed -r -i '/setuptools-git-ls-files/d' _custom_build/backend.py

+ sed -r -i '/cmake/d' _custom_build/backend.py

+ sed -r -i '/ninja/d' _custom_build/backend.py

+ sed -r -i '/scikit-build/d' _custom_build/backend.py

  

  # Do not build the extension, which is a copy of the “tx” executable from

  # adobe-afdko:
@@ -93,6 +92,9 @@ 

  %{_mandir}/man1/cffsubr.1*

  

  %changelog

+ * Wed Feb 21 2024 Benson Muite <benson_muite@emailplus.org> - 0.3.0-1

+ - Update to release 0.3.0

+ 

  * Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9.post1-11

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (cffsubr-0.2.9.post1.tar.gz) = 8c83001010951990d4e0dcecd1820e0f469042518c63cf82b66425c383b640f525f253b10f16ad587e9492a9aed070715d776d909ab4e897c99a22a7678f38a7

+ SHA512 (cffsubr-0.3.0.tar.gz) = 5cc957673c9d6d54aa83eee870b9f2b1e9c2efe44a9f2de47b95ca98a4bd753d98cb7ccf08aa1c59e6be246e8821347b9e4eb6e627074c23753daa97df9c3339

no initial comment

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/fca86dab1c4d4f50b0b2d6157be30c68

Thanks for the patches!
Let's wait for completion bug#2259073 to merge this.