# path of the compiled extension
buildPath = os.path.join(basePath, 'build')
extensionPath = os.path.join(buildPath, extensionFile)

# initiate the extension builder
B = ExtensionBundle()

# name of the extension
B.name = "myExtension"

# name of the developer
B.developer = 'RoboDocs'

# URL of the developer
B.developerURL = 'http://github.com/roboDocs'

# extension icon (file path or NSImage)
imagePath = os.path.join(resourcesPath, 'icon.png')
B.icon = imagePath

# version of the extension
B.version = '0.2.6'

# should the extension be launched at start-up?
B.launchAtStartUp = True

# script to be executed when RF starts
B.mainScript = 'hello.py'

# does the extension contain html help files?
import os
import shutil

from mojo.extensions import ExtensionBundle

lib_path = os.path.dirname(__file__)
extension_file = 'MeasureHandles.roboFontExt'
extension_path = os.path.join(os.path.join(lib_path, 'extension'), extension_file)
# extension_html = os.path.join(lib_path, "_docs")
extension_lib_path = os.path.join(extension_path, 'lib')

print 'building extension...',
B = ExtensionBundle()
B.name = u"Measure Handles Tool"
B.developer = u'Gustavo Ferreira, Johannes Breyer'
B.developerURL = 'http://hipertipo.com/'
B.version = "0.1"
B.mainScript = "MeasureHandlesTool.py"
B.launchAtStartUp = 1
B.addToMenu = []
B.requiresVersionMajor = '1'
B.requiresVersionMinor = '5'
B.infoDictionary["html"] = 0
B.infoDictionary["com.robofontmechanic.Mechanic"] = {
    "repository" : "johannesbreyer/HandleLength",
    "description" : "A tool to display length & angle of bezier handles in a glyph",
}
B.save(extension_path, libPath=lib_path, htmlPath=None, resourcesPath=None, pycOnly=False)
print 'done.\n'
Example #3
0
import os
from mojo.extensions import ExtensionBundle

basePath = os.path.dirname(__file__)
extensionPath = os.path.join(basePath, "SlightlyBetterTransform.roboFontExt")
libPath = os.path.join(basePath, "lib")
htmlPath = os.path.join(basePath, "html")
resourcesPath = os.path.join(basePath, "resources")

B = ExtensionBundle()

B.name = "Slightly Better Transform"
B.version = "1.2"
B.mainScript = "SlightlyBetterTransform.py"

B.developer = "Andy Clymer"
B.developerURL = 'http://www.andyclymer.com/'

B.launchAtStartUp = True
B.addToMenu = []
B.requiresVersionMajor = '3'
B.requiresVersionMinor = '1'
B.infoDictionary["html"] = True

B.save(extensionPath,
       libPath=libPath,
       htmlPath=htmlPath,
       resourcesPath=resourcesPath,
       pycOnly=False)

print("Done")
Example #4
0
installAfterBuild = True

basePath = os.path.dirname(__file__)
sourcePath = os.path.join(basePath, "source")
libPath = os.path.join(sourcePath, "code")
licensePath = os.path.join(basePath, "license.txt")
requirementsPath = os.path.join(basePath, "requirements.txt")
extensionFile = "%s.roboFontExt" % name
buildPath = os.path.join(basePath, "build")
extensionPath = os.path.join(buildPath, extensionFile)

B = ExtensionBundle()
B.name = name
B.developer = developer
B.developerURL = developerURL
B.version = version
B.launchAtStartUp = False
B.mainScript = "main.py"
B.html = os.path.exists(os.path.join(sourcePath, "documentation",
                                     "index.html"))
B.requiresVersionMajor = roboFontVersion.split(".")[0]
B.requiresVersionMinor = roboFontVersion.split(".")[1]
B.addToMenu = menuItems
if os.path.exists(licensePath):
    with open(licensePath) as license:
        B.license = license.read()
if os.path.exists(requirementsPath):
    with open(requirementsPath) as requirements:
        B.requirements = requirements.read()
