-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
executable file
·70 lines (64 loc) · 2.2 KB
/
setup.py
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, find_packages
needs_pytest = {'pytest', 'test'}.intersection(sys.argv)
pytest_runner = ['pytest_runner'] if needs_pytest else []
needs_wheel = {'bdist_wheel'}.intersection(sys.argv)
wheel = ['wheel'] if needs_wheel else []
with open('README.rst', 'r') as f:
long_description = f.read()
setup_params = dict(
name="ufo_extractor",
description="Tools for extracting data from font binaries into UFO objects.",
long_description=long_description,
author="Tal Leming",
author_email="[email protected]",
maintainer="Just van Rossum, Frederik Berlaen, Ben Kiel",
maintainer_email="[email protected]",
url="https://github.com/robotools/extractor",
license="MIT",
package_dir={"": "Lib"},
packages=find_packages("Lib"),
include_package_data=True,
use_scm_version={
"write_to": 'Lib/extractor/_version.py',
"write_to_template": '__version__ = "{version}"',
},
entry_points={
"console_scripts": [
"extractufo = extractor:cmdline",
]
},
setup_requires=pytest_runner + wheel + ['setuptools_scm'],
tests_require=[
'pytest>=3.0.3',
],
install_requires=[
"fonttools[ufo,lxml,woff,unicode,type1]>=4.17.0",
"fontFeatures",
],
extras_require={
"vfb": ["vfbLib>=0.7.1"],
"script": ["ufoLib2"],
},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: Multimedia :: Graphics :: Editors :: Vector-Based",
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
"Topic :: Multimedia :: Graphics",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Fonts",
],
python_requires='>=3.8',
zip_safe=True,
)
if __name__ == "__main__":
setup(**setup_params)