From 668fca6f6ee6661604c71b6d34262d597ef03adb Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 5 Aug 2015 09:05:57 -0500 Subject: [PATCH] Add DESCRIPTION.rst explicitly to pip package. Was in whl file, but not source zip. --- setup.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 709ef1d..316e827 100644 --- a/setup.py +++ b/setup.py @@ -10,13 +10,11 @@ https://github.com/pypa/sampleproject # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding -from codecs import open +import codecs from os import path -here = path.abspath(path.dirname(__file__)) - # Get the long description from the relevant file -with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f: +with codecs.open('DESCRIPTION.rst', encoding='utf-8') as f: long_description = f.read() setup( @@ -25,7 +23,7 @@ setup( # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_version.html - version="2.2.11.post1", + version="2.2.11.post2", description='A tool for downloading fanfiction to eBook formats', long_description=long_description,