-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
63 lines (52 loc) · 1.58 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
import os
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
import jarg
here = os.path.abspath(os.path.dirname(__file__))
readme = open(os.path.join(here, 'README.rst')).read()
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Internet',
'Topic :: Utilities',
]
class PyTest(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
dist = setup(
name='jarg',
version='.'.join(jarg.__VERSION__),
license='MIT',
description="A shorthand data serialization/encoding tool",
long_description=readme,
classifiers=classifiers,
author="Justin Poliey",
author_email="justin.d.poliey@gmail.com",
url='http://github.com/jdp/jarg',
include_package_data=True,
zip_safe=False,
packages=['jarg'],
entry_points={
'console_scripts': ['jarg = jarg.cli:main'],
},
install_requires=['PyYAML>=3'],
tests_require=['pytest'],
cmdclass = {'test': PyTest},
)