Skip to content

Commit 333c97d

Browse files
authored
Merge pull request #113 from aeturrell/fontfix
switching to google fonts for ci/cd
2 parents fead8db + 514fc09 commit 333c97d

3 files changed

Lines changed: 15 additions & 14 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ jobs:
4444
4545
- name: install special fonts
4646
run: |
47-
mkdir -p /usr/share/fonts/truetype/ &&
48-
wget https://www.wfonts.com/download/data/2015/10/08/varta/varta.zip &&
49-
unzip varta.zip &&
50-
install -m644 *.ttf /usr/share/fonts/truetype/ &&
51-
rm *.ttf
52-
rm varta.zip
47+
sudo mkdir -p /usr/share/fonts/truetype/ &&
48+
wget -O "Varta[wght].ttf" "https://github.com/google/fonts/raw/main/ofl/varta/Varta%5Bwght%5D.ttf" &&
49+
sudo install -m644 "Varta[wght].ttf" /usr/share/fonts/truetype/ &&
50+
rm "Varta[wght].ttf" &&
51+
sudo fc-cache -f
5352
5453
- name: install text models
5554
run: |

‎.github/workflows/tests.yml‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,11 @@ jobs:
5252
5353
- name: install special fonts
5454
run: |
55-
mkdir -p /usr/share/fonts/truetype/ &&
56-
wget https://www.wfonts.com/download/data/2015/10/08/varta/varta.zip &&
57-
unzip varta.zip &&
58-
install -m644 *.ttf /usr/share/fonts/truetype/ &&
59-
rm *.ttf
60-
rm varta.zip
55+
sudo mkdir -p /usr/share/fonts/truetype/ &&
56+
wget -O "Varta[wght].ttf" "https://github.com/google/fonts/raw/main/ofl/varta/Varta%5Bwght%5D.ttf" &&
57+
sudo install -m644 "Varta[wght].ttf" /usr/share/fonts/truetype/ &&
58+
rm "Varta[wght].ttf" &&
59+
sudo fc-cache -f
6160
6261
- name: install text models
6362
run: |

‎geo-intro.ipynb‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,9 +1025,12 @@
10251025
"metadata": {},
10261026
"outputs": [],
10271027
"source": [
1028+
"# Nominatim (OpenStreetMap) is the provider here; it requires a user agent\n",
10281029
"boros_df[[\"geometry\", \"address\"]] = gpd.tools.geocode(\n",
1029-
" boros_df.boro_name,\n",
1030-
" provider=\"photon\",\n",
1030+
" boros_df.boro_name + \", New York\",\n",
1031+
" provider=\"nominatim\",\n",
1032+
" user_agent=\"coding-for-economists/1.0\",\n",
1033+
" timeout=10,\n",
10311034
").set_geometry(\"geometry\")\n",
10321035
"boros_df"
10331036
]

0 commit comments

Comments
 (0)