setup.py 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #!/usr/bin/env python
  2. #
  3. # Copyright (C) 2008-2018 Martin Owens
  4. #
  5. # This library is free software; you can redistribute it and/or
  6. # modify it under the terms of the GNU Lesser General Public
  7. # License as published by the Free Software Foundation; either
  8. # version 3.0 of the License, or (at your option) any later version.
  9. #
  10. # This library is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. # Lesser General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU Lesser General Public
  16. # License along with this library.
  17. #
  18. # pylint: disable=bad-whitespace
  19. """Setup the crontab module"""
  20. import os
  21. from setuptools import setup
  22. from crontab import __version__, __pkgname__
  23. # remove MANIFEST. distutils doesn't properly update it when the
  24. # contents of directories change.
  25. if os.path.exists('MANIFEST'):
  26. os.remove('MANIFEST')
  27. # Grab description for Pypi
  28. with open('README.rst') as fhl:
  29. description = fhl.read()
  30. # Used for rpm building
  31. RELEASE = "1"
  32. setup(
  33. name = __pkgname__,
  34. version = __version__,
  35. release = RELEASE,
  36. description = 'Python Crontab API',
  37. long_description = description,
  38. author = 'Martin Owens',
  39. url = 'https://gitlab.com/doctormo/python-crontab/',
  40. author_email = 'doctormo@gmail.com',
  41. test_suite = 'tests',
  42. platforms = 'linux',
  43. license = 'LGPLv3',
  44. py_modules = ['crontab', 'crontabs', 'cronlog'],
  45. provides = ['crontab', 'crontabs', 'cronlog'],
  46. install_requires = ['python-dateutil'],
  47. extras_require = {
  48. 'cron-schedule': ['croniter'],
  49. 'cron-description': ['cron-descriptor'],
  50. },
  51. classifiers = [
  52. 'Development Status :: 5 - Production/Stable',
  53. 'Development Status :: 6 - Mature',
  54. 'Intended Audience :: Developers',
  55. 'Intended Audience :: Information Technology',
  56. 'Intended Audience :: System Administrators',
  57. 'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
  58. 'Operating System :: POSIX',
  59. 'Operating System :: POSIX :: Linux',
  60. 'Operating System :: POSIX :: SunOS/Solaris',
  61. 'Programming Language :: Python',
  62. 'Programming Language :: Python :: 2.7',
  63. 'Programming Language :: Python :: 3.5',
  64. ],
  65. options = {
  66. 'bdist_rpm': {
  67. 'build_requires': [
  68. 'python',
  69. 'python-setuptools',
  70. ],
  71. 'release': RELEASE,
  72. },
  73. },
  74. )