-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·46 lines (41 loc) · 1.23 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
import os
import re
from glob import glob
from setuptools import find_packages, setup
data_files = []
for root, dirs, files in os.walk("configuration"):
data_files.append(
(os.path.relpath(root, "configuration"), [os.path.join(root, f) for f in files])
)
# declare your scripts:
# scripts in bin/ with a shebang containing python will be
# recognized automatically
scripts = []
for fname in glob("bin/*"):
with open(fname, "r") as fh:
if re.search(r"^#!.*python", fh.readline()):
scripts.append(fname)
with open("requirements.txt") as f:
dependencies = [line for line in f]
setup(
name="ReFinED",
version="1.0",
description="Entity Linking via fine-grained entity typing",
author="Amazon Alexa AI",
author_email="[email protected]",
# declare your packages
packages=find_packages(where="src", exclude=("test",)),
package_dir={"": "src"},
install_requires=dependencies,
include_package_data=True,
# include data files
data_files=data_files,
test_command="none",
doc_command="none",
# Enable build-time format checking
check_format=False,
# Enable type checking
test_mypy=False,
# Enable linting at build time
test_flake8=False,
)