Properly specify package data

This commit is contained in:
Bastian Blank 2013-10-17 23:58:44 +02:00
parent b161265cad
commit 570dc4f94a
2 changed files with 15 additions and 8 deletions

View File

@ -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

View File

@ -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,