-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
87 lines (75 loc) · 2.64 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import os.path
import sys
import warnings
try:
from setuptools import find_packages, setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import find_packages, setup
from geofrontcli.version import VERSION
def readme():
try:
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
return f.read()
except (IOError, OSError):
return ''
install_requires = {
'certifi',
'iterfzf >= 0.2.0.16.7, < 1.0.0.0.0',
'keyring >= 3.7',
'logging-spinner >= 0.2.1',
'six',
}
win32_requires = {
'pypiwin32',
}
if sys.platform == 'win32':
install_requires.update(win32_requires)
setup(
name='geofront-cli',
version=VERSION,
description='CLI client for Geofront, a simple SSH key management server',
long_description=readme(),
url='https://github.com/spoqa/geofront-cli',
author='Hong Minhee',
author_email='hongminhee' '@' 'member.fsf.org',
maintainer='Spoqa',
maintainer_email='dev' '@' 'spoqa.com',
license='GPLv3 or later',
packages=find_packages(exclude=['tests']),
entry_points='''
[console_scripts]
geofront-cli = geofrontcli.cli:main
gfg = geofrontcli.cli:main_go
''',
install_requires=list(install_requires),
extras_require={
":sys_platform=='win32'": list(win32_requires),
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', # noqa: E501
'Operating System :: POSIX',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: System :: Systems Administration :: Authentication/Directory', # noqa: E501
'Topic :: Utilities'
]
)
if 'bdist_wheel' in sys.argv and (
below_py34_requires.issubset(install_requires) or
win32_requires.issubset(install_requires)):
warnings.warn('Building wheels on Windows is not recommended since '
'platform-specific dependencies can be merged into common '
'dependencies:\n' +
'\n'.join('- ' + i for i in install_requires))