forked from rdegges/skele-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (41 loc) · 1.22 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
"""Packaging settings."""
from codecs import open
from os.path import abspath, dirname, join
from subprocess import call
from setuptools import Command, find_packages, setup
from lykke import __version__
this_dir = abspath(dirname(__file__))
with open(join(this_dir, 'README.rst'), 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'])
raise SystemExit(errno)
setup(
name='lykke',
version=__version__,
description='Lykke exchange command line tool',
long_description=long_description,
url='https://github.com/pfeffer90/lykke',
author='Paul Pfeiffer',
author_email='[email protected]',
license='UNLICENSE',
keywords='cli',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=['docopt'],
tests_require=['coverage', 'pytest', 'pytest-cov'],
entry_points={
'console_scripts': [
'lykkex=lykke.cli:main',
],
},
cmdclass={'test': RunTests},
)