aboutsummaryrefslogtreecommitdiff
path: root/print/py-fontbakery/files/patch-setup.py
blob: e526bdb89fd8cd8b294ce23580456b397a479626 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- setup.py.orig	2023-09-12 12:07:05 UTC
+++ setup.py
@@ -55,7 +55,7 @@ googlefonts_extras = (
         "gflanguages>=0.3.0",  # 0.3.0 had an api simplification/update
         # (see https://github.com/googlefonts/gflanguages/pull/7)
         "glyphsets>=0.5.0",
-        "protobuf>=3.7.0, <4",  # 3.7.0 fixed a bug on parsing some METADATA.pb files.
+        "protobuf>=3.7.0",  # 3.7.0 fixed a bug on parsing some METADATA.pb files.
         # We cannot use v4 because our protobuf files have been compiled with v3.
         # (see https://github.com/fonttools/fontbakery/issues/2200)
         f"vharfbuzz{VHARFBUZZ_VERSION}",
@@ -96,7 +96,7 @@ all_extras = set(
 
 setup(
     name="fontbakery",
-    use_scm_version={"write_to": "Lib/fontbakery/_version.py"},
+    use_scm_version={"fallback_version": "%%PORTVERSION%%", "write_to": "Lib/fontbakery/_version.py"},
     url="https://github.com/fonttools/fontbakery/",
     description="A font quality assurance tool for everyone",
     long_description=readme,
@@ -148,7 +148,7 @@ setup(
         # core dependencies
         "babelfont",
         f"fontTools{FONTTOOLS_VERSION}",
-        "freetype-py!=2.4.0",  # Avoiding 2.4.0 due to seg-fault described at
+        "freetype-py",  # Avoiding 2.4.0 due to seg-fault described at
         # https://github.com/fonttools/fontbakery/issues/4143
         "opentypespec",
         "opentype-sanitizer>=7.1.9",  # 7.1.9 fixes caret value format = 3 bug