From 570dc4f94a7d6f809ae584a1df3adc26dfbb6dd2 Mon Sep 17 00:00:00 2001 From: Bastian Blank Date: Thu, 17 Oct 2013 23:58:44 +0200 Subject: [PATCH] Properly specify package data --- MANIFEST.in | 2 -- setup.py | 21 +++++++++++++++------ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 69cd848..ebd922f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -5,9 +5,7 @@ recursive-exclude docs *.pyc recursive-exclude docs *.pyo recursive-include nsupdate/static * recursive-include nsupdate/templates * -recursive-include nsupdate/main/static * recursive-include nsupdate/main/templates * -recursive-include nsupdate/accounts/static * recursive-include nsupdate/accounts/templates * prune docs/_build diff --git a/setup.py b/setup.py index e1cfb44..23a5710 100644 --- a/setup.py +++ b/setup.py @@ -19,12 +19,21 @@ setup( keywords="dyndns ddns dynamic dns django", packages=find_packages(exclude=['_tests', ]), package_data={ - 'nsupdate.static': ['*', ], - 'nsupdate.templates': ['*', ], - 'nsupdate.main.static': ['*', ], - 'nsupdate.main.templates': ['*', ], - 'nsupdate.accounts.static': ['*', ], - 'nsupdate.accounts.templates': ['*', ], + 'nsupdate': [ + 'static/*.gif', + 'static/*.html', + 'static/css/*', + 'static/screenshots/*', + 'templates/*', + ], + 'nsupdate.accounts': [ + 'templates/accounts/*.html', + 'templates/registration/*.html', + ], + 'nsupdate.main': [ + 'templates/main/*.html', + 'templates/main/includes/*', + ], }, include_package_data=True, zip_safe=False,