forked from softlayer/swftp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (57 loc) · 1.87 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
#!/usr/bin/python
from setuptools import setup
import sys
name = 'swftp'
short_description = 'SwFTP is an FTP and SFTP interface for Openstack 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=name,
version='1.0.4',
author='Kevin McDonald',
author_email='kmcdonald@softlayer.com',
license='MIT',
url='https://github.com/softlayer/swftp',
description=short_description,
long_description=long_description,
packages=['swftp', 'swftp/sftp', 'swftp/ftp', 'twisted.plugins'],
install_requires=requires,
entry_points={
'console_scripts': ['swftp-ftp = swftp.ftp.service:run',
'swftp-sftp = swftp.sftp.service:run'],
},
package_data={
'twisted.plugins': ['twisted/plugins/swftp_ftp.py',
'twisted/plugins/swftp_sftp.py']},
data_files=[
('', ['README.md']),
('/etc/swftp', ['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))