Modify

Opened 16 years ago

Closed 12 years ago

#3773 closed enhancement (fixed)

Update BackLinksMacro to support egg plugin installation

Reported by: John Bailey Owned by: Trap
Priority: normal Component: BackLinksMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I don't see 'patch' as a ticket type here, so I'm using enhancement. Sorry if that's incorrect.

The point of this ticket is to post the changes I made to be able to package the BackLinksMacro as a python egg. The changes are as follows, since svn diff doesn't convey svn mv:

  • svn mkdir 0.11/BackLinksMacro
  • svn mv 0.11/BackLinks.5.py 0.11/BackLinksMacro/macro.py
  • (optional) touch 0.11/BackLinks/__init__.py && svn add 0.11/BackLinks/__init__.py
  • place the attached setup.py in 0.11, then svn add 0.11/setup.py
  • apply backlinks-readme-egg.diff
  • (optional) change the version number in 0.11/BackLinksMacro/macro.py to 5.6.

Of course the egg method is merely a convenience to show author, homepage, and license information in the adminsitration interface, so I'm happy to maintain the egg stuff for my own use if you prefer not to have it. :)

Attachments (2)

setup.py (776 bytes) - added by John Bailey 16 years ago.
setup.py containing setuptools info to create the egg
backlinks-readme-egg.diff (1.2 KB) - added by John Bailey 16 years ago.
Patch to README to reflect packaging as an egg and installing as a single-file plugin

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by John Bailey

Attachment: setup.py added

setup.py containing setuptools info to create the egg

Changed 16 years ago by John Bailey

Attachment: backlinks-readme-egg.diff added

Patch to README to reflect packaging as an egg and installing as a single-file plugin

comment:1 Changed 15 years ago by Trap

Status: newassigned

comment:2 Changed 15 years ago by Trap

marvellous. Today I've fixed some (OLD) bugs in SVN, if them are working to you all I'll apply your patches!

comment:3 Changed 12 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

(In [11968] Fixes #3773 (7.0dev)

  • Macro is now packaged for installation as an egg. Thanks to rekkanoryo@rekkanoryo.org for the initial patch.
  • Removed some unused imports.
  • Minor refactoring of the macro.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Trap.
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.