setup.py 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Copyright (C) 2015-2017 lpschedule-generator contributors. See CONTRIBUTORS.
  5. #
  6. # This file is part of lpschedule-generator.
  7. #
  8. # lpschedule-generator is free software: you can redistribute it
  9. # and/or modify it under the terms of the GNU General Public License
  10. # as published by the Free Software Foundation, either version 3 of
  11. # the License, or (at your option) any later version.
  12. #
  13. # lpschedule-generator is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. # General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with lpschedule-generator (see COPYING). If not, see
  20. # <http://www.gnu.org/licenses/>.
  21. from lpschedule_generator import _version
  22. from setuptools import setup, find_packages
  23. def readf(filename):
  24. content = ''
  25. try:
  26. with open(filename, 'rb') as f:
  27. for line in f:
  28. content = content + line
  29. except IOError:
  30. print "Error: unable to open %s" % filename
  31. return content
  32. config = {
  33. 'name': 'lpschedule-generator',
  34. 'description': 'LibrePlanet schedule generator',
  35. 'long_description': readf('README.rst'),
  36. 'version': _version.__version__,
  37. 'platforms': 'GNU/Linux',
  38. 'license': 'GNU General Public License version 3 or later',
  39. 'url': 'https://notabug.org/rsd/lpschedule-generator/',
  40. 'author': 'rsiddharth',
  41. 'author_email': 'rsd@gnu.org',
  42. 'install_requires': ['mistune', 'Jinja2', 'beautifulsoup4', 'unidecode', 'icalendar', 'pytz'],
  43. 'tests_require': ['nose', 'mock'],
  44. 'test_suite': 'nose.collector',
  45. 'py_modules': ['lps_gen', 'lpschedule_generator._version'],
  46. 'data_files': [('share/lpschedule-generator/libreplanet-templates/2016',
  47. [
  48. 'libreplanet-templates/2016/lp-schedule.jinja2',
  49. 'libreplanet-templates/2016/lp-speakers.jinja2'
  50. ]
  51. ),
  52. ('share/lpschedule-generator/libreplanet-templates/2017',
  53. [
  54. 'libreplanet-templates/2017/lp-schedule.jinja2'
  55. ]
  56. ),
  57. ('share/lpschedule-generator/libreplanet-templates/2018',
  58. [
  59. 'libreplanet-templates/2018/lp-schedule.jinja2'
  60. ]
  61. )
  62. ],
  63. 'entry_points': {
  64. 'console_scripts': ['lps_gen = lps_gen:main']
  65. },
  66. 'classifiers': [
  67. 'Development Status :: 3 - Alpha',
  68. 'Environment :: Console',
  69. 'Intended Audience :: Other Audience',
  70. 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
  71. 'Operating System :: POSIX :: Linux',
  72. 'Programming Language :: Python :: 2',
  73. 'Programming Language :: Python :: 2.7',
  74. 'Programming Language :: Python :: 2 :: Only',
  75. 'Topic :: Text Processing',
  76. 'Topic :: Utilities',
  77. ]
  78. }
  79. setup(**config)