python - Correct way to write setup script for setuptools? Can't find the error -
for trac plugin, want pack scripts , data egg file. used multiple different examples found online reference, egg file not recognized trac.
i looked inside egg file 7zip, , of files seem in there, think might problem meta data. plugin works if use .py script or egg-link absolute paths.
my project structure looks this:
ticket-printer-plugin (the project root) | ---setup.py ---ticketprinter | ---__init__.py ---ticketprinter_admin.py ---ticketprinter_export.py ---htdocs | ---css | | | ---ticketformat.css | ---templates | ---admin_panel.html
the init file in ticketprinter package contains following:
from ticketprinter_export import * ticketprinter_admin import *
the setup.py script looks this:
from setuptools import setup setup( name='tracticketprinter', version='0.1', packages=['ticketprinter'], package_data={'ticketprinter': [ 'htdocs/css/*.css', 'htdocs/templates/*.html']}, entry_points={ 'trac.plugins': [ 'ticketprinter = ticketprinter', ], }, )
i checked logs , there no errors. looks trac doesn't recognize egg file, might problem paths or dependencies, can't find mistake.
Comments
Post a Comment