PageRenderTime 40ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/setup.py

https://bitbucket.org/olt/mapproxy/
Python | 77 lines | 71 code | 5 blank | 1 comment | 5 complexity | 7b3f1a850e2f97ddcc9b045f257643aa MD5 | raw file
Possible License(s): Apache-2.0
  1. import platform
  2. from setuptools import setup, find_packages
  3. install_requires = [
  4. 'PIL>=1.1.6,<1.2.99',
  5. 'PyYAML>=3.0,<3.99',
  6. ]
  7. if platform.python_version_tuple() < ('2', '6'):
  8. # for mapproxy-seed
  9. install_requires.append('multiprocessing>=2.6')
  10. def long_description(changelog_releases=10):
  11. import re
  12. import textwrap
  13. readme = open('README.txt').read()
  14. changes = ['Changes\n-------\n']
  15. version_line_re = re.compile('^\d\.\d+\.\d+\S*\s20\d\d-\d\d-\d\d')
  16. for line in open('CHANGES.txt'):
  17. if version_line_re.match(line):
  18. if changelog_releases == 0:
  19. break
  20. changelog_releases -= 1
  21. changes.append(line)
  22. changes.append(textwrap.dedent('''
  23. Older changes
  24. -------------
  25. See https://bitbucket.org/olt/mapproxy/src/default/CHANGES.txt
  26. '''))
  27. return readme + ''.join(changes)
  28. setup(
  29. name='MapProxy',
  30. version="1.5.0a",
  31. description='An accelerating proxy for web map services',
  32. long_description=long_description(7),
  33. author='Oliver Tonnhofer',
  34. author_email='olt@omniscale.de',
  35. url='http://mapproxy.org',
  36. license='Apache Software License 2.0',
  37. namespace_packages = ['mapproxy'],
  38. packages=find_packages(),
  39. include_package_data=True,
  40. entry_points = {
  41. 'console_scripts': [
  42. 'mapproxy-seed = mapproxy.seed.script:main',
  43. 'mapproxy-util = mapproxy.script.util:main',
  44. ],
  45. 'paste.app_factory': [
  46. 'app = mapproxy.wsgiapp:app_factory',
  47. 'multiapp = mapproxy.multiapp:app_factory'
  48. ],
  49. 'paste.paster_create_template': [
  50. 'mapproxy_conf=mapproxy.config_template:PasterConfigurationTemplate'
  51. ],
  52. 'paste.filter_factory': [
  53. 'lighttpd_root_fix = mapproxy.util.wsgi:lighttpd_root_fix_filter_factory',
  54. ],
  55. },
  56. package_data = {'': ['*.xml', '*.yaml', '*.ttf', '*.wsgi', '*.ini']},
  57. install_requires=install_requires,
  58. classifiers=[
  59. "Development Status :: 5 - Production/Stable",
  60. "License :: OSI Approved :: Apache Software License",
  61. "Operating System :: OS Independent",
  62. "Programming Language :: Python :: 2.5",
  63. "Programming Language :: Python :: 2.6",
  64. "Programming Language :: Python :: 2.7",
  65. "Topic :: Internet :: Proxy Servers",
  66. "Topic :: Internet :: WWW/HTTP :: WSGI",
  67. "Topic :: Scientific/Engineering :: GIS",
  68. ],
  69. zip_safe=False,
  70. test_suite='nose.collector',
  71. )