setup.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # SPDX-License-Identifier: CC0-1.0
  5. #
  6. # This file is part of lpschedule-generator.
  7. #
  8. from lpschedule_generator import _version
  9. from setuptools import setup, find_packages
  10. def readf(filename):
  11. content = ''
  12. try:
  13. with open(filename, 'r') as f:
  14. for line in f:
  15. content = content + line
  16. except IOError:
  17. print('Error: unable to open {}'.format(filename))
  18. return content
  19. config = {
  20. 'name': 'lpschedule-generator',
  21. 'description': 'LibrePlanet schedule generator',
  22. 'long_description': readf('README.rst'),
  23. 'version': _version.__version__,
  24. 'license': 'Public Domain',
  25. 'url': 'https://notabug.org/rsd/lpschedule-generator/',
  26. 'author': 'rsiddharth',
  27. 'author_email': 'rsd@gnu.org',
  28. 'install_requires': ['mistune', 'Jinja2', 'beautifulsoup4',
  29. 'unidecode', 'icalendar', 'pytz'],
  30. 'tests_require': ['nose', 'mock'],
  31. 'test_suite': 'nose.collector',
  32. 'py_modules': ['lps_gen'],
  33. 'packages': ['lpschedule_generator'],
  34. 'package_data': {
  35. 'lpschedule_generator': ['data/schedule.jinja2', 'data/speakers.jinja2']
  36. },
  37. 'entry_points': {
  38. 'console_scripts': ['lps_gen = lps_gen:main']
  39. },
  40. 'classifiers': [
  41. 'Development Status :: 3 - Alpha',
  42. 'Environment :: Console',
  43. 'Intended Audience :: Other Audience',
  44. 'License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication',
  45. 'Operating System :: POSIX :: Linux',
  46. 'Operating System :: POSIX :: BSD :: OpenBSD',
  47. 'Programming Language :: Python :: 3 :: Only',
  48. 'Topic :: Text Processing',
  49. 'Topic :: Utilities',
  50. ]
  51. }
  52. setup(**config)