GNU bug report logs - #64957
[PATCH] gnu: Add python-fontmake.

Previous Next

Package: guix-patches;

Reported by: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>

Date: Sun, 30 Jul 2023 15:37:01 UTC

Severity: normal

To reply to this bug, email your comments to 64957 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#64957; Package guix-patches. (Sun, 30 Jul 2023 15:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 30 Jul 2023 15:37:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
To: guix-patches <at> gnu.org
Cc: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
Subject: [PATCH] gnu: Add python-fontmake.
Date: Sun, 30 Jul 2023 17:35:44 +0200
* gnu/packages/fontutils.scm (python-fontmake): New variable.
---
 gnu/packages/fontutils.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 153602b4b4..a9dafcba2b 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -510,6 +510,31 @@ (define-public python-ufo2ft
 to generate OpenType font binaries from Unified Font Objects (UFOs).")
     (license license:expat)))
 
+(define-public python-fontmake
+  (package
+    (name "python-fontmake")
+    (version "3.4.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "fontmake" version ".zip"))
+              (sha256
+               (base32
+                "0fc5c9csjpy1aa4c03p7nvjgls5wjplhmmf42n0cmvrlh6cm7wl3"))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-attrs
+                             python-fontmath
+                             python-fonttools-minimal
+                             python-glyphslib
+                             python-ufo2ft
+                             python-ufolib2))
+    (native-inputs (list unzip python-setuptools-scm))
+    (home-page "https://github.com/googlei18n/fontmake")
+    (synopsis
+     "Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)")
+    (description
+     "Fontmake compiles fonts from various sources (.glyphs, .ufo, designspace) into binaries (.otf, .ttf). You can use it to create static instances and variable fonts.")
+    (license license:asl2.0)))
+
 (define-public python-fontmath
   (package
     (name "python-fontmath")

base-commit: c173819c8e5235ce02d60b79bd88b10023a7c614
prerequisite-patch-id: c56db9fa7fc4e07452dea53f2d450bd83abbbc1a
prerequisite-patch-id: 3e6318d61f2efa01f4435152f2139eef8f72572c
prerequisite-patch-id: 1b23c59bab92820a1e102137909922f4d71ed8f9
prerequisite-patch-id: 78a291411f8d86beabbf6d49df0cc78702ad4e65
prerequisite-patch-id: 579224b39cae7869ce11e2e8dba046b5eef606c7
prerequisite-patch-id: f1f62fd5d83d603ca35c17071e615352e90753e3
prerequisite-patch-id: 1843bca37f83e494be67c24e975727fb1fe1248c
prerequisite-patch-id: 5cc0d6cd16ae2ab21c444ed9cabfeea5615e8cda
prerequisite-patch-id: 92a3fab6e4174a4d4877fc5b426752df81e4df39
prerequisite-patch-id: ebf3fd3a8bb02f7dc5cdf504f63d5028b29fe69e
-- 
2.39.2





Information forwarded to guix-patches <at> gnu.org:
bug#64957; Package guix-patches. (Sun, 30 Jul 2023 15:46:02 GMT) Full text and rfc822 format available.

Message #8 received at 64957 <at> debbugs.gnu.org (full text, mbox):

From: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
To: 64957 <at> debbugs.gnu.org
Cc: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
Subject: [PATCH vREVISION] gnu: Add python-fontmake.
Date: Sun, 30 Jul 2023 17:45:20 +0200
* gnu/packages/fontutils.scm (python-fontmake): New variable.
---
Drop `python-` prefix since fontmake is not being used as a python library rather as a stand-alone application.

 gnu/packages/fontutils.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 153602b4b4..98cf573d1e 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -776,6 +776,31 @@ (define-public psautohint-font-data
        ;; Code Pro, Source Serif Pro, all available under the same license.
        (license license:silofl1.1)))))
 
