Modify ↓
#3777 closed defect (fixed)
template should include 'package_data' by default
| Reported by: | k0s | Owned by: | k0s |
|---|---|---|---|
| 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 5 years ago by k0s
- Status changed from new to assigned
comment:2 Changed 5 years ago by k0s
- Resolution set to fixed
- Status changed from assigned to closed
comment:3 Changed 4 years ago by martin_s
- Resolution fixed deleted
- Status changed from closed to reopened
- Type changed from enhancement to 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:4 Changed 4 years ago by k0s
comment:5 follow-up: ↓ 6 Changed 4 years ago by k0s
- Resolution set to fixed
- Status changed from reopened to closed
thanks for the patch; applied in r6953 ; god i hate setuptools
comment:6 in reply to: ↑ 5 ; follow-up: ↓ 7 Changed 4 years ago by martin_s
comment:7 in reply to: ↑ 6 Changed 4 years ago by k0s
Note: See
TracTickets for help on using
tickets.


(In [4389]) include package_data by default, fixes #3777