-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
59 lines (53 loc) · 1.92 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
import sys
import setuptools
from setuptools.command.test import test as TestCommand
from pickhost import __version__ as version
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
# Disable screen capturing because it doesn't work with
# text-based UI
self.test_args = ['-s']
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
with open('README.md', 'r') as f:
long_description = f.read()
setuptools.setup(
name='pickhost',
version=version,
author='Huan Xiong',
author_email='[email protected]',
description=('A simple SSH host manager in terminal'),
entry_points={
'console_scripts': ['pickhost=pickhost.__main__:main']
},
packages=['pickhost'],
url='https://github.com/rayx/pickhost',
license='GPLv3+',
platforms='unix-like',
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=['pypick>=0.2.0'],
tests_require=['pytest',
'flake8'],
test_suite='tests',
cmdclass={'test': PyTest},
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: System Administrators',
'Topic :: Software Development :: Libraries :: Python Modules',
'Environment :: Console',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'])