+(define-public fontmake
+  (package
+    (name "fontmake")
+    (version "3.4.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "fontmake" version ".zip"))
+              (sha256
+               (base32
+                "0fc5c9csjpy1aa4c03p7nvjgls5wjplhmmf42n0cmvrlh6cm7wl3"))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-attrs
+                             python-fontmath
+                             python-fonttools-minimal
+                             python-glyphslib
+                             python-ufo2ft
+                             python-ufolib2))
+    (native-inputs (list unzip python-setuptools-scm))
+    (home-page "https://github.com/googlei18n/fontmake")
+    (synopsis
+     "Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)")
+    (description
+     "Fontmake compiles fonts from various sources (.glyphs, .ufo, designspace) into binaries (.otf, .ttf). You can use it to create static instances and variable fonts.")
+    (license license:asl2.0)))
+
 (define-public psautohint
   (package
     (name "psautohint")

base-commit: c173819c8e5235ce02d60b79bd88b10023a7c614
prerequisite-patch-id: c56db9fa7fc4e07452dea53f2d450bd83abbbc1a
prerequisite-patch-id: 3e6318d61f2efa01f4435152f2139eef8f72572c
prerequisite-patch-id: 1b23c59bab92820a1e102137909922f4d71ed8f9
prerequisite-patch-id: 78a291411f8d86beabbf6d49df0cc78702ad4e65
prerequisite-patch-id: 579224b39cae7869ce11e2e8dba046b5eef606c7
prerequisite-patch-id: f1f62fd5d83d603ca35c17071e615352e90753e3
prerequisite-patch-id: 1843bca37f83e494be67c24e975727fb1fe1248c
prerequisite-patch-id: 5cc0d6cd16ae2ab21c444ed9cabfeea5615e8cda
prerequisite-patch-id: 92a3fab6e4174a4d4877fc5b426752df81e4df39
prerequisite-patch-id: ebf3fd3a8bb02f7dc5cdf504f63d5028b29fe69e
-- 
2.39.2





Information forwarded to guix-patches <at> gnu.org:
bug#64957; Package guix-patches. (Sun, 30 Jul 2023 18:07:01 GMT) Full text and rfc822 format available.

Message #11 received at 64957 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
Cc: 64957 <at> debbugs.gnu.org
Subject: Re: [bug#64957] [PATCH vREVISION] gnu: Add python-fontmake.
Date: Mon, 31 Jul 2023 02:06:00 +0800
Hi Sergio,

On Sun, 30 Jul 2023 23:45:20 +0800,
Sergio Pastor Pérez wrote:
>
> * gnu/packages/fontutils.scm (python-fontmake): New variable.
> ---

Please adjust the commit message as well.

> +    (version "3.4.0")

The latest version is 3.6.1, can you update the definition for it?

> +    (build-system python-build-system)
> +    (propagated-inputs (list python-attrs

Please change the `propagated-inputs' field into `inputs'.

It's not necessary to propagate those inputs, as python-build-system
already wraps the final fontmake program to find them.

> +    (synopsis
> +     "Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)")
> +    (description
> +     "Fontmake compiles fonts from various sources (.glyphs, .ufo, designspace) into binaries (.otf, .ttf). You can use it to create static instances and variable fonts.")

There are some format issues, which could also be found by running
`./pre-inst-env guix lint fontmake' in your Guix checkout, I have
attatched the output below.

--8<---------------cut here---------------start------------->8---
gnu/packages/fontutils.scm:535:5: fontmake <at> 3.4.0: sentences in description should be followed by two spaces; possible infraction at 100
gnu/packages/fontutils.scm:535:0: fontmake <at> 3.4.0: line 535 is way too long (171 characters)
gnu/packages/fontutils.scm:531:15: fontmake <at> 3.4.0: permanent redirect from https://github.com/googlei18n/fontmake to https://github.com/googlefonts/fontmake
--8<---------------cut here---------------end--------------->8---

And... The REVISION in the `git send-email' part of the manual should
be replaced with a number, for example:

--8<---------------cut here---------------start------------->8---
$ git send-email --annotate -v2 \
      --to=ISSUE_NUMBER <at> debbugs.gnu.org -1
--8<---------------cut here---------------end--------------->8---

It's used in the [PATCH v...] part of the title.

Thanks




Information forwarded to guix-patches <at> gnu.org:
bug#64957; Package guix-patches. (Sun, 30 Jul 2023 22:23:02 GMT) Full text and rfc822 format available.

Message #14 received at 64957 <at> debbugs.gnu.org (full text, mbox):

From: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
To: 64957 <at> debbugs.gnu.org
Cc: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
Subject: [PATCH v2] gnu: Add fontmake.
Date: Mon, 31 Jul 2023 00:22:17 +0200
* gnu/packages/fontutils.scm (fontmake): New variable.
---
Hi Hilton,

I've corrected the commit message and moved `propagated-inputs' to
`inputs'. Also, 'guix lint' does not issue any more warnings aside form the
version bump.

Regarding your concern for the version bump, its currently not possible to
update to `fontamke <at> 3.6.1', this is blocked by the versions of the dependencies;
for example, the latest versions we have available on the official guix channel
of `python-glyphslib' is 6.0.7 and `fontmake <at> 3.6.1' requires
`python-glyphslib <at> 6.2.5'.

Thanks for your feedback.
Have a good night.

 gnu/packages/fontutils.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 153602b4b4..57a4b3d2af 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -776,6 +776,33 @@ (define-public psautohint-font-data
        ;; Code Pro, Source Serif Pro, all available under the same license.
        (license license:silofl1.1)))))
 
+(define-public fontmake
+  (package
+    (name "fontmake")
+    (version "3.4.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "fontmake" version ".zip"))
+              (sha256
+               (base32
+                "0fc5c9csjpy1aa4c03p7nvjgls5wjplhmmf42n0cmvrlh6cm7wl3"))))
+    (build-system python-build-system)
+    (inputs (list python-attrs
+                  python-fontmath
+                  python-fonttools-minimal
+                  python-glyphslib
+                  python-ufo2ft
+                  python-ufolib2))
+    (native-inputs (list unzip python-setuptools-scm))
+    (home-page "https://github.com/googlefonts/fontmake")
+    (synopsis
+     "Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)")
+    (description
+     "Fontmake compiles fonts from various sources (.glyphs, .ufo,designspace)
+into binaries (.otf, .ttf).  You can use it to create static instances and
+variable fonts.")
+    (license license:asl2.0)))
+
 (define-public psautohint
   (package
     (name "psautohint")

base-commit: c173819c8e5235ce02d60b79bd88b10023a7c614
prerequisite-patch-id: c56db9fa7fc4e07452dea53f2d450bd83abbbc1a
prerequisite-patch-id: 3e6318d61f2efa01f4435152f2139eef8f72572c
prerequisite-patch-id: 1b23c59bab92820a1e102137909922f4d71ed8f9
prerequisite-patch-id: 78a291411f8d86beabbf6d49df0cc78702ad4e65
prerequisite-patch-id: 579224b39cae7869ce11e2e8dba046b5eef606c7
prerequisite-patch-id: f1f62fd5d83d603ca35c17071e615352e90753e3
prerequisite-patch-id: 1843bca37f83e494be67c24e975727fb1fe1248c
prerequisite-patch-id: 5cc0d6cd16ae2ab21c444ed9cabfeea5615e8cda
prerequisite-patch-id: 92a3fab6e4174a4d4877fc5b426752df81e4df39
prerequisite-patch-id: ebf3fd3a8bb02f7dc5cdf504f63d5028b29fe69e
-- 
2.39.2





Information forwarded to guix-patches <at> gnu.org:
bug#64957; Package guix-patches. (Mon, 31 Jul 2023 07:27:02 GMT) Full text and rfc822 format available.

Message #17 received at 64957 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
Cc: 64957 <at> debbugs.gnu.org
Subject: Re: [bug#64957] [PATCH v2] gnu: Add fontmake.
Date: Mon, 31 Jul 2023 15:25:38 +0800
On Mon, 31 Jul 2023 06:22:17 +0800,
Sergio Pastor Pérez wrote:
>
> * gnu/packages/fontutils.scm (fontmake): New variable.
> ---
[...]
> Regarding your concern for the version bump, its currently not possible to
> update to `fontamke <at> 3.6.1', this is blocked by the versions of the dependencies;
> for example, the latest versions we have available on the official guix channel
> of `python-glyphslib' is 6.0.7 and `fontmake <at> 3.6.1' requires
> `python-glyphslib <at> 6.2.5'.

Ah, I see.  A newer python-ufolib2 is also required, which requires a
newer python-attrs.  I'll look into updating python-attrs.

I'm not sure if an old version will be accepted, so you may have to
wait a bit. ;)

> +    (inputs (list python-attrs
> +                  python-fontmath
> +                  python-fonttools-minimal
> +                  python-glyphslib
> +                  python-ufo2ft
> +                  python-ufolib2))

Most of the dependencies here have been propagated by python-glyphslib
and its dependencies.  It's sufficient to keeping only
`python-fontmath' and `python-glyphslib'.

But you can also keep them all if you prefer, in which case I'd
suggest replacing `python-fonttools-minimal' with `python-fonttools',
since the latter has been propagated by python-glyphslib.

> +    (synopsis
> +     "Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)")
> +    (description
> +     "Fontmake compiles fonts from various sources (.glyphs, .ufo,designspace)
> +into binaries (.otf, .ttf).  You can use it to create static instances and
> +variable fonts.")

"@code{.glyphs}, @code{.ufo}, @code{designspace}" and so on.

How about changing "You can use it" to "It can be used" ?

> +    (license license:asl2.0)))
> +
>  (define-public psautohint
>    (package
>      (name "psautohint")
>
> base-commit: c173819c8e5235ce02d60b79bd88b10023a7c614
> prerequisite-patch-id: c56db9fa7fc4e07452dea53f2d450bd83abbbc1a
> prerequisite-patch-id: 3e6318d61f2efa01f4435152f2139eef8f72572c
> prerequisite-patch-id: 1b23c59bab92820a1e102137909922f4d71ed8f9
> prerequisite-patch-id: 78a291411f8d86beabbf6d49df0cc78702ad4e65
> prerequisite-patch-id: 579224b39cae7869ce11e2e8dba046b5eef606c7
> prerequisite-patch-id: f1f62fd5d83d603ca35c17071e615352e90753e3
> prerequisite-patch-id: 1843bca37f83e494be67c24e975727fb1fe1248c
> prerequisite-patch-id: 5cc0d6cd16ae2ab21c444ed9cabfeea5615e8cda
> prerequisite-patch-id: 92a3fab6e4174a4d4877fc5b426752df81e4df39
> prerequisite-patch-id: ebf3fd3a8bb02f7dc5cdf504f63d5028b29fe69e
> --
> 2.39.2

Overall LGTM, except for the version thing.

Thanks




Information forwarded to guix-patches <at> gnu.org:
bug#64957; Package guix-patches. (Mon, 31 Jul 2023 08:31:01 GMT) Full text and rfc822 format available.

Message #20 received at 64957 <at> debbugs.gnu.org (full text, mbox):

From: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
To: 64957 <at> debbugs.gnu.org
Cc: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
Subject: [PATCH v3] gnu: Add fontmake.
Date: Mon, 31 Jul 2023 10:29:34 +0200
* gnu/packages/fontutils.scm (fontmake): New variable.
---
Good morning Hilton.

Here you have the changes applied. I've reduced the `inputs' field to
`python-fontmath' and `python-glyphslib'. Also, the personal sentence has been
changed to impersonal tense.

 gnu/packages/fontutils.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 153602b4b4..9a65538599 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -776,6 +776,29 @@ (define-public psautohint-font-data
        ;; Code Pro, Source Serif Pro, all available under the same license.
        (license license:silofl1.1)))))
 
+(define-public fontmake
+  (package
+    (name "fontmake")
+    (version "3.4.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "fontmake" version ".zip"))
+              (sha256
+               (base32
+                "0fc5c9csjpy1aa4c03p7nvjgls5wjplhmmf42n0cmvrlh6cm7wl3"))))
+    (build-system python-build-system)
+    (inputs (list python-fontmath
+                  python-glyphslib))
+    (native-inputs (list unzip python-setuptools-scm))
+    (home-page "https://github.com/googlefonts/fontmake")
+    (synopsis
+     "Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)")
+    (description
+     "Fontmake compiles fonts from various sources (.glyphs, .ufo,designspace)
+into binaries (.otf, .ttf).  It can be used to create static instances and
+variable fonts.")
+    (license license:asl2.0)))
+
 (define-public psautohint
   (package
     (name "psautohint")

base-commit: c173819c8e5235ce02d60b79bd88b10023a7c614
prerequisite-patch-id: c56db9fa7fc4e07452dea53f2d450bd83abbbc1a
prerequisite-patch-id: 3e6318d61f2efa01f4435152f2139eef8f72572c
prerequisite-patch-id: 1b23c59bab92820a1e102137909922f4d71ed8f9
prerequisite-patch-id: 78a291411f8d86beabbf6d49df0cc78702ad4e65
prerequisite-patch-id: 579224b39cae7869ce11e2e8dba046b5eef606c7
prerequisite-patch-id: f1f62fd5d83d603ca35c17071e615352e90753e3
prerequisite-patch-id: 1843bca37f83e494be67c24e975727fb1fe1248c
prerequisite-patch-id: 5cc0d6cd16ae2ab21c444ed9cabfeea5615e8cda
prerequisite-patch-id: 92a3fab6e4174a4d4877fc5b426752df81e4df39
prerequisite-patch-id: ebf3fd3a8bb02f7dc5cdf504f63d5028b29fe69e
-- 
2.39.2





Information forwarded to guix-patches <at> gnu.org:
bug#64957; Package guix-patches. (Mon, 31 Jul 2023 16:40:01 GMT) Full text and rfc822 format available.

Message #23 received at 64957 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
Cc: 64957 <at> debbugs.gnu.org
Subject: Re: [bug#64957] [PATCH v3] gnu: Add fontmake.
Date: Tue, 01 Aug 2023 00:39:21 +0800
On Mon, 31 Jul 2023 16:29:34 +0800,
Sergio Pastor Pérez wrote:
>
> * gnu/packages/fontutils.scm (fontmake): New variable.
> ---
> Good morning Hilton.
>
> Here you have the changes applied. I've reduced the `inputs' field to
> `python-fontmath' and `python-glyphslib'. Also, the personal sentence has been
> changed to impersonal tense.
>
>  gnu/packages/fontutils.scm | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
>
> diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
> index 153602b4b4..9a65538599 100644
> --- a/gnu/packages/fontutils.scm
> +++ b/gnu/packages/fontutils.scm
> @@ -776,6 +776,29 @@ (define-public psautohint-font-data
>         ;; Code Pro, Source Serif Pro, all available under the same license.
>         (license license:silofl1.1)))))
>
> +(define-public fontmake
> +  (package
> +    (name "fontmake")
> +    (version "3.4.0")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (pypi-uri "fontmake" version ".zip"))
> +              (sha256
> +               (base32
> +                "0fc5c9csjpy1aa4c03p7nvjgls5wjplhmmf42n0cmvrlh6cm7wl3"))))
> +    (build-system python-build-system)
> +    (inputs (list python-fontmath
> +                  python-glyphslib))
> +    (native-inputs (list unzip python-setuptools-scm))
> +    (home-page "https://github.com/googlefonts/fontmake")
> +    (synopsis
> +     "Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)")
> +    (description
> +     "Fontmake compiles fonts from various sources (.glyphs, .ufo,designspace)
> +into binaries (.otf, .ttf).  It can be used to create static instances and
> +variable fonts.")
> +    (license license:asl2.0)))


I mentioned the description in V2, but you might not notice it.

Synopsis and description use TexInfo format and @code{...} can be seen
as `...` in Markdown, you can run `./pre-inst-env guix show fontmake'
to see if it's displayed correctly.

--8<---------------cut here---------------start------------->8---
     "Fontmake compiles fonts from various sources (@code{.glyphs}, @code{.ufo},
@code{designspace}) into binaries (@code{.otf}, @code{.ttf}).  It can be used to
create static instances and variable fonts."
--8<---------------cut here---------------end--------------->8---

I have sent a patch to update python-attrs[1], I'll ping you once it's
available in master.

Thanks

[1] <https://issues.guix.gnu.org/64973>




Information forwarded to guix-patches <at> gnu.org:
bug#64957; Package guix-patches. (Tue, 01 Aug 2023 07:07:01 GMT) Full text and rfc822 format available.

Message #26 received at 64957 <at> debbugs.gnu.org (full text, mbox):

From: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
To: 64957 <at> debbugs.gnu.org
Cc: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
Subject: [PATCH v4] gnu: Add fontmake.
Date: Tue,  1 Aug 2023 09:05:57 +0200
* gnu/packages/fontutils.scm (fontmake): New variable.
---
Good morning Hilton,

I had missed the markdown suggestion from V2. Here you have the format
corrected. I will wait for the update of `python-attrs'.

Have a nice day.

 gnu/packages/fontutils.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 153602b4b4..3ee3dc76ab 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -776,6 +776,28 @@ (define-public psautohint-font-data
        ;; Code Pro, Source Serif Pro, all available under the same license.
        (license license:silofl1.1)))))
 
