-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
52 lines (48 loc) · 1.96 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
import os
from typing import List
from setuptools import setup, find_packages
from setuptools.command.install import install
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
with open(os.path.join(here, "VERSION"), encoding="utf-8") as f:
__version__ = f.read().strip()
with open(os.path.join(here, "replacy", "version.py"), "w+", encoding="utf-8") as v:
v.write("# CHANGES HERE HAVE NO EFFECT: ../VERSION is the source of truth\n")
v.write(f'__version__ = "{__version__}"')
"""
requirementPath = os.path.abspath("./requirements.txt")
install_requires: List[str] = []
if os.path.isfile(requirementPath):
with open(requirementPath) as f:
install_requires = f.read().splitlines()
"""
setup(
name="replacy",
description="ReplaCy = spaCy Matcher + pyInflect. Create rules, correct sentences.",
packages=find_packages(),
package_data={"replacy": ["resources/*"]},
include_package_data=True,
author="Qordoba",
author_email="Sam Havens <sam.havens@qordoba.com>, Melisa Stal <melisa@qordoba.com>",
url="https://github.com/Qordobacode/replaCy",
version=__version__,
license="MIT",
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=["pyfunctional>=1.2.0", "jsonschema>=2.6.0", "lemminflect==0.2.1"],
python_requires=">=3.5",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Text Processing :: Linguistic",
"Typing :: Typed",
],
)