Fix weird styling and resource warning in setup.py

This commit is contained in:
Markus Unterwaditzer 2017-02-06 21:22:08 +01:00
parent 38f5dafc1c
commit c6b23b493d

View file

@ -37,9 +37,7 @@ requirements = [
class PrintRequirements(Command): class PrintRequirements(Command):
description = 'Prints minimal requirements' description = 'Prints minimal requirements'
user_options = [] user_options = []
def initialize_options(self): def initialize_options(self):
@ -53,6 +51,10 @@ class PrintRequirements(Command):
print(requirement.replace(">", "=").replace(" ", "")) print(requirement.replace(">", "=").replace(" ", ""))
with open('README.rst') as f:
long_description = f.read()
setup( setup(
# General metadata # General metadata
name='vdirsyncer', name='vdirsyncer',
@ -61,7 +63,7 @@ setup(
url='https://github.com/pimutils/vdirsyncer', url='https://github.com/pimutils/vdirsyncer',
description='Synchronize calendars and contacts', description='Synchronize calendars and contacts',
license='MIT', license='MIT',
long_description=open('README.rst').read(), long_description=long_description,
# Runtime dependencies # Runtime dependencies
install_requires=requirements, install_requires=requirements,