+(define-public fontmake
+  (package
+    (name "fontmake")
+    (version "3.4.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "fontmake" version ".zip"))
+              (sha256
+               (base32
+                "0fc5c9csjpy1aa4c03p7nvjgls5wjplhmmf42n0cmvrlh6cm7wl3"))))
+    (build-system python-build-system)
+    (inputs (list python-fontmath python-glyphslib))
+    (native-inputs (list unzip python-setuptools-scm))
+    (home-page "https://github.com/googlefonts/fontmake")
+    (synopsis
+     "Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)")
+    (description
+     "Fontmake compiles fonts from various sources (@code{.glyphs}, @code{.ufo},
+@code{designspace}) into binaries (@code{.otf}, @code{.ttf}).  It can be used to
+create static instances and variable fonts.")
+    (license license:asl2.0)))
+
 (define-public psautohint
   (package
     (name "psautohint")

base-commit: 55e89da207b95230e5f2a8176acd9cc9b43971ff
prerequisite-patch-id: c56db9fa7fc4e07452dea53f2d450bd83abbbc1a
prerequisite-patch-id: 3e6318d61f2efa01f4435152f2139eef8f72572c
prerequisite-patch-id: 1b23c59bab92820a1e102137909922f4d71ed8f9
prerequisite-patch-id: 78a291411f8d86beabbf6d49df0cc78702ad4e65
prerequisite-patch-id: 579224b39cae7869ce11e2e8dba046b5eef606c7
prerequisite-patch-id: f1f62fd5d83d603ca35c17071e615352e90753e3
prerequisite-patch-id: 1843bca37f83e494be67c24e975727fb1fe1248c
prerequisite-patch-id: 5cc0d6cd16ae2ab21c444ed9cabfeea5615e8cda
prerequisite-patch-id: 92a3fab6e4174a4d4877fc5b426752df81e4df39
prerequisite-patch-id: ebf3fd3a8bb02f7dc5cdf504f63d5028b29fe69e
-- 
2.39.2





Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Wed, 06 Sep 2023 04:53:02 GMT) Full text and rfc822 format available.

Notification sent to Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>:
bug acknowledged by developer. (Wed, 06 Sep 2023 04:53:02 GMT) Full text and rfc822 format available.

Message #31 received at 64957-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
Cc: 64957-done <at> debbugs.gnu.org
Subject: Re: bug#64957: [PATCH] gnu: Add python-fontmake.
Date: Wed, 06 Sep 2023 00:52:06 -0400
Hi,

Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es> writes:

> * gnu/packages/fontutils.scm (fontmake): New variable.

Installed!

-- 
Thanks,
Maxim




Information forwarded to guix-patches <at> gnu.org:
bug#64957; Package guix-patches. (Wed, 06 Sep 2023 05:26:02 GMT) Full text and rfc822 format available.

Message #34 received at 64957 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: help-debbugs <at> gnu.org (GNU bug Tracking System)
Cc: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>,
 64957 <at> debbugs.gnu.org
Subject: Re: bug#64957: [PATCH] gnu: Add python-fontmake.
Date: Wed, 06 Sep 2023 01:25:15 -0400
reopen 64957
quit

Hi,

[...]

> Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es> writes:
>
>> * gnu/packages/fontutils.scm (fontmake): New variable.

I spoke too soon; the tests do not appear to run.  Here's an updated
package:

--8<---------------cut here---------------start------------->8---
(define-public fontmake
  (package
    (name "fontmake")
    (version "3.7.1")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "fontmake" version ".zip"))
              (sha256
               (base32
                "0ib7fvwgwazm7qfj4a3rkqkb40xfbj40rnvsmkvl2isg2ky3vg9m"))))
    (build-system pyproject-build-system)
    (inputs (list python-fontmath python-glyphslib))
    (native-inputs (list unzip pytest python-setuptools-scm))
    (home-page "https://github.com/googlefonts/fontmake")
    (synopsis
     "Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)")
    (description
     "Fontmake compiles fonts from various sources (@code{.glyphs}, @code{.ufo},
@code{designspace}) into binaries (@code{.otf}, @code{.ttf}).  It can be used to
create static instances and variable fonts.")
    (license license:asl2.0)))
