-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
40 lines (35 loc) · 995 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
33
34
35
36
37
38
39
40
from setuptools import setup, find_packages
import os
from os import path
# Model package name
NAME = 'squad_3_ad_data_science'
# Current Version
VERSION = os.environ.get('APP_VERSION', 'latest')
# Dependecies for the package
with open('requirements.txt') as r:
DEPENDENCIES = [
dep for dep in map(str.strip, r.readlines())
if all([not dep.startswith("#"),
not dep.endswith("#dev"),
len(dep) > 0])
]
# Project descrpition
with open("README.md") as f:
LONG_DESCRIPTION = f.read()
setup(
name=NAME,
version=VERSION,
description='<@description>',
long_description=LONG_DESCRIPTION,
author='',
author_email='[email protected]',
license='MIT',
packages=find_packages(exclude=("tests", "docs")),
entry_points={
'console_scripts': [
'{name}={name}.main:cli'.format(name=NAME)
],
},
# external packages as dependencies
install_requires=DEPENDENCIES
)