From 733ed729b03fa14c252d1079631e65efc3f59873 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 8 Nov 2019 20:56:27 +0000 Subject: readme fix --- setup.py | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/setup.py b/setup.py index b596e3d..6ea554b 100644 --- a/setup.py +++ b/setup.py @@ -1,35 +1,11 @@ #!/usr/bin/env python -import os - from setuptools import find_packages, setup import datamaps - -def read(*names): - values = dict() - extensions = ['.txt', '.rst'] - for name in names: - value = '' - for extension in extensions: - filename = name + extension - if os.path.isfile(filename): - value = open(name + extension).read() - break - values[name] = value - return values - - -long_description = """ -%(README)s - -News -==== - -%(CHANGES)s - -""" % read('README', 'CHANGES') +with open("README.md", "r") as fh: + long_description = fh.read() setup( name='datamaps', -- cgit v1.2.3