forked from python-fedex-devs/python-fedex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·79 lines (66 loc) · 2.73 KB
/
setup.py
File metadata and controls
executable file
·79 lines (66 loc) · 2.73 KB
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
#!/usr/bin/env python
"""
python-fedex
Copyright (C) 2009 Gregory Taylor
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from distutils.core import setup, Command
from zipfile import ZipFile, ZIP_STORED
import os
import fedex
LONG_DESCRIPTION = \
"""A light wrapper around Fedex's Web Services SOAP API using suds."""
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
KEYWORDS = 'fedex soap suds wrapper'
class zip_docs(Command):
description = "Zip the docs directory in preparation for uploading to PyPi."
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
filename = "python-fedex-docs-%s.zip" % fedex.VERSION
file = open(filename, 'w')
zfile = ZipFile(file, 'w', ZIP_STORED)
for file in os.listdir('docs'):
if file != '.svn':
zfile.write(os.path.join('docs', file),
arcname=file)
zfile.close()
setup(name='fedex',
version=fedex.VERSION,
description='Fedex Web Services API wrapper.',
long_description=LONG_DESCRIPTION,
author='Gregory Taylor',
author_email='snagglepants@gmail.com.com',
url='http://code.google.com/p/python-fedex/',
download_url='http://pypi.python.org/pypi/fedex/',
packages=['fedex', 'fedex.services', 'fedex.printers'],
package_dir={'fedex': 'fedex'},
package_data={'fedex': ['wsdl/*.wsdl', 'wsdl/test_server_wsdl/*.wsdl']},
platforms=['Platform Independent'],
license='GPLv3',
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
requires=['suds'],
install_requires=['suds'],
cmdclass={'zip_docs': zip_docs},
)