Skip to content

Commit

Permalink
working on the full list of font repos.
Browse files Browse the repository at this point in the history
Extracting the list into a separate file: fontprojects.py
(issue fonttools#1241)
  • Loading branch information
felipesanches committed Mar 29, 2017
1 parent c857b1f commit 26a3bd6
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 72 deletions.
1 change: 1 addition & 0 deletions dashboard/containers/dispatcher/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ RUN apt-get update
RUN pip install pika

ADD dispatch-jobs.py /
ADD fontprojects.py /

CMD ["python2", "dispatch-jobs.py"]
80 changes: 8 additions & 72 deletions dashboard/containers/dispatcher/dispatch-jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,77 +5,7 @@
import json
import time
import os

messages = [
{"GIT_REPO_URL":"https://github.com/andrew-paglinawan/QuicksandFamily.git",
"FONTFILE_PREFIX": "fonts/Quicksand-"},
{"GIT_REPO_URL":"https://github.com/impallari/Cabin.git",
"FONTFILE_PREFIX": "fonts/TTF/Cabin-"},
{"GIT_REPO_URL":"https://github.com/cadsondemak/chonburi.git",
"FONTFILE_PREFIX": "fonts/Chonburi-"},
{"GIT_REPO_URL":"https://github.com/alefalefalef/Varela-Round-Hebrew.git",
"FONTFILE_PREFIX": "fonts/VarelaRound-"},
{"GIT_REPO_URL":"https://github.com/10four/Bhavuka.git",
"FONTFILE_PREFIX": "Bhavuka-"},
{"GIT_REPO_URL":"https://github.com/alexeiva/poiretone.git",
"FONTFILE_PREFIX": "fonts/ttf/PoiretOne-"},
{"GIT_REPO_URL":"https://github.com/huertatipografica/sarala.git",
"FONTFILE_PREFIX": "font/Sarala-"},
{"GIT_REPO_URL":"https://github.com/anexasajoop/cambay.git",
"FONTFILE_PREFIX": "cambay/Font files/Unhinted/CambayDevanagari-"},
{"GIT_REPO_URL":"https://github.com/cadsondemak/itim.git",
"FONTFILE_PREFIX": "fonts/Itim-"},
{"GIT_REPO_URL":"https://github.com/cadsondemak/kanit.git",
"FONTFILE_PREFIX": "font/Kanit-"},
{"GIT_REPO_URL":"https://github.com/cadsondemak/sriracha.git",
"FONTFILE_PREFIX": "fonts/Sriracha-"},
{"GIT_REPO_URL":"https://github.com/huertatipografica/sura.git",
"FONTFILE_PREFIX": "fonts/Sura-"},
{"GIT_REPO_URL":"https://github.com/CatharsisFonts/Cormorant.git",
"FONTFILE_PREFIX": "1. TrueType Font Files/Cormorant-"},
{"GIT_REPO_URL":"https://github.com/christiannaths/Redacted-Font.git",
"FONTFILE_PREFIX": "src/Redacted-"},
{"GIT_REPO_URL":"https://github.com/clauseggers/Inknut-Antiqua.git",
"FONTFILE_PREFIX": "TTF-OTF/InknutAntiqua-"},
{"GIT_REPO_URL":"https://github.com/cyrealtype/Adamina.git",
"FONTFILE_PREFIX": "fonts/Adamina-"},
{"GIT_REPO_URL":"https://github.com/cyrealtype/Alike.git",
"FONTFILE_PREFIX": "Alike-"},
{"GIT_REPO_URL":"https://github.com/cyrealtype/Federant.git",
"FONTFILE_PREFIX": "Federant-"},
{"GIT_REPO_URL":"https://github.com/cyrealtype/Sumana.git",
"FONTFILE_PREFIX": "Sumana-"},
{"GIT_REPO_URL":"https://github.com/DunwichType/RhodiumLibre.git",
"FONTFILE_PREFIX": "RhodiumLibre-"},
{"GIT_REPO_URL":"https://github.com/EbenSorkin/Asar.git",
"FONTFILE_PREFIX": "Asar-"},
{"GIT_REPO_URL":"https://github.com/EbenSorkin/Atomic-Age.git",
"FONTFILE_PREFIX": "fonts/ttf/AtomicAge-"},
{"GIT_REPO_URL":"https://github.com/EbenSorkin/Basic.git",
"FONTFILE_PREFIX": "Basic-"},
{"GIT_REPO_URL":"https://github.com/EbenSorkin/Dekko.git",
"FONTFILE_PREFIX": "Dekko-"},
{"GIT_REPO_URL":"https://github.com/EbenSorkin/Kavoon.git",
"FONTFILE_PREFIX": "Kavoon-"},
{"GIT_REPO_URL":"https://github.com/EbenSorkin/Varta.git",
"FONTFILE_PREFIX": "Varta-"},
{"GIT_REPO_URL":"https://github.com/erinmclaughlin/Khula.git",
"FONTFILE_PREFIX": "ttf_hinted/Khula-"},
{"GIT_REPO_URL":"https://github.com/etunni/Amita.git",
"FONTFILE_PREFIX": "TTF/Amita-"},
{"GIT_REPO_URL":"https://github.com/etunni/Arya.git",
"FONTFILE_PREFIX": "TTF/Arya-"},
{"GIT_REPO_URL":"https://github.com/etunni/glegoo.git",
"FONTFILE_PREFIX": "Glegoo-"},
{"GIT_REPO_URL":"https://github.com/etunni/kurale.git",
"FONTFILE_PREFIX": "fonts/Kurale-"},
{"GIT_REPO_URL":"https://github.com/googlefonts/Homenaje.git",
"FONTFILE_PREFIX": "fonts/Homenaje-"},
{"GIT_REPO_URL":"https://github.com/googlefonts/LatoGFVersion.git",
"FONTFILE_PREFIX": "fonts/Lato-"},
{"GIT_REPO_URL":"https://github.com/impallari/Raleway.git",
"FONTFILE_PREFIX": "fonts/v3.000 Fontlab/TTF/Raleway-"}
]
from fontprojects import git_repos

def main():
# We'll retry until we get a connection and deliver the messages
Expand All @@ -86,7 +16,13 @@ def main():
channel = connection.channel()

print ("Dispatching {} messages...".format(len(messages)), file=sys.stderr)
for message in messages:
for entry in git_repos:
message = {
"FAMILY_NAME": entry[0],
"GIT_REPO_URL": entry[1],
"FONTFILES_PREFIX": entry[2]
}

print ("Adding {} to the queue.".format(message["GIT_REPO_URL"]), file=sys.stderr)
channel.basic_publish(exchange='',
routing_key='font_repo_queue',
Expand Down
38 changes: 38 additions & 0 deletions dashboard/containers/dispatcher/fontprojects.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
git_repos = [
["Adamina", "https://github.com/cyrealtype/Adamina.git", "fonts/Adamina-"],
["Alike", "https://github.com/cyrealtype/Alike.git", "Alike-"],
["Amita", "https://github.com/etunni/Amita.git", "TTF/Amita-"],
["Arya", "https://github.com/etunni/Arya.git", "TTF/Arya-"],
["Asar", "https://github.com/EbenSorkin/Asar.git", "Asar-"],
["Atomic Age", "https://github.com/EbenSorkin/Atomic-Age.git", "fonts/ttf/AtomicAge-"],
["Basic", "https://github.com/EbenSorkin/Basic.git", "Basic-"],
["Bhavuka", "https://github.com/10four/Bhavuka.git", "Bhavuka-"],
["Cabin", "https://github.com/impallari/Cabin.git", "fonts/TTF/Cabin-"],
["Cambay", "https://github.com/anexasajoop/cambay.git", "cambay/Font files/Unhinted/CambayDevanagari-"],
["Chonburi", "https://github.com/cadsondemak/chonburi.git", "fonts/Chonburi-"],
["Cormorant", "https://github.com/CatharsisFonts/Cormorant.git", "1. TrueType Font Files/Cormorant-"],
["Dekko", "https://github.com/EbenSorkin/Dekko.git", "Dekko-"],
["Federant", "https://github.com/cyrealtype/Federant.git", "Federant-"],
["Glegoo", "https://github.com/etunni/glegoo.git", "Glegoo-"],
["Homenaje", "https://github.com/googlefonts/Homenaje.git", "fonts/Homenaje-"],
#{"Inconsolata", "https://github.com/google/fonts/tree/master/ofl/inconsolata", ""},
["Inknut Antiqua", "https://github.com/clauseggers/Inknut-Antiqua.git", "TTF-OTF/InknutAntiqua-"],
["Itim", "https://github.com/cadsondemak/itim.git", "fonts/Itim-"],
["Kanit", "https://github.com/cadsondemak/kanit.git", "font/Kanit-"],
["Kavoon", "https://github.com/EbenSorkin/Kavoon.git", "Kavoon-"],
["Khula", "https://github.com/erinmclaughlin/Khula.git", "ttf_hinted/Khula-"],
["Kurale", "https://github.com/etunni/kurale.git", "fonts/Kurale-"],
["Lato", "https://github.com/googlefonts/LatoGFVersion.git", "fonts/Lato-"],
["Poiret One", "https://github.com/alexeiva/poiretone.git", "fonts/ttf/PoiretOne-"],
["Quicksand", "https://github.com/andrew-paglinawan/QuicksandFamily.git", "fonts/Quicksand-"],
["Raleway", "https://github.com/impallari/Raleway.git", "fonts/v3.000 Fontlab/TTF/Raleway-"]
["Redacted", "https://github.com/christiannaths/Redacted-Font.git", "src/Redacted-"],
["Rhodium Libre", "https://github.com/DunwichType/RhodiumLibre.git", "RhodiumLibre-"],
["Sarala", "https://github.com/huertatipografica/sarala.git", "font/Sarala-"],
["Sriracha", "https://github.com/cadsondemak/sriracha.git", "fonts/Sriracha-"],
["Sumana", "https://github.com/cyrealtype/Sumana.git", "Sumana-"],
["Sura", "https://github.com/huertatipografica/sura.git", "fonts/Sura-"],
["Varela Round", "https://github.com/alefalefalef/Varela-Round-Hebrew.git", "fonts/VarelaRound-"],
["Varta", "https://github.com/EbenSorkin/Varta.git", "Varta-"],
]

0 comments on commit 26a3bd6

Please sign in to comment.