diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-03-28 14:45:55 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-03-28 14:45:55 +0000 |
| commit | 0ffe91235db4bdc132329599d8d434bc53d3b951 (patch) | |
| tree | d05fa58eb654176485253c367e5db5a546a05543 /setup.py | |
| parent | 122592f40f192717e719395df30323debb75c826 (diff) | |
Use README.rst instead of README.md
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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', |
