-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
70 lines (61 loc) · 1.94 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from codecs import open
from os.path import abspath, dirname, join
from unittest import TestLoader
from setuptools import find_packages, setup
from src import __version__
#from subprocess import call
#from setuptools import Command, find_packages, setup
#from pip.req import parse_requirements
THIS_DIR = abspath(dirname(__file__))
with open(join(THIS_DIR, 'README.md'), encoding='utf-8') as file:
LONG_DESCRIPTION = file.read()
'''
class RunTests(Command):
"""Run all tests."""
description = 'run tests'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
"""Run all tests!"""
errno = call(['py.test', '--cov=carme', '--cov-report=term-missing'])
raise SystemExit(errno)
'''
def test_suite():
"""runs the test suite"""
return TestLoader().discover('tests')
setup(
name='carme',
version='0.0.1',
description='An opinionated AI stack built for Kubernetes by default',
long_description=LONG_DESCRIPTION,
url='https://github.com/carme/carme',
author='Jason Kuruzovich',
author_email='[email protected]',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
keywords='kubernetes analytics jupyterhub airflow',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
install_requires=["click", "ruamel.yaml", "validators", "nbformat", "nbconvert"],
include_package_data=True,
extras_require={
'test': ['coverage', 'pytest', 'pytest-cov'],
},
entry_points={
'console_scripts': [
'carme=src.cli.cli:carme'
],
},
# cmdclass = {'test': RunTests},
test_suite='tests',
)