Changeset 2989


Ignore:
Timestamp:
Feb 5, 2010, 11:20:58 AM (14 years ago)
Author:
broder
Message:

Select an authz module using setuptools' entry points mechainsm.

Instead of having each authz package install an invirt.authz module,
have them install modules under their own namespace.

In their setup.py, they should indicate that their authz module
provides a unique name within the invirt.authz entry point group.

The new invirt.authz module (part of invirt-base) then gets a name
from the configuration and uses that to find the module.

Location:
trunk/packages
Files:
3 added
1 deleted
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-base/debian/changelog

    r2977 r2989  
     1invirt-base (0.0.32) unstable; urgency=low
     2
     3  * Add back an invirt.authz module, but restructure it so it uses
     4    entrypoints to find an actual backend module.
     5
     6 -- Evan Broder <broder@mit.edu>  Fri, 05 Feb 2010 09:46:51 -0500
     7
    18invirt-base (0.0.31) unstable; urgency=low
    29
  • trunk/packages/xvm-authz-locker/debian/changelog

    r2766 r2989  
     1xvm-authz-locker (0.0.3) unstable; urgency=low
     2
     3  * Go back to having an xvm.authz.locker module, but use entry points to
     4    find it.
     5
     6 -- Evan Broder <broder@mit.edu>  Fri, 05 Feb 2010 09:38:05 -0500
     7
    18xvm-authz-locker (0.0.2) unstable; urgency=low
    29
  • trunk/packages/xvm-authz-locker/debian/control

    r2769 r2989  
    1010Depends: ${python:Depends}, ${misc:Depends}, invirt-base, python-afs
    1111Provides: ${python:Provides}, invirt-authz
    12 Conflicts: invirt-authz
    13 Replaces: invirt-authz
    1412Breaks: invirt-base (<< 0.0.28~)
    1513XB-Python-Version: ${python:Versions}
  • trunk/packages/xvm-authz-locker/setup.py

    r2766 r2989  
    2424    maintainer_email=maintainer_email,
    2525   
    26     py_modules = ['invirt.authz'],
     26    py_modules = ['xvm.authz.locker'],
    2727    package_dir = {'': 'python'},
     28
     29    entry_points = {
     30        'invirt.authz': [
     31            'xvm-locker = xvm.authz.locker',
     32            ],
     33        },
    2834)
Note: See TracChangeset for help on using the changeset viewer.