diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 72 |
1 files changed, 39 insertions, 33 deletions
@@ -10,48 +10,54 @@ from lpschedule_generator import _version from setuptools import setup, find_packages + def readf(filename): - content = '' + content = "" try: - with open(filename, 'r') as f: + with open(filename, "r") as f: for line in f: content = content + line except IOError: - print('Error: unable to open {}'.format(filename)) + print("Error: unable to open {}".format(filename)) return content + config = { - 'name': 'lpschedule-generator', - 'description': 'LibrePlanet schedule generator', - 'long_description': readf('README.rst'), - 'version': _version.__version__, - 'license': 'Public Domain', - 'url': 'https://notabug.org/rsd/lpschedule-generator/', - 'author': 'rsiddharth', - 'author_email': 'rsd@gnu.org', - 'install_requires': ['mistune>=0.8,<1', 'Jinja2', 'beautifulsoup4', - 'unidecode', 'icalendar', 'pytz'], - 'tests_require': ['nose', 'mock'], - 'test_suite': 'nose.collector', - 'py_modules': ['lps_gen'], - 'packages': ['lpschedule_generator'], - 'package_data': { - 'lpschedule_generator': ['data/schedule.jinja2', 'data/speakers.jinja2'] - }, - 'entry_points': { - 'console_scripts': ['lps_gen = lps_gen:main'] + "name": "lpschedule-generator", + "description": "LibrePlanet schedule generator", + "long_description": readf("README.rst"), + "version": _version.__version__, + "license": "Public Domain", + "url": "https://notabug.org/rsd/lpschedule-generator/", + "author": "rsiddharth", + "author_email": "rsd@gnu.org", + "install_requires": [ + "mistune>=0.8,<1", + "Jinja2", + "beautifulsoup4", + "unidecode", + "icalendar", + "pytz", + ], + "tests_require": ["nose", "mock"], + "test_suite": "nose.collector", + "py_modules": ["lps_gen"], + "packages": ["lpschedule_generator"], + "package_data": { + "lpschedule_generator": ["data/schedule.jinja2", "data/speakers.jinja2"] }, - 'classifiers': [ - 'Development Status :: 3 - Alpha', - 'Environment :: Console', - 'Intended Audience :: Other Audience', - 'License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication', - 'Operating System :: POSIX :: Linux', - 'Operating System :: POSIX :: BSD :: OpenBSD', - 'Programming Language :: Python :: 3 :: Only', - 'Topic :: Text Processing', - 'Topic :: Utilities', - ] + "entry_points": {"console_scripts": ["lps_gen = lps_gen:main"]}, + "classifiers": [ + "Development Status :: 3 - Alpha", + "Environment :: Console", + "Intended Audience :: Other Audience", + "License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", + "Operating System :: POSIX :: Linux", + "Operating System :: POSIX :: BSD :: OpenBSD", + "Programming Language :: Python :: 3 :: Only", + "Topic :: Text Processing", + "Topic :: Utilities", + ], } setup(**config) |