source: trunk/packages/xvm-authz-locker/setup.py @ 2766

Last change on this file since 2766 was 2766, checked in by broder, 15 years ago

Have authz providers use an invirt.authz module.

xvm-authz-locker now includes an invirt.authz module instead of
xvm.authz.locker. All authz providers conflict with each other, and
provide invirt-authz.

  • Property svn:executable set to *
File size: 828 bytes
Line 
1#!/usr/bin/python
2
3from os import path
4from email.utils import parseaddr
5from glob import glob
6from setuptools import setup
7
8try:
9    from debian_bundle.changelog import Changelog
10    from debian_bundle.deb822 import Deb822
11    version = Changelog(open(path.join(path.dirname(__file__), 'debian/changelog')).read()).\
12        get_version().full_version
13
14    maintainer_full = Deb822(open(path.join(path.dirname(__file__), 'debian/control')))['Maintainer']
15    maintainer, maintainer_email = parseaddr(maintainer_full)
16except:
17    version = '0.0.0'
18    maintainer, maintainer_email = parseaddr('Invirt project <invirt@mit.edu>')
19
20setup(
21    name='xvm.authz.locker',
22    version=version,
23    maintainer=maintainer,
24    maintainer_email=maintainer_email,
25   
26    py_modules = ['invirt.authz'],
27    package_dir = {'': 'python'},
28)
Note: See TracBrowser for help on using the repository browser.