-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
61 lines (49 loc) · 1.76 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
import os
import setuptools
if getattr(setuptools, "__version__", "0") < "39":
# v36.4.0+ needed to automatically include README.md in packaging
# v38.6.0+ needed for long_description_content_type in setup()
raise EnvironmentError(
"Your setuptools is too old. "
"Please run 'pip install --upgrade pip setuptools'."
)
_THIS_DIR = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(_THIS_DIR, "README.md")) as f:
_LONG_DESCRIPTION = f.read().strip()
__version__ = "0.1"
def main() -> None:
setuptools.setup(
name="hayes2009",
version=__version__,
author="Kyle Gorman",
author_email="[email protected]",
description="Phonological feature charts from Hayes 2009",
long_description=_LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/kylebgorman/hayes2009",
keywords=[
"computational linguistics",
"natural language processing",
"phonology",
"phonetics",
"speech",
"language",
],
license="Apache 2.0",
py_modules=["hayes2009"],
python_requires=">=3.7",
zip_safe=False,
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Development Status :: 4 - Beta",
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Text Processing :: Linguistic",
],
)
if __name__ == "__main__":
main()