-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
37 lines (35 loc) · 1.2 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
from setuptools import find_packages, setup
from forensicfit import __version__ as version
with open("requirements.txt") as f:
requirements = []
extras = {}
reqs = f.read().splitlines()
optional = False
for req in reqs:
if len(req) == 0:
continue
if req.startswith("#"):
req = req.replace("#", "").strip()
if "optional" in req.lower():
section = req.lower().replace('optional', '').strip()
extras[section] = []
optional = True
else:
extras[section].append(req)
else:
requirements.append(req)
setup(
name="forensicfit",
version=version,
description="A Python library for forensic image comparision.",
author='Pedram Tavadze',
author_email='[email protected]',
url="https://github.com/romerogroup/ForensicFit",
license="LICENSE.txt",
install_requires=requirements,
extras_require=extras,
scripts=["scripts/create_metadata.py",
'scripts/preprocess_bin_based.py',
'scripts/store_on_db.py'],
packages=find_packages(exclude=["docs", 'sphinx']),
)