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 committed Nov 14, 2024
2 parents e65a1a5 + 62d9eec commit 2aec9c9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 27 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
33 changes: 12 additions & 21 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.11
# 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 @@ -71,9 +71,7 @@ deprecated==1.2.14
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,11 +84,11 @@ fontmath==0.9.4
# mutatormath
# ufo2ft
# ufoprocessor
fontparts==0.12.2
fontparts==0.12.3
# via ufoprocessor
fontpens==0.2.4
# via defcon
fonttools[lxml,repacker,ufo,unicode,woff]==4.54.1
fonttools[lxml,repacker,ufo,unicode,woff]==4.55.0
# via
# -r resources/scripts/requirements.in
# afdko
Expand All @@ -117,7 +115,6 @@ fonttools[lxml,repacker,ufo,unicode,woff]==4.54.1
# ufolib2
# ufomerge
# ufoprocessor
# vfblib
# vharfbuzz
# vttlib
fs==2.4.16
Expand All @@ -138,10 +135,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 @@ -189,7 +185,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 @@ -266,9 +262,7 @@ tqdm==4.67.0
ttfautohint-py==0.5.1
# via gftools
typing-extensions==4.12.2
# via
# pygithub
# vfblib
# via pygithub
ufo2ft[cffsubr,compreffor]==3.3.1
# via
# fontmake
Expand All @@ -281,14 +275,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,8 +298,6 @@ urllib3==2.2.3
# via
# pygithub
# requests
vfblib==0.7.1
# via babelfont
vharfbuzz==0.3.1
# via gftools
vttlib==0.12.0
Expand Down

0 comments on commit 2aec9c9

Please sign in to comment.