lpschedule-generator

libreplanet schedule generator - ricketyspace.net/lpschedule-generator
git clone git://git.ricketyspace.net/lpschedule-generator.git
Log | Files | Refs

setup.py (1753B)


      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 
      9 from lpschedule_generator import _version
     10 
     11 from setuptools import setup, find_packages
     12 
     13 def readf(filename):
     14     content = ''
     15     try:
     16         with open(filename, 'r') as f:
     17             for line in f:
     18                 content = content + line
     19     except IOError:
     20         print('Error: unable to open {}'.format(filename))
     21     return content
     22 
     23 config = {
     24     'name': 'lpschedule-generator',
     25     'description': 'LibrePlanet schedule generator',
     26     'long_description': readf('README.rst'),
     27     'version': _version.__version__,
     28     'license': 'Public Domain',
     29     'url': 'https://notabug.org/rsd/lpschedule-generator/',
     30     'author': 'rsiddharth',
     31     'author_email': 'rsd@gnu.org',
     32     'install_requires': ['mistune', 'Jinja2', 'beautifulsoup4',
     33                          'unidecode', 'icalendar', 'pytz'],
     34     'tests_require': ['nose', 'mock'],
     35     'test_suite': 'nose.collector',
     36     'py_modules': ['lps_gen'],
     37     'packages': ['lpschedule_generator'],
     38     'package_data': {
     39         'lpschedule_generator': ['data/schedule.jinja2', 'data/speakers.jinja2']
     40     },
     41     'entry_points': {
     42         'console_scripts': ['lps_gen = lps_gen:main']
     43     },
     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 
     57 setup(**config)