#9910 closed enhancement (duplicate)
Add plugin framework to Ticket Clone plugin to make a stronger example
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.11.6 |
Severity: | normal | Keywords: | ticketclone sample plugins |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal 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 (2)
Change History (7)
by , 14 years ago
comment:1 by , 14 years ago
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 by , 14 years ago
Keywords: | ticketclone sample plugins added |
---|---|
Milestone: | → 0.13 |
Owner: | set to |
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 by , 14 years ago
Milestone: | 0.13 |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
I forgot about #9354.
Not really a duplicate, more supersededby.
comment:4 by , 10 years ago
Reporter: | changed from | to
---|
comment:5 by , 9 years ago
Reporter: | changed from | to
---|
Setup file