forked from explosion/spacymoji
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
42 lines (34 loc) · 1.06 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
#!/usr/bin/env python
# coding: utf8
from __future__ import unicode_literals
from pathlib import Path
from setuptools import setup, find_packages
def setup_package():
package_name = 'spacymoji'
root = Path(__file__).parent.resolve()
# Read in package meta from about.py
about_path = root / package_name / 'about.py'
with about_path.open('r', encoding='utf8') as f:
about = {}
exec(f.read(), about)
# Get readme
readme_path = root / 'README.rst'
with readme_path.open('r', encoding='utf8') as f:
readme = f.read()
setup(
name=package_name,
description=about['__summary__'],
long_description=readme,
author=about['__author__'],
author_email=about['__email__'],
url=about['__uri__'],
version=about['__version__'],
license=about['__license__'],
packages=find_packages(),
install_requires=[
'spacy>=2.1.3,<3.0.0',
'emoji>=0.4.5,<1.0.0'],
zip_safe=False,
)
if __name__ == '__main__':
setup_package()