-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
executable file
·43 lines (37 loc) · 1.02 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python
# $Revision $
from distutils.core import setup, Command
import glob
import os
import sys
import unittest
# Get version from pkg index
from opensso import __version__
class CleanCommand(Command):
description = "cleans up non-package files. (dist, build, etc.)"
user_options = []
def initialize_options(self):
self.files = None
def finalize_options(self):
self.files = './build ./dist ./MANIFEST ./*.pyc examples/*.pyc ./*.egg-info'
def run(self):
print 'Cleaning: %s' % self.files
os.system('rm -rf ' + self.files)
long_desc="""
Python interface for OpenSSO/OpenAM.
"""
setup(
name='python-opensso',
version=__version__,
author='Jathan McCollum',
author_email='jathan+github@gmail.com',
license='MIT',
py_modules=['opensso'],
url='https://github.com/jathanism/python-opensso/',
description='Python OpenSSO/OpenAM interface',
long_description=long_desc,
scripts=[],
cmdclass = {
'clean': CleanCommand,
}
)