-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
56 lines (44 loc) · 1.33 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
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = ['tests/']
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import sys, pytest
errcode = pytest.main(self.pytest_args)
sys.exit(errcode)
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='music_app',
version='0.0.1',
description='Generate a list of 10 trending songs from r/listentothis',
long_description=readme,
authors='Ben Dauer, Adrian Hintermaier, Jason Meeks, Tyler Phillips, Anubhav Yadav',
url='https://github.com/Mester/demo-day-vikings',
license=license,
packages=['music_app'],
install_requires=[
'Flask>=0.11.1'
],
tests_require=[
'pytest==2.9.2',
'pytest-cov==2.2.1',
'coverage==4.0.3',
'tox==2.3.1'
],
entry_points={
'console_scripts':[
'update_json = music_app.get_json:main'
]
},
cmdclass={'test': PyTest},
)