diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2019-11-08 20:56:27 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2019-11-08 20:56:27 +0000 |
commit | 733ed729b03fa14c252d1079631e65efc3f59873 (patch) | |
tree | db6ed2f971a70b69e2d28b22eacae8b5b6e09be9 | |
parent | 48e8cb881c92c01503214b3aef3b721622d39b48 (diff) |
readme fix
-rw-r--r-- | setup.py | 28 |
1 files changed, 2 insertions, 26 deletions
@@ -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', |