aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
blob: 5ccc40ce24c134ce9f15917bd8e710ba16de34fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python
# import sys
from setuptools import setup

try:
    import fontTools  # noqa
except:
    print("*** Warning: trufont requires FontTools, see:")
    print("    https://github.com/behdad/fonttools/")

try:
    import robofab  # noqa
except:
    print("*** Warning: trufont requires RoboFab (the python3-ufo3 branch), "
          "see:")
    print("    https://github.com/trufont/robofab")

try:
    import defcon  # noqa
except:
    print("*** Warning: trufont requires defcon (the python3-ufo3 branch), "
          "see:")
    print("    https://github.com/trufont/defcon")

# if "sdist" in sys.argv:
#    import os
#    import subprocess
#    import shutil
#    docFolder = os.path.join(os.getcwd(), "documentation")
#    # remove existing
#    doctrees = os.path.join(docFolder, "build", "doctrees")
#    if os.path.exists(doctrees):
#        shutil.rmtree(doctrees)
#    # compile
#    p = subprocess.Popen(["make", "html"], cwd=docFolder)
#    p.wait()
#    # remove doctrees
#    shutil.rmtree(doctrees)

setup(
    name="defconQt",
    version="0.2.0",
    description="Trufont, a cross-platform font editor (a set of Qt interface "
                "objects for working with font data).",
    author="Adrien Tétar",
    author_email="adri-from-59@hotmail.fr",
    url="http://trufont.github.io",
    license="GNU LGPL 2.1/GNU GPL v3",
    packages=[
        "defconQt",
        "defconQt.objects",
        "defconQt.pens",
        "defconQt.representationFactories",
        "defconQt.util",
    ],
    entry_points={
        "gui_scripts": [
            "trufont =  defconQt.__main__:main"
        ]
    },
    package_dir={"": "Lib"},
    platforms=["Linux", "Win32", "Mac OS X"],
    classifiers=[
        "Environment :: GUI",
        "Programming Language :: Python :: 3.4",
        "Intended Audience :: Developers",
        "Topic :: Text Processing :: Fonts",
    ],
    test_suite="tests",
)