-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
34 lines (28 loc) · 1.11 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
# author: Matt Clifford <[email protected]> <[email protected]>
from setuptools import setup, find_packages
def dependencies_from_file(file_path):
required = []
with open(file_path) as f:
for l in f.readlines():
l_c = l.strip()
# get not empty lines and ones that do not start with python
# comment "#" (preceded by any number of white spaces)
if l_c and not l_c.startswith('#'):
required.append(l_c)
return required
def get_long_description():
with open('README.md', encoding="utf-8") as f:
text = f.read()
return text
setup(name='deltas',
version='0.1',
packages=find_packages(),
install_requires=dependencies_from_file('requirements.txt'),
python_requires='>=3.10',
include_package_data=True,
author="Matt Clifford",
author_email="[email protected]",
description="deltas: learning the confidence bounds of linear classifier in feature space.",
long_description=get_long_description(),
long_description_content_type='text/markdown',
)