-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
41 lines (31 loc) · 945 Bytes
/
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
import os
from setuptools import setup, find_packages
ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
def _read_about():
with open(os.path.join(ROOT_DIR, 'spacy_hunspell/_about.py'), 'r') as f:
about = {}
exec(f.read(), about)
return about
def _read_readme():
with open(os.path.join(ROOT_DIR, 'README.md'), 'r') as f:
readme = f.read()
return readme
if __name__ == '__main__':
about = _read_about()
readme = _read_readme()
setup(
name='spacy_hunspell',
version=about['__version__'],
description='spaCy extension for Hunspell.',
long_description=readme,
url=about['__url__'],
author=about['__author__'],
author_email=about['__email__'],
license='MIT',
packages=find_packages(),
install_requires=[
'spacy>=2.0.0',
'hunspell==0.5.0',
],
zip_safe=False,
)