setup.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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": [
  29. "mistune>=0.8,<1",
  30. "Jinja2",
  31. "beautifulsoup4",
  32. "unidecode",
  33. "icalendar",
  34. "pytz",
  35. ],
  36. "tests_require": ["nose", "mock"],
  37. "test_suite": "nose.collector",
  38. "py_modules": ["lps_gen"],
  39. "packages": ["lpschedule_generator"],
  40. "package_data": {
  41. "lpschedule_generator": ["data/schedule.jinja2", "data/speakers.jinja2"]
  42. },
  43. "entry_points": {"console_scripts": ["lps_gen = lps_gen:main"]},
  44. "classifiers": [
  45. "Development Status :: 3 - Alpha",
  46. "Environment :: Console",
  47. "Intended Audience :: Other Audience",
  48. "License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
  49. "Operating System :: POSIX :: Linux",
  50. "Operating System :: POSIX :: BSD :: OpenBSD",
  51. "Programming Language :: Python :: 3 :: Only",
  52. "Topic :: Text Processing",
  53. "Topic :: Utilities",
  54. ],
  55. }
  56. setup(**config)