From a32c34dab635a74f3a7e2bcd138c12090f5942e9 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Thu, 9 Jul 2020 22:41:52 -0400 Subject: Format via black. --- setup.py | 72 +++++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 39 insertions(+), 33 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 3fc75ce..b7c4290 100644 --- a/setup.py +++ b/setup.py @@ -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) -- cgit v1.2.3