-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
executable file
·48 lines (40 loc) · 1.52 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
from pathlib import Path
import setuptools
from sys import platform
import os
PKG_DIR = os.path.dirname(os.path.abspath(__file__))
required = Path("requirements.txt").read_text().splitlines()
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
package_relative_path = Path(*Path(path).parts[2:], filename)
paths.append(str(package_relative_path))
return paths
if platform == "win32":
raise Exception("Windows is not supported yet.")
extra_files = package_files(Path('', 'src/dataqa', 'tests', 'resources'))
extra_files.extend(package_files(Path('', 'src/dataqa', 'config')))
extra_files.extend(["api/static/bundle.js",
"api/static/protractor.png",
"api/templates/index.html"])
setuptools.setup(
name="dataqa",
version="1.1.11",
author="DataQA.AI",
author_email="[email protected]",
description="Package to search and label documents",
python_requires='>=3.6',
install_requires=required,
package_dir={'': 'src'},
packages=setuptools.find_packages(where='src'),
package_data={"dataqa": extra_files},
entry_points={'console_scripts': 'dataqa=dataqa.entry_points.run_app:main'},
data_files=[('.', ["requirements.txt"])],
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9"
],
)