aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-11-08 20:56:27 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-11-08 20:56:27 +0000
commit733ed729b03fa14c252d1079631e65efc3f59873 (patch)
treedb6ed2f971a70b69e2d28b22eacae8b5b6e09be9
parent48e8cb881c92c01503214b3aef3b721622d39b48 (diff)
readme fix
-rw-r--r--setup.py28
1 files 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',