/scripts/scramble/patches/python_daemon/setup.py

https://bitbucket.org/cistrome/cistrome-harvard/ · Python · 64 lines · 38 code · 8 blank · 18 comment · 1 complexity · 61c2e02be1411c82f90b7cbd6ae86d13 MD5 · raw file

  1. # -*- coding: utf-8 -*-
  2. # setup.py
  3. # Part of python-daemon, an implementation of PEP 3143.
  4. #
  5. # Copyright © 20082010 Ben Finney <ben+python@benfinney.id.au>
  6. # Copyright © 2008 Robert Niederreiter, Jens Klein
  7. #
  8. # This is free software: you may copy, modify, and/or distribute this work
  9. # under the terms of the Python Software Foundation License, version 2 or
  10. # later as published by the Python Software Foundation.
  11. # No warranty expressed or implied. See the file LICENSE.PSF-2 for details.
  12. """ Distribution setup for python-daemon library.
  13. """
  14. import textwrap
  15. from setuptools import setup, find_packages
  16. distribution_name = "python-daemon"
  17. main_module_name = 'daemon'
  18. main_module = __import__(main_module_name, fromlist=['version'])
  19. version = main_module.version
  20. short_description, long_description = (
  21. textwrap.dedent(d).strip()
  22. for d in main_module.__doc__.split(u'\n\n', 1)
  23. )
  24. setup(
  25. name=distribution_name,
  26. version=version.version,
  27. packages=find_packages(exclude=["test"]),
  28. # setuptools metadata
  29. zip_safe=False,
  30. test_suite="test.suite",
  31. tests_require=[
  32. "MiniMock >=1.2.2",
  33. ],
  34. install_requires=[
  35. #"setuptools",
  36. #"lockfile >=0.7",
  37. ],
  38. # PyPI metadata
  39. author=version.author_name,
  40. author_email=version.author_email,
  41. description=short_description,
  42. license=version.license,
  43. keywords=u"daemon fork unix".split(),
  44. url=main_module._url,
  45. long_description=long_description,
  46. classifiers=[
  47. # Reference: http://pypi.python.org/pypi?%3Aaction=list_classifiers
  48. "Development Status :: 4 - Beta",
  49. "License :: OSI Approved :: Python Software Foundation License",
  50. "Operating System :: POSIX",
  51. "Programming Language :: Python",
  52. "Intended Audience :: Developers",
  53. "Topic :: Software Development :: Libraries :: Python Modules",
  54. ],
  55. )