Modify

Opened 6 years ago

Closed 2 years ago

#3773 closed enhancement (fixed)

Update BackLinksMacro to support egg plugin installation

Reported by: rekkanoryo@… Owned by: trapanator
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 rekkanoryo@… 6 years ago.
setup.py containing setuptools info to create the egg
backlinks-readme-egg.diff (1.2 KB) - added by rekkanoryo@… 6 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 6 years ago by rekkanoryo@…

setup.py containing setuptools info to create the egg

Changed 6 years ago by rekkanoryo@…

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

comment:1 Changed 5 years ago by trapanator

  • Status changed from new to assigned

comment:2 Changed 5 years ago by trapanator

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 2 years ago by rjollos

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

(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.

Add Comment

Modify Ticket

Action
as closed The owner will remain trapanator.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.