Modify ↓
#3777 closed defect (fixed)
template should include 'package_data' by default
Reported by: | Jeff Hammel | Owned by: | Jeff Hammel |
---|---|---|---|
Priority: | normal | Component: | TracPluginTemplateScript |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
In order to avoid issues like th:#3758, the template should include an appropriate package_data
section in setup.py. Ideally, this would be appropriately populated with e.g. templates, htdocs, etc.
Attachments (0)
Change History (7)
comment:1 Changed 16 years ago by
Status: | new → assigned |
---|
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 Changed 15 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Type: | enhancement → defect |
The package_data
entry must also exists in the setup.py
file of TracPluginTemplateScript itself, otherwise the template
directory is not installed and paster create
fails.
Please add the following:
-
tracplugintemplatescript/0.11/setup.py
15 15 url='http://trac-hacks.org/wiki/k0s', 16 16 license='GPL', 17 17 packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), 18 package_data={'': 19 [ 'template/+package+/*/*', 'template/+package+/*.py_tmpl', 'template/*.py_tmpl' ]}, 18 20 include_package_data=True, 19 21 zip_safe=False, 20 22 install_requires=[ 'PasteScript', ],
comment:5 follow-up: 6 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
thanks for the patch; applied in r6953 ; god i hate setuptools
comment:6 follow-up: 7 Changed 15 years ago by
comment:7 Changed 15 years ago by
Note: See
TracTickets for help on using
tickets.
(In [4389]) include package_data by default, fixes #3777