forked from softlayer/swftp
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
73 lines (67 loc) · 2.18 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
#!/usr/bin/python
from setuptools import setup, find_packages
import sys
from swftp import VERSION
short_description = ('An FTP and SFTP interface for Openstack Object Storage'
'(swift)')
long_description = short_description
try:
long_description = open('README.md').read()
except:
pass
requires = ['twisted >= 12.1', 'pyopenssl', 'pycrypto', 'pyasn1', 'psutil']
if sys.version_info < (2, 7):
requires.append('ordereddict')
setup(
name='swftp',
version=VERSION,
author='Kevin McDonald',
author_email='[email protected]',
license='MIT',
url='https://github.com/softlayer/swftp',
description=short_description,
long_description=long_description,
packages=find_packages() + ['twisted.plugins'],
install_requires=requires,
entry_points={
'console_scripts': ['swftp-ftp = swftp.ftp.service:run',
'swftp-sftp = swftp.sftp.service:run',
'swftp-smtp = swftp.smtp.service:run'],
},
package_data={
'twisted.plugins': ['twisted/plugins/swftp_ftp.py',
'twisted/plugins/swftp_sftp.py',
'twisted/plugins/swftp_smtp.py'],
'swftp.test': [
'test-sftp.conf',
'test-ftp.conf',
'test_id_rsa',
'test_id_rsa.pub',
],
},
data_files=[
('', ['README.md']),
('', ['etc/swftp/swftp.conf.sample']),
],
zip_safe=False,
classifiers=[
'Environment :: Console',
'Operating System :: OS Independent',
'Environment :: No Input/Output (Daemon)',
'Framework :: Twisted',
'License :: OSI Approved :: MIT License',
'Topic :: Internet :: File Transfer Protocol (FTP)',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
# Make Twisted regenerate the dropin.cache, if possible. This is necessary
# because in a site-wide install, dropin.cache cannot be rewritten by
# normal users.
try:
from twisted.plugin import IPlugin, getPlugins
except ImportError:
pass
else:
list(getPlugins(IPlugin))