From 830add733422c6417cf6d176b63f9a1281aff738 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 16 Apr 2011 17:07:14 -0400 Subject: [PATCH] Fixed rendering of docs --- docs/conf.py | 2 +- setup.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 2e25d56..957aa52 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -50,7 +50,7 @@ copyright = u'2010, Jason R. Coombs' # built documents. # # The short X.Y version. -version = setup_params['version'] +version = setup_params.get('version', 'unknown') # The full version, including alpha/beta/rc tags. release = version diff --git a/setup.py b/setup.py index be6bba2..93887b5 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,5 @@ #!python -# $Id$ - import os import sys from setuptools import find_packages @@ -14,7 +12,8 @@ class DisabledTestCommand(Command): raise RuntimeError("test command not supported on svg.charts. Use setup.py nosetests instead") _this_dir = os.path.dirname(__file__) -_long_description = open('readme.txt').read().strip() +_readme = os.path.join(_this_dir, 'readme.txt') +_long_description = open(_readme).read().strip() # it seems that dateutil 2.0 only works under Python 3 dateutil_req = (