From c6b23b493d623bb22968ce16fa72aa76e59c94e3 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Mon, 6 Feb 2017 21:22:08 +0100 Subject: [PATCH] Fix weird styling and resource warning in setup.py --- setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 0a0d3ca..17f2833 100644 --- a/setup.py +++ b/setup.py @@ -37,9 +37,7 @@ requirements = [ class PrintRequirements(Command): - description = 'Prints minimal requirements' - user_options = [] def initialize_options(self): @@ -53,6 +51,10 @@ class PrintRequirements(Command): print(requirement.replace(">", "=").replace(" ", "")) +with open('README.rst') as f: + long_description = f.read() + + setup( # General metadata name='vdirsyncer', @@ -61,7 +63,7 @@ setup( url='https://github.com/pimutils/vdirsyncer', description='Synchronize calendars and contacts', license='MIT', - long_description=open('README.rst').read(), + long_description=long_description, # Runtime dependencies install_requires=requirements,