Skip to content

Commit

Permalink
Merge pull request #1114 from googlefonts/req
Browse files Browse the repository at this point in the history
Update requirements and instructions to update
  • Loading branch information
rsheeter authored Nov 14, 2024
2 parents e65a1a5 + 62d9eec commit e3201c7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 25 deletions.
19 changes: 13 additions & 6 deletions fontc_crater/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,20 @@ To run in CI mode locally to play with the html output:
When run in CI, we want to ensure that we have complete control over the set of
python pacakges we are comparing against; to ensure this we use `pip-compile`
(part of [`pip-tools`]) to generate a pinned `requirements.txt` from a
`requirements.in` file in the root `resources/scripts` directory. To update the
set of python packages in use, you need to update this file:
`requirements.in` file in the root `resources/scripts` directory.

- make sure you have pip-tools installed (`python -m pip install pip-tools`)
- delete `resources/scripts/requirements.txt`
- run `pip-compile resources/scripts/requirements.in`
- commit the new `requirements.txt` file.
To update the set of python packages in use, you need to update this file:

```shell
# Make sure you have pip-tools
$ python -m pip install pip-tools

# Rebuild the file
# Remove it to force a complete update rather than minimal
$ rm -f resources/scripts/requirements.txt && pip-compile resources/scripts/requirements.in

# Commit updated file
```

```shell
# clone [email protected]:googlefonts/fontc_crater.git somewhere, we'll assume at ../fontc_crater
Expand Down
36 changes: 17 additions & 19 deletions resources/scripts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile resources/scripts/requirements.in
Expand All @@ -21,7 +21,7 @@ attrs==24.2.0
# ufolib2
axisregistry==0.4.11
# via gftools
babelfont==3.0.5
babelfont==3.1.0
# via gftools
beautifulsoup4==4.12.3
# via gftools
Expand Down Expand Up @@ -68,12 +68,12 @@ defcon[lxml,pens]==0.10.3
# ufoprocessor
deprecated==1.2.14
# via pygithub
exceptiongroup==1.2.2
# via cattrs
font-v==2.1.0
# via gftools
fontfeatures==1.8.0
# via
# babelfont
# gftools
# via gftools
fontmake[json,repacker]==3.10.0
# via
# -r resources/scripts/requirements.in
Expand All @@ -86,7 +86,7 @@ fontmath==0.9.4
# mutatormath
# ufo2ft
# ufoprocessor
fontparts==0.12.2
fontparts==0.12.3
# via ufoprocessor
fontpens==0.2.4
# via defcon
Expand Down Expand Up @@ -117,7 +117,6 @@ fonttools[lxml,repacker,ufo,unicode,woff]==4.54.1
# ufolib2
# ufomerge
# ufoprocessor
# vfblib
# vharfbuzz
# vttlib
fs==2.4.16
Expand All @@ -138,10 +137,9 @@ gitpython==3.1.43
# via font-v
glyphsets==1.0.0
# via gftools
glyphslib==6.9.4
glyphslib==6.9.5
# via
# -r resources/scripts/requirements.in
# babelfont
# bumpfontversion
# fontmake
# gftools
Expand Down Expand Up @@ -172,7 +170,7 @@ mutatormath==3.0.1
# via ufoprocessor
nanoemoji==0.15.1
# via gftools
networkx==3.4.2
networkx==3.2.1
# via gftools
ninja==1.11.1.1
# via
Expand All @@ -189,7 +187,7 @@ orjson==3.10.11
# via
# babelfont
# ufolib2
packaging==24.1
packaging==24.2
# via gftools
picosvg==0.22.1
# via nanoemoji
Expand Down Expand Up @@ -267,8 +265,9 @@ ttfautohint-py==0.5.1
# via gftools
typing-extensions==4.12.2
# via
# cattrs
# pygithub
# vfblib
# rich
ufo2ft[cffsubr,compreffor]==3.3.1
# via
# fontmake
Expand All @@ -281,14 +280,13 @@ ufolib2[json]==0.16.1
# glyphslib
# nanoemoji
# ufomerge
# vfblib
# vttlib
ufomerge==1.8.2
# via gftools
ufonormalizer==0.6.2
# via
# afdko
# vfblib
# babelfont
# gftools
ufonormalizer==0.6.2
# via afdko
ufoprocessor==1.13.1
# via afdko
uharfbuzz==0.42.0
Expand All @@ -305,14 +303,14 @@ urllib3==2.2.3
# via
# pygithub
# requests
vfblib==0.7.1
# via babelfont
vharfbuzz==0.3.1
# via gftools
vttlib==0.12.0
# via gftools
wrapt==1.16.0
# via deprecated
zipp==3.21.0
# via importlib-resources
zopfli==0.2.3.post1
# via
# fonttools
Expand Down

0 comments on commit e3201c7

Please sign in to comment.