A fork of https://github.com/Synerty/SOAPpy-py3 This is a working tree till fixes get imported upstream.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

75 lines
1.7 KiB

  1. #!/usr/bin/env python
  2. #
  3. # $Id: setup.py,v 1.11 2005/02/15 16:32:22 warnes Exp $
  4. CVS=0
  5. from setuptools import setup, find_packages
  6. import os
  7. def read(*rnames):
  8. return "\n"+ open(
  9. os.path.join('.', *rnames)
  10. ).read()
  11. def load_version():
  12. """
  13. Load the version number by executing the version file in a variable. This
  14. way avoids executing the __init__.py file which load nearly everything in
  15. the project, including fpconst which is not yet installed when this script
  16. is executed.
  17. Source: https://github.com/mitsuhiko/flask/blob/master/flask/config.py#L108
  18. """
  19. import imp
  20. from os import path
  21. filename = path.join(path.dirname(__file__), 'src', 'SOAPpy', 'version.py')
  22. d = imp.new_module('version')
  23. d.__file__ = filename
  24. try:
  25. execfile(filename, d.__dict__)
  26. except IOError, e:
  27. e.strerror = 'Unable to load the version number (%s)' % e.strerror
  28. raise
  29. return d.__version__
  30. __version__ = load_version()
  31. url="https://github.com/kiorky/SOAPpy.git"
  32. long_description="SOAPpy provides tools for building SOAP clients and servers. For more information see " + url\
  33. +'\n'+read('README.txt')\
  34. +'\n'+read('CHANGES.txt')\
  35. if CVS:
  36. import time
  37. __version__ += "_CVS_" + time.strftime('%Y_%m_%d')
  38. setup(
  39. name="SOAPpy",
  40. version=__version__,
  41. description="SOAP Services for Python",
  42. maintainer="Gregory Warnes, kiorky",
  43. maintainer_email="Gregory.R.Warnes@Pfizer.com, kiorky@cryptelium.net",
  44. url = url,
  45. long_description=long_description,
  46. packages=find_packages('src'),
  47. package_dir = {'': 'src'},
  48. include_package_data=True,
  49. install_requires=[
  50. 'fpconst',
  51. 'wstools',
  52. ]
  53. )