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
|
#!/usr/bin/env python
from distutils.core import setup
import os
import subprocess
import sys
import warnings
try:
import py2exe
from nsis import build_installer
except:
build_installer = None
from pysimplesoap import __version__, __author__, __author_email__, __license__
# convert the README and format in restructured text (only when registering)
long_desc = ""
if os.path.exists("README.md") and sys.platform == "linux2":
try:
cmd = ['pandoc', '--from=markdown', '--to=rst', 'README.md']
long_desc = subprocess.check_output(cmd).decode("utf8")
print("Long DESC", long_desc)
except Exception as e:
warnings.warn("Exception when converting the README format: %s" % e)
setup(
name='PySimpleSOAP',
version=__version__,
description='Python simple and lightweight SOAP Library',
long_description=long_desc,
author=__author__,
author_email=__author_email__,
url='https://github.com/pysimplesoap/pysimplesoap',
packages=['pysimplesoap'],
license=__license__,
# console=['client.py'],
cmdclass={"py2exe": build_installer},
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Communications",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)
|