Modify

Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#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 15 years ago by Jeff Hammel

Status: newassigned

comment:2 Changed 15 years ago by Jeff Hammel

Resolution: fixed
Status: assignedclosed

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

comment:3 Changed 14 years ago by Martin Scharrer

Resolution: fixed
Status: closedreopened
Type: enhancementdefect

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

     
    1515      url='http://trac-hacks.org/wiki/k0s',
    1616      license='GPL',
    1717      packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
     18      package_data={'':
     19        [ 'template/+package+/*/*', 'template/+package+/*.py_tmpl', 'template/*.py_tmpl' ]},
    1820      include_package_data=True,
    1921      zip_safe=False,
    2022      install_requires=[ 'PasteScript', ],

comment:4 Changed 14 years ago by Jeff Hammel

(In [6953]) include package data, refs #3777

comment:5 Changed 14 years ago by Jeff Hammel

Resolution: fixed
Status: reopenedclosed

thanks for the patch; applied in r6953 ; god i hate setuptools

comment:6 in reply to:  5 ; Changed 14 years ago by Martin Scharrer

Replying to k0s:

thanks for the patch; applied in r6953 ; god i hate setuptools

:-) Took me a while to find the correct values for package_data it does not take a directory itself. :-(

comment:7 in reply to:  6 Changed 14 years ago by Jeff Hammel

Replying to martin_s:

Replying to k0s:

thanks for the patch; applied in r6953 ; god i hate setuptools

:-) Took me a while to find the correct values for package_data it does not take a directory itself. :-(

Yeah, that's why its annoying. :( Thanks again!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jeff Hammel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.