Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (47 sloc) 2.12 KB
import collections
MEI_GIT_SOURCE_DIR = "/path/to/music-encoding"
# Absolute path to a temporary holding spot for built schemas. This will be cleared every
# day of schemas that are older than 24h.
BUILT_SCHEMA_DIR = "/path/to/customeization/build"
# A secret (random) key for CSRF security. Can be anything.
SECRET_KEY = "putsomethinghere"
# Absolute path to the TEIC Stylesheets code
PATH_TO_TEI_STYLESHEETS = "/path/to/Stylesheets"
PATH_TO_GIT_BINARY = "/usr/bin/git"
# Optional
PATH_TO_SAXON_JAR = ""
PATH_TO_TRANG_JAR = ""
PATH_TO_JING = ""
PATH_TO_XMLLINT = "/usr/bin/xmllint"
RELEASES = (
("Latest Stable", "master"),
("Latest Development", "develop"),
("2013 v2.1.1", "b9dff53ad25203cfe43fa6b68eab6fad6d2a088e"),
("2012 v2.0.0", "1233176080667060f375ed11ce92d4994fd9326c")
)
# Do not customize these paths.
MEI_DRIVER_FILE = "source/driver.xml"
TEI_TO_RELAXNG_BIN = PATH_TO_TEI_STYLESHEETS + "/bin/teitorelaxng"
TEI_TO_COMPILEDODD_BIN = PATH_TO_TEI_STYLESHEETS + "/bin/teitoodd"
TEI_TO_DOCUMENTATION_BIN = PATH_TO_TEI_STYLESHEETS + "/bin/teitohtml"
MEI_ALL_FILE = "customizations/mei-all.xml"
MEI_NEUMES_FILE = "customizations/mei-Neumes.xml"
MEI_MENSURAL_FILE = "customizations/mei-Mensural.xml"
MEI_CMN_FILE = "customizations/mei-CMN.xml"
# Customizations
# The Dictionary key is a unique identifier
# The tuple is ("Human Readable Name", /customization/file.xml)
AVAILABLE_CUSTOMIZATIONS = (
('mei-all', ("MEI All", MEI_ALL_FILE)),
('mei-neumes', ("MEI Neumes (2013+)", MEI_NEUMES_FILE)),
("mei-mensural", ("MEI Mensural (2013+)", MEI_MENSURAL_FILE)),
("mei-cmn", ("MEI CMN (2013+)", MEI_CMN_FILE)),
("z-local-customization", ("Local Customization File", None)) # This should always sort last.
)
# Period (in hours) to clean up the build directory
BUILD_EXPIRY = 24
# only applicable if you're running a GH hook. This must match the remote secret.
GITHUB_SECRET_KEY=""
# pay no attention to the man behind the curtain... This just ensures these options are presented in the right order
RELEASES = collections.OrderedDict(RELEASES)
AVAILABLE_CUSTOMIZATIONS = collections.OrderedDict(AVAILABLE_CUSTOMIZATIONS)