from __future__ import print_function
import os
from mojo.extensions import ExtensionBundle

basePath = os.path.dirname(__file__)
extensionPath = os.path.join(basePath, "ThemeManager.roboFontExt")
libPath = os.path.join(basePath, "lib")
htmlPath = os.path.join(basePath, "html")
resourcesPath = os.path.join(basePath, "resources")

B = ExtensionBundle()

B.name = "Theme Manager"
B.version = "1.0.2"
B.developer = "Connor Davenport and Andy Clymer"
B.developerURL = 'http://www.connordavenport.com/ http://www.andyclymer.com/'

B.launchAtStartUp = False
B.addToMenu = [{
    'path': 'ThemeManager.py',
    'preferredName': 'Theme Manager...',
    'shortKey': '',
}]

B.requiresVersionMajor = '3'
B.requiresVersionMinor = '1'
B.infoDictionary["html"] = True

B.save(extensionPath,
       libPath=libPath,
       htmlPath=htmlPath,
Example #6
0
import shutil

from mojo.extensions import ExtensionBundle

lib_path = os.path.dirname(__file__)
extension_file = 'MeasureHandles.roboFontExt'
extension_path = os.path.join(os.path.join(lib_path, 'extension'),
                              extension_file)
# extension_html = os.path.join(lib_path, "_docs")
extension_lib_path = os.path.join(extension_path, 'lib')

print 'building extension...',
B = ExtensionBundle()
B.name = u"Measure Handles Tool"
B.developer = u'Gustavo Ferreira, Johannes Breyer'
B.developerURL = 'http://hipertipo.com/'
B.version = "0.1"
B.mainScript = "MeasureHandlesTool.py"
B.launchAtStartUp = 1
B.addToMenu = []
B.requiresVersionMajor = '1'
B.requiresVersionMinor = '5'
B.infoDictionary["html"] = 0
B.infoDictionary["com.robofontmechanic.Mechanic"] = {
    "repository": "johannesbreyer/HandleLength",
    "description":
    "A tool to display length & angle of bezier handles in a glyph",
}
B.save(extension_path,
       libPath=lib_path,
       htmlPath=None,
from mojo.extensions import ExtensionBundle

basePath = os.path.dirname(__file__)
sourcePath = os.path.join(basePath, 'source')
libPath = os.path.join(sourcePath, 'code')
htmlPath = os.path.join(sourcePath, 'docs')
resourcesPath = os.path.join(sourcePath, 'resources')
licensePath = os.path.join(basePath, 'LICENSE')
pycOnly = False
extensionFile = 'ShapeTool.roboFontExt'
extensionPath = os.path.join(basePath, extensionFile)

B = ExtensionBundle()
B.name = "ShapeTool"
B.developer = 'TypeMyType'
B.developerURL = 'http://www.typemytype.com'
B.icon = os.path.join(basePath, 'ShapeToolMechanicIcon.png')
B.version = '1.7'
B.launchAtStartUp = True
B.mainScript = 'drawShapesTool.py'
B.html = True
B.requiresVersionMajor = '3'
B.requiresVersionMinor = '2'
B.addToMenu = []

with open(licensePath) as license:
    B.license = license.read()

# copy README + images to extension docs
if not os.path.exists(htmlPath):
    os.makedirs(htmlPath)
Example #8
0
extensionPath = os.path.join(libPath, extensionFile)
extensionHtml = os.path.join(libPath, "_build/html/")

print "building RoboFab Docs extension...\n"

# remove existing extension
if os.path.exists(extensionPath):
    print "\tremoving old RoboFont extension..."
    shutil.rmtree(extensionPath)

# build new extension
print "\trebuilding the RoboFont extension..."
B = ExtensionBundle()
B.name = "RoboFab Docs"
B.developer = "RoboFab Developers"
B.developerURL = "http://robofab.org/"
B.version = "0.1"
B.mainScript = ""
B.launchAtStartUp = 0
B.addToMenu = [{
    "path" : "docs.py",
    "preferredName" : "RoboFab Docs",
    "shortKey" : "",
}]
B.requiresVersionMajor = "1"
B.requiresVersionMinor = "5"
B.infoDictionary["html"] = 0
B.infoDictionary["com.robofontmechanic.Mechanic"] = {
    "repository" : "roboDocs/roboFabDocs",
    "description" : "The RoboFab Documentation as a RoboFont extension",
}
extensionPath = os.path.join(libPath, extensionFile)
extensionHtml = os.path.join(libPath, "_build/html/")

print "building RoboFab Docs extension...\n"

# remove existing extension
if os.path.exists(extensionPath):
    print "\tremoving old RoboFont extension..."
    shutil.rmtree(extensionPath)

# build new extension
print "\trebuilding the RoboFont extension..."
B = ExtensionBundle()
B.name = "RoboFab Docs"
B.developer = "RoboFab Developers"
B.developerURL = "http://robofab.org/"
B.version = "0.1"
B.mainScript = ""
B.launchAtStartUp = 0
B.addToMenu = [{
    "path": "docs.py",
    "preferredName": "RoboFab Docs",
    "shortKey": "",
}]
B.requiresVersionMajor = "1"
B.requiresVersionMinor = "5"
B.infoDictionary["html"] = 0
B.infoDictionary["com.robofontmechanic.Mechanic"] = {
    "repository": "roboDocs/roboFabDocs",
    "description": "The RoboFab Documentation as a RoboFont extension",
}
# path of the compiled extension
buildPath = basePath
extensionPath = os.path.join(buildPath, extensionFile)

# initiate the extension builder
B = ExtensionBundle()

# name of the extension
B.name = "EditThatNextMaster"

# name of the developer
B.developer = 'LettError'

# URL of the developer
B.developerURL = 'http://letterror.com/tools.html'

if resourcesPath:
    # extension icon (file path or NSImage)
    imagePath = os.path.join(resourcesPath, 'icon.png')
    B.icon = imagePath

# version of the extension
B.version = '1.2.4'

# should the extension be launched at start-up?
B.launchAtStartUp = True

# script to be executed when RF starts
B.mainScript = 'startup.py'
# path of the compiled extension
buildPath = basePath
extensionPath = os.path.join(buildPath, extensionFile)

# initiate the extension builder
B = ExtensionBundle()

# name of the extension
B.name = "AngleRatioTool"

# name of the developer
B.developer = 'LettError'

# URL of the developer
B.developerURL = 'http://letterror.com'

if resourcesPath:
    # extension icon (file path or NSImage)
    imagePath = os.path.join(resourcesPath, 'icon.png')
    B.icon = imagePath

# version of the extension
B.version = '0.3'

# should the extension be launched at start-up?
B.launchAtStartUp = True

# script to be executed when RF starts
B.mainScript = 'angleRatioTool.py'
    mdSrc = f.read()
M = markdown.Markdown(extensions=[TocExtension(permalink=True), FencedCodeExtension()])
html = htmlTemplate % M.convert(mdSrc)

htmlFile = codecs.open(htmlIndexPath, mode="w", encoding="utf-8")
htmlFile.write(html)
htmlFile.close()

# ----------------
# create extension
# ----------------

B = ExtensionBundle()
B.name = "Glyph Construction"
B.developer = 'Frederk Berlaen'
B.developerURL = 'http://typemytype.com/'
B.version = '0.4'
B.launchAtStartUp = 0
B.mainScript = ''
B.html = True
B.requiresVersionMajor = '1'
B.requiresVersionMinor = '5'
B.addToMenu = [
    {
        'path'         : 'glyphConstructionUI.py',
        'preferredName': 'Glyph Builder',
        'shortKey'     : '',
    },
]

with codecs.open(licensePath, mode="r", encoding="utf-8") as f:
Example #13
0
from __future__ import absolute_import
from __future__ import print_function
import os
from mojo.extensions import ExtensionBundle

basePath = os.path.dirname(__file__)
extensionPath = os.path.join(basePath, "BezierSurgeon.roboFontExt")
libPath = os.path.join(basePath, "lib")
# htmlPath = os.path.join(basePath, "html")

B = ExtensionBundle()

B.name = "Bezier Surgeon"
B.version = "0.201"
B.developer = "Connor Davenport"
B.developerURL = 'http://www.connordavenport.com/'
B.mainScript = "BezierSurgeon.py"
B.launchAtStartUp = True
B.addToMenu = [{
    'path': 'BezierSurgeon.py',
    'preferredName': 'Bezier Surgeon',
    'shortKey': '',
}]

B.requiresVersionMajor = '3'
B.requiresVersionMinor = '1'
# B.infoDictionary["html"] = True

B.save(extensionPath, libPath=libPath, pycOnly=False)
# htmlPath=htmlPath,
print("Done")
Example #14
0
basePath = os.path.dirname(__file__)
libPath = os.path.join(basePath, 'LibExtension')
htmlPath = os.path.join(basePath, 'html')
licensePath = os.path.join(basePath, 'LICENSE')
readmePath = os.path.join(basePath, 'README.md')
extensionPath = os.path.join(basePath, 'GlyphConstruction.roboFontExt')
modulePath = os.path.join(basePath, "Lib", "glyphConstruction.py")

# ----------------
# create extension
# ----------------

B = ExtensionBundle()
B.name = "Glyph Construction"
B.developer = 'Frederk Berlaen'
B.developerURL = 'http://typemytype.com/'
B.version = '0.5'
B.launchAtStartUp = 0
B.mainScript = ''
B.html = True
B.requiresVersionMajor = '1'
B.requiresVersionMinor = '5'
B.addToMenu = [
    {
        'path'         : 'glyphConstructionUI.py',
        'preferredName': 'Glyph Builder',
        'shortKey'     : '',
    },
]

with open(licensePath, mode="r", encoding="utf-8") as f:
Example #15
0
import os
from mojo.extensions import ExtensionBundle


basePath = os.path.dirname(__file__)
extensionPath = os.path.join(basePath, "ControlBoard.roboFontExt")
libPath = os.path.join(basePath, "lib")
htmlPath = os.path.join(basePath, "html")
resourcesPath = os.path.join(basePath, "resources")

B = ExtensionBundle()

B.name = "ControlBoard"
B.version = "0.22b"
B.mainScript = "ControlBoard.py"

B.developer = "Andy Clymer"
B.developerURL = 'http://www.andyclymer.com/'

B.launchAtStartUp = False
B.addToMenu = [{"path" : "ControlBoard.py", "preferredName" : "ControlBoard", "shortKey" : ""}]
B.requiresVersionMajor = '1'
B.requiresVersionMinor = '5'
B.infoDictionary["html"] = True

B.save(extensionPath, libPath=libPath, htmlPath=htmlPath, resourcesPath=resourcesPath, pycOnly=False)

print "Done"
Example #16
0
from mojo.extensions import ExtensionBundle

basePath = os.path.dirname(__file__)
sourcePath = os.path.join(basePath, 'source')
libPath = os.path.join(sourcePath, 'code')
htmlPath = os.path.join(sourcePath, 'docs')
resourcesPath = os.path.join(sourcePath, 'resources')
licensePath = os.path.join(basePath, 'LICENSE')

extensionFile = 'ConstrainAngleTool.roboFontExt'
extensionPath = os.path.join(basePath, extensionFile)

B = ExtensionBundle()
B.name = "ConstrainAngleTool"
B.developer = 'RoboDocs'
B.developerURL = 'http://gitlab.com/robodocs'
B.icon = None  # os.path.join(basePath, 'ConstrainAngleToolMechanicIcon.png')
B.version = '0.1'
B.launchAtStartUp = True
B.mainScript = 'constrainAngleTool.py'
B.html = False
B.requiresVersionMajor = '3'
B.requiresVersionMinor = '3'
B.addToMenu = []

with open(licensePath) as license:
    B.license = license.read()

print('building extension...', end=' ')
B.save(extensionPath,
       libPath=libPath,