--8<---------------cut here---------------end--------------->8---

Unfortunately there are quite a few test failures to analyze.  Would
you be motivated to do so?  The end result would be a better package.

-- 
Thanks,
Maxim




Information forwarded to guix-patches <at> gnu.org:
bug#64957; Package guix-patches. (Wed, 06 Sep 2023 17:28:02 GMT) Full text and rfc822 format available.

Message #37 received at 64957 <at> debbugs.gnu.org (full text, mbox):

From: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 64957 <at> debbugs.gnu.org, GNU bug Tracking System <help-debbugs <at> gnu.org>
Subject: Re: bug#64957: [PATCH] gnu: Add python-fontmake.
Date: Wed, 06 Sep 2023 19:22:36 +0200
Hi, again.

When I submitted the package I thought the checks where passing at least
it was building without errors for version 3.4.0.  I see that you are
using another build system and you updated the version. I'm trying your
patch out and I see the failures during the check phase.

At first sight I would not know how to fix any of this. I'm not very
experienced with python in general. If I find the problem I will send an
updated revision.

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

> reopen 64957
> quit
>
> Hi,
>
> [...]
>
>> Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es> writes:
>>
>>> * gnu/packages/fontutils.scm (fontmake): New variable.
>
> I spoke too soon; the tests do not appear to run.  Here's an updated
> package:
>
> --8<---------------cut here---------------start------------->8---
> (define-public fontmake
>   (package
>     (name "fontmake")
>     (version "3.7.1")
>     (source (origin
>               (method url-fetch)
>               (uri (pypi-uri "fontmake" version ".zip"))
>               (sha256
>                (base32
>                 "0ib7fvwgwazm7qfj4a3rkqkb40xfbj40rnvsmkvl2isg2ky3vg9m"))))
>     (build-system pyproject-build-system)
>     (inputs (list python-fontmath python-glyphslib))
>     (native-inputs (list unzip pytest python-setuptools-scm))
>     (home-page "https://github.com/googlefonts/fontmake")
>     (synopsis
>      "Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)")
>     (description
>      "Fontmake compiles fonts from various sources (@code{.glyphs}, @code{.ufo},
> @code{designspace}) into binaries (@code{.otf}, @code{.ttf}).  It can be used to
> create static instances and variable fonts.")
>     (license license:asl2.0)))
> --8<---------------cut here---------------end--------------->8---
>
> Unfortunately there are quite a few test failures to analyze.  Would
> you be motivated to do so?  The end result would be a better package.





Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 06 Sep 2023 18:37:02 GMT) Full text and rfc822 format available.

