summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-03-28 14:45:55 +0000
committerMichael Williamson <mike@zwobble.org>2014-03-28 14:45:55 +0000
commit0ffe91235db4bdc132329599d8d434bc53d3b951 (patch)
treed05fa58eb654176485253c367e5db5a546a05543 /setup.py
parent122592f40f192717e719395df30323debb75c826 (diff)
Use README.rst instead of README.md
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/setup.py b/setup.py
index 31d2f26..53ab7a2 100644
--- a/setup.py
+++ b/setup.py
@@ -10,13 +10,8 @@ from distutils.command.build_ext import build_ext
def path_in_dir(relative_path):
return os.path.join(os.path.dirname(__file__), relative_path)
-
-def read_or_empty_string(fname):
- path = path_in_dir(fname)
- if os.path.exists(path):
- return open(path).read()
- else:
- return ""
+def read(fname):
+ return open(os.path.join(os.path.dirname(__file__), fname)).read()
jq_lib_dir = path_in_dir("_jq-lib")
@@ -60,7 +55,7 @@ setup(
name='jq',
version='0.1.0',
description='jq is a lightweight and flexible JSON processor.',
- long_description=read_or_empty_string("README"),
+ long_description=read("README.rst"),
author='Michael Williamson',
url='http://github.com/mwilliamson/jq.py',
license='BSD 2-Clause',