-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
30 lines (23 loc) · 900 Bytes
/
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
"""Setup for project."""
import os
from setuptools import setup
def get_install_requires():
"""Get requirements for module in workdir."""
with open("requirements.txt", "r") as requirements_file:
res = requirements_file.readlines()
return [req.split(" ", maxsplit=1)[0] for req in res if req]
def read(fname):
"""Read content of file with given name in current workdir."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="thoth-issue-predicator",
version="0.0.1",
description="This project contains a predictive model that can, "
"based on data aggregated, spot patterns causing "
"issues in software stacks",
author="Tomas Janicek",
author_email="[email protected]",
packages=["thoth_issue_predictor"],
install_requires=get_install_requires(),
long_description=read("README.md"),
)