-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
32 lines (27 loc) · 926 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
31
32
import setuptools
def parse_requirements(filename):
"""
Parse a requirements pip file returning the list of required packages.
It exclude commented lines.
Args:
filename: pip requirements requirements
Returns:
list of required package with versions constraints
"""
with open(filename) as file:
parsed_requirements = file.read().splitlines()
parsed_requirements = [line.strip()
for line in parsed_requirements
if not ((line.strip()[0] == "#"))]
return parsed_requirements
with open("README.md", "r") as readme:
long_description = readme.read()
setuptools.setup(
name="text_classification",
version="0.0.1",
author="Bogdan Kostić",
description="A text classification library.",
long_description=long_description,
packages=setuptools.find_packages(),
python_requires=">=3.6"
)