-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (53 loc) · 1.81 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
# nifty - pull in __version__ from the code itself
from syd import __version__
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['--ignore', 'build']
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
def readme():
with open('README.rst') as f:
return f.read()
requires = [pkg for pkg in open('requirements.txt').readlines()]
requires_test = [pkg for pkg in open('requirements-travis.txt').readlines()]
setup(name='syd',
version=__version__,
description='Manages TACC Reactor and App alias mappings and ACLs',
long_description=readme(),
url='http://github.com/SD2E/aliases-cli',
author='Matthew Vaughn',
author_email='[email protected]',
license='BSD',
zip_safe=False,
install_requires=requires,
entry_points={
'console_scripts': [
'syd=syd.cli:main',
],
},
packages=find_packages(exclude=['docs', 'tests*']),
classifiers=[
'Intended Audience :: Developers',
'Topic :: Utilities',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
],
keywords='cli',
cmdclass={'test': PyTest},
tests_require=requires_test,
test_suite='tests')