From d06c218cbfe9a0e109a9cdf368ecd88df9179c8d Mon Sep 17 00:00:00 2001 From: James Aylett Date: Fri, 1 May 2015 16:23:28 +0100 Subject: [PATCH] Make installable as an sdist. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * don’t try to read README.md which isn’t in the sdist * auto-detect packages (for sub-folders) * explicitly list the JS file (as a globbing pattern) --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index e876bce..35af22d 100644 --- a/setup.py +++ b/setup.py @@ -13,10 +13,9 @@ author='Jason Goldstein', author_email='jason@betheshoe.com', url='https://github.com/theatlantic/django-autosave', - packages=['autosave', ], - package_data={ 'autosave': ['static/*',] }, + packages=find_packages(), + package_data={ 'autosave': ['static/autosave/js/*',] }, description='Generic autosave for the Django Admin.', - long_description=open('README.md').read(), classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers',