-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
49 lines (42 loc) · 1.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
#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from payex import __version__
def publish():
"""Publish to Pypi"""
os.system("python setup.py sdist upload")
if sys.argv[-1] == "publish":
publish()
sys.exit()
# Requirements
install_requires = [
'suds==1.0.0',
]
if sys.version_info < (2, 7):
install_requires.append('ordereddict')
setup(
name='pypayex',
version=__version__,
description='Python module for interacting with the PayEx SOAP API',
long_description=open('README.md').read(),
author='payex',
author_email='opensource@payex.com',
url='https://github.com/PayEx/pypayex',
packages=['payex'],
license='BSD',
install_requires=install_requires,
test_suite='tests',
classifiers=(
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
)
)