forked from soapteam/soapfish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
86 lines (75 loc) · 2.68 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools import find_packages, setup
import soapfish
if sys.version_info < (2, 7) or (3, 0) <= sys.version_info < (3, 3):
sys.stderr.write('soapfish requires Python 2.7 or 3.3+')
sys.exit(1)
def description(*filenames):
items = []
for filename in filenames:
with open(filename, 'r') as f:
items.append(f.read().strip())
return '\n\n'.join(items)
def requirements(*filenames):
items = []
for filename in filenames:
with open(filename, 'r') as f:
for line in f.readlines():
match = re.search('^([a-zA-Z][^#]+?)(\s*#.+)?$', line.strip())
if match:
items.append(match.group(1))
return items
setup(
name='soapfish',
version=soapfish.__version__,
author=soapfish.__author__,
author_email=soapfish.__email__,
maintainer='Felix Schwarz',
maintainer_email='[email protected]',
url='http://soapfish.org/',
download_url='http://soapfish.org/releases/',
description='A SOAP library for Python',
long_description=description('README.md', 'AUTHORS.md', 'CHANGES.md', 'TODO.md'),
license='BSD',
packages=find_packages(exclude=['examples', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=requirements('requirements.txt'),
tests_require=requirements('dev_requirements.txt'),
test_suite='nose.collector',
obsoletes=['soapbox'],
entry_points={
'console_scripts': [
'py2wsdl=soapfish.py2wsdl:main',
'py2xsd=soapfish.py2xsd:main',
'wsdl2py=soapfish.wsdl2py:main',
'xsd2py=soapfish.xsd2py:main',
],
},
platforms=['OS Independent'],
keywords=['soap', 'wsdl', 'xsd', 'xml', 'schema', 'web service'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Flask',
'Framework :: Pyramid',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)