-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
54 lines (44 loc) · 1.58 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
from setuptools import setup, find_packages
import os
PATH_ROOT = os.path.dirname(__file__)
with open("README.md", "r") as fh:
long_description = fh.read()
def load_requirements(path_dir=PATH_ROOT, comment_char="#"):
with open(os.path.join(path_dir, "core_requirements.txt"), "r") as file:
lines = [ln.strip() for ln in file.readlines()]
reqs = []
for ln in lines:
# filer all comments
if comment_char in ln:
ln = ln[: ln.index(comment_char)]
if ln: # if requirement is not empty
reqs.append(ln)
return reqs
install_requires = load_requirements()
setup(
name="structured_prediction_baselines",
version="0.0.1",
author="Dhruvesh Patel",
author_email="[email protected]",
description="Implements baselines for tasks like POS tagging, NER and SRL.",
long_description=long_description,
long_description_content_type="text/markdown",
url="",
project_urls={
"Documentation": "",
"Source Code": "",
},
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests", "examples"]
),
package_data={"structure_prediction_baselines": ["py.typed"]},
install_requires=install_requires,
keywords=["pytorch", "AI", "ML", "Machine Learning", "Deep Learning"],
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha" "Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
python_requires=">=3.6",
)