forked from Lukasa/requests-ftp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (46 loc) · 1.3 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
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
APP_NAME = 'requests-ftp'
VERSION = '0.3.0'
AUTHOR = 'Cory Benfield'
LICENSE = 'Apache 2.0'
try:
LONG_DESC = open('README.rst').read()
except IOError:
LONG_DESC = ''
# This wrapper stolen wholesale from Requests.
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
requires = ['requests']
settings = dict()
settings.update(
name=APP_NAME,
version=VERSION,
description='FTP Transport Adapter for Requests.',
long_description=LONG_DESC,
author=AUTHOR,
author_email='cory@lukasa.co.uk',
url='http://github.com/Lukasa/requests-ftp',
packages=['requests_ftp'],
package_data={'': ['LICENSE', 'AUTHORS', 'README.rst']},
package_dir={'requests_ftp': 'requests_ftp'},
include_package_data=True,
install_requires=requires,
license=LICENSE,
classifiers=(
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
),
)
setup(**settings)