-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·61 lines (48 loc) · 1.97 KB
/
setup.py
File metadata and controls
executable file
·61 lines (48 loc) · 1.97 KB
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
55
56
57
58
59
60
61
# from pathlib import Path
# import re
from setuptools import find_packages, setup
''' TODO requirements
def stream_requirements(fd):
"""For a given requirements file descriptor, generate lines of
distribution requirements, ignoring comments and chained requirement
files.
"""
for line in fd:
cleaned = re.sub(r'#.*$', '', line).strip()
if cleaned and not cleaned.startswith('-r'):
yield cleaned
# ---------------------------------------------------------------------------- #
# Requirements #
# ---------------------------------------------------------------------------- #
ROOT_PATH = Path(__file__).parent
README_PATH = ROOT_PATH / 'README.md'
REQUIREMENTS_PATH = ROOT_PATH / 'requirements' / 'main.txt'
REQUIREMENTS_TEST_PATH = ROOT_PATH / 'requirements' / 'test.txt'
with REQUIREMENTS_PATH.open() as requirements_file:
REQUIREMENTS = list(stream_requirements(requirements_file))
with REQUIREMENTS_TEST_PATH.open() as test_requirements_file:
REQUIREMENTS_TEST = REQUIREMENTS[:]
REQUIREMENTS_TEST.extend(stream_requirements(test_requirements_file))
'''
# ---------------------------------------------------------------------------- #
# SETUP #
# ---------------------------------------------------------------------------- #
setup(
name='autodefer',
version='0.0.1',
description="Automation of deferral from AI to fraud analysts.",
keywords=['deferral', 'experts'],
author="Feedzai",
url="https://gitlab.feedzai.com/fate/learning-to-defer",
package_dir={'': 'src'},
packages=find_packages('src', exclude=['tests', 'tests.*']),
package_data={
'': ['*.yaml, *.yml'],
},
include_package_data=True,
python_requires='>=3.7.*',
# install_requires=REQUIREMENTS,
zip_safe=False,
# test_suite='tests',
# tests_require=REQUIREMENTS_TEST,
)