Ticket #9910 (closed enhancement: duplicate)
Opened 18 months ago
Last modified 16 months ago
Add plugin framework to Ticket Clone plugin to make a stronger example
| Reported by: | Chris.Nelson@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | 0.11.6 |
| Severity: | normal | Keywords: | ticketclone sample plugins |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
The ticket clone plugin is a nice example of a simple plugin but it gets installed by copying. The files attached to this ticket make it a "proper" plugin that can be installed with the usual:
python setup.py bdist_egg cp dist/*.egg /opt/trac/sandbox/plugins/
Attachments
Change History
Changed 18 months ago by Chris.Nelson@…
comment:1 Changed 18 months ago by Chris.Nelson@…
Using the attachments as is requires moving the plugin's main .py file to a ticket_clone subdirectory. I end up with:
./ticket_clone/__init__.py ./ticket_clone/ticket_clone.py ./setup.py
comment:2 Changed 18 months ago by cboos
- Keywords ticketclone sample plugins added
- Milestone set to 0.13
- Owner set to cboos
Thanks Chris!
I think it would indeed be nice to have in sample-plugins at least one full fledged plugin, besides the single file ones. Using TicketClone for this is a good choice as it's small, simple and useful.
We could use this to show a few "best practices" for plugins, like using a versioning scheme matching the one of Trac (e.g. starting here with 0.13.0.1).
comment:3 Changed 16 months ago by cboos
- Milestone 0.13 deleted
- Resolution set to duplicate
- Status changed from new to closed
I forgot about #9354.
Not really a duplicate, more supersededby.



Setup file