-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
47 lines (38 loc) · 1.39 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
#!/bin/env python
import os
import string
from setuptools import setup, find_packages
NAME = 'Noto Sans CJK'
LICENSE = 'SIL Open Font License (OFL)'
ENTRY_POINT_NAME = NAME.lower()
IDENTIFIER = ''.join(char for char in ENTRY_POINT_NAME
if char in string.ascii_lowercase + string.digits)
PACKAGE_NAME = 'rinoh-typeface-{}'.format(IDENTIFIER)
PACKAGE_DIR = PACKAGE_NAME.replace('-', '_')
SETUP_PATH = os.path.dirname(os.path.abspath(__file__))
setup(
name=PACKAGE_NAME,
version='0.0.1',
packages=find_packages(),
package_data={PACKAGE_DIR: ['*.otf', '*.txt']},
install_requires=['rinohtype'],
entry_points={
'rinoh.typefaces':
['{} = {}:typeface'.format(ENTRY_POINT_NAME, PACKAGE_DIR)]
},
author='kumanoko',
description='Noto Sans CJK typeface',
long_description=open(os.path.join(SETUP_PATH, 'README.rst')).read(),
url='https://github.com/kumanoko24/rinoh-typeface-notosanscjk',
keywords='opentype font noto sans notosans rinohtype rino rinoh sphinx',
license=LICENSE,
classifiers = [
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Text Processing :: Fonts',
]
)