Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2077 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

[PATCH] Make projects' .egg-info directories resilient

Reported by: pjenvey Owned by: mramm
Priority: high Milestone: 2.0b5
Component: Quickstart Templates Version: trunk
Severity: normal Keywords:
Cc:

Description

TG2 projects' egg-info dirs contain 2 important files: paste_deploy_config.ini_tmpl (productionini for paster make-config) and paster_plugins.txt (tells paster what plugins are supported, like Pylons' paster shell)

It's a common problem to lose both of these files due to deleting the .egg-info, or usually due to not checking it into VCS (nobody wants to check them in as their contents are always changing -- it's annoying).

We've solved this in Pylons by doing 2 things: changing the paster_plugins.txt to always be re-generated from a value in setup.py during setup.py egg_info, and moving the paste_deploy_config.ini_tmpl out of the egg-info dir, into project/config/deployment.ini_tmpl

The attached patch takes care of #1, #2 needs a:

svn mv +egg+.egg-info/paste_deploy_config.ini_tmpl_tmpl +package+/config/deployment.ini_tmpl svn rm +egg+.egg-info

and then likely the references to paste_deploy_config.ini_tmpl in the docs, if there are any, needs to change

TG2 projects already use the pylons.util.PylonsInstaller? that's already setup to look for deployment.ini_tmpl in the new location

For more info our ticket about this was here:  http://pylonshq.com/project/pylonshq/ticket/282

Attachments

new_paster_plugins-r5882.diff Download (512 bytes) - added by pjenvey 10 years ago.

Change History

Changed 10 years ago by pjenvey

comment:1 Changed 10 years ago by pjenvey

Actually #2 needs one more addition: the _tmpl file won't be included in bdists since it's not a .py file. We just explicitly added it to projects' MANIFEST's:

 http://pylonshq.com/project/pylonshq/changeset/633a08b5388d

comment:2 Changed 10 years ago by pjenvey

You could probably use distutils' package_data option instead if your minimum requirement is 2.4.

 http://docs.python.org/distutils/setupscript.html#installing-package-data

comment:3 Changed 10 years ago by mramm

  • Priority changed from normal to high

comment:4 Changed 10 years ago by mramm

  • Owner changed from Chris Arndt to mramm

comment:5 Changed 10 years ago by mramm

  • Milestone changed from 2.0b1 to 2.0b2

comment:6 Changed 10 years ago by mramm

  • Status changed from new to closed
  • Resolution set to fixed

fixed in #5998 and #5999

comment:7 Changed 10 years ago by jorge.vargas

  • Status changed from closed to reopened
  • Resolution fixed deleted

we currently have two production.ini files we need to fix this see r6144

comment:8 Changed 10 years ago by mramm

  • Milestone changed from 2.0b2 to 2.0b4

comment:9 Changed 10 years ago by mramm

We're now %100 pylons compliant in the way we handle deployment.ini. No duplicated production code, and egg users have to do paster make-config:

 http://wiki.pylonshq.com/display/pylonsdocs/Configuration+Files

--Mark

comment:10 Changed 10 years ago by mramm

  • Status changed from reopened to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.