-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (45 loc) · 1.76 KB
/
Copy pathsetup.py
File metadata and controls
54 lines (45 loc) · 1.76 KB
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
# setup.py for the PyHyphen hyphenation package
# (c) 2007-2021 Dr. Leo (fhaxbox66@gmail.com) and other developers
import io
import os
from setuptools import setup, Extension, find_packages
HERE = os.path.abspath(os.path.dirname(__file__))
def load_requirements():
with io.open(
os.path.join(HERE, "requirements", "base.in"), "rt", encoding="utf-8"
) as f:
return [line.strip() for line in f if is_requirement(line)]
def is_requirement(line):
return not (line.strip() == "" or line.startswith("#"))
setup(
name="PyHyphen",
author="Dr. Leo & Regis Behmo",
author_email="fhaxbox66@googlemail.com",
url="https://github.com/dr-leo/PyHyphen",
description="The hyphenation library of LibreOffice and FireFox wrapped for Python",
long_description=open('README.rst', 'rt').read(),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: C',
'Topic :: Text Processing',
'Topic :: Text Processing :: Linguistic'
],
packages=find_packages(where='src', include=['hyphen']),
package_dir={'': 'src'},
ext_modules=[
Extension('hyphen.hnj', ['lib/hnjmodule.c',
'lib/hyphen.c',
'lib/hnjalloc.c'],
include_dirs=['lib'],
py_limited_api=True)
],
install_requires=load_requirements(),
include_package_data=True,
)