#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2017 lpschedule-generator contributors. See CONTRIBUTORS.
#
# This file is part of lpschedule-generator.
#
# lpschedule-generator is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# lpschedule-generator is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with lpschedule-generator (see COPYING). If not, see
# <http://www.gnu.org/licenses/>.
from lpschedule_generator import _version
from setuptools import setup, find_packages
def readf(filename):
content = ''
try:
with open(filename, 'rb') as f:
for line in f:
content = content + line
except IOError:
print "Error: unable to open %s" % filename
return content
config = {
'name': 'lpschedule-generator',
'description': 'LibrePlanet schedule generator',
'long_description': readf('README.rst'),
'version': _version.__version__,
'platforms': 'GNU/Linux',
'license': 'GNU General Public License version 3 or later',
'url': 'https://notabug.org/rsd/lpschedule-generator/',
'author': 'rsiddharth',
'author_email': 'rsd@gnu.org',
'install_requires': ['mistune', 'Jinja2', 'beautifulsoup4', 'unidecode', 'icalendar', 'pytz'],
'tests_require': ['nose', 'mock'],
'test_suite': 'nose.collector',
'py_modules': ['lps_gen', 'lpschedule_generator._version'],
'data_files': [('share/lpschedule-generator/libreplanet-templates/2016',
[
'libreplanet-templates/2016/lp-schedule.jinja2',
'libreplanet-templates/2016/lp-speakers.jinja2'
]
),
('share/lpschedule-generator/libreplanet-templates/2017',
[
'libreplanet-templates/2017/lp-schedule.jinja2'
]
),
('share/lpschedule-generator/libreplanet-templates/2018',
[
'libreplanet-templates/2018/lp-schedule.jinja2'
]
)
],
'entry_points': {
'console_scripts': ['lps_gen = lps_gen:main']
},
'classifiers': [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Other Audience',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2 :: Only',
'Topic :: Text Processing',
'Topic :: Utilities',
]
}
setup(**config)