Removed tag(s) patch. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 06 Sep 2023 18:37:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#64957; Package guix-patches. (Wed, 06 Sep 2023 18:44:01 GMT) Full text and rfc822 format available.

Message #44 received at 64957 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>
Cc: 64957 <at> debbugs.gnu.org
Subject: Re: bug#64957: [PATCH] gnu: Add python-fontmake.
Date: Wed, 06 Sep 2023 14:43:48 -0400
Hi Sergio,

Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es> writes:

> Hi, again.
>
> When I submitted the package I thought the checks where passing at least
> it was building without errors for version 3.4.0.  I see that you are
> using another build system and you updated the version. I'm trying your
> patch out and I see the failures during the check phase.
>
> At first sight I would not know how to fix any of this. I'm not very
> experienced with python in general. If I find the problem I will send an
> updated revision.

It's common for the PyPI archives to lack the tests files and/or for the
old build system (python-build-system) to not successfully run the test
suite and report success (which is what happens with 3.4.0 it seems).
So the package was "building" fine, but that doesn't mean much for
Python since it's interpreted -- running the test suite is important.

Often looking at what upstream does in their CI (github workflow for
example) can provide cues.  Or sometimes the test may try to access the
network.  Or sometimes they embed paths such as '/bin/sh' in the middle
of a file.  Or sometimes they need a writeable HOME, etc.

It's sometimes a bit of an effort to get the test suite going, but it's
what gives us confidence that it works well.

-- 
Thanks,
Maxim




This bug report was last modified 1 year and 287 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.