-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
50 lines (42 loc) · 1.17 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
38
39
40
41
42
43
44
45
46
47
48
49
50
# coding: utf-8
from setuptools import setup, find_packages
import os
from os import path
import asd
# Model package name
NAME = asd.__name__
# Default package dir
PKG_DIR = path.basename(path.dirname(asd.__file__))
# 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 + '-model',
version=VERSION,
description='Modelo de diagnóstico de autismo em crianças',
long_description=LONG_DESCRIPTION,
author='Manoel Vilela',
author_email='[email protected]',
license='MIT',
packages=find_packages(exclude=("tests", "docs")),
entry_points={
'console_scripts': [
'{name}={dir}.main:cli'.format(
name=NAME,
dir=PKG_DIR
)
],
},
# external packages as dependencies
install_requires=DEPENDENCIES
)