1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-09 22:36:14 +01:00

- reorganize source to build a python module

- add setup.py
- add osc-wrapper.py as a wrapper script, so the module can be used when
  installed in the system as well as in the uninstalled source directory
This commit is contained in:
Dr. Peter Poeml 2006-05-10 14:21:51 +00:00
parent 6ec9c4f911
commit aaa41561be
7 changed files with 25 additions and 0 deletions

View File

7
osc-wrapper.py Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env python
from osc import commandline
from osc.core import init_basicauth
init_basicauth()
commandline.main()

1
osc/__init__.py Normal file
View File

@ -0,0 +1 @@
__all__ = ['core', 'commandline', 'othermethods']

17
setup.py Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env python
from distutils.core import setup
setup(name='osc',
version='0.2',
description='opensuse commander',
author='Peter Poeml',
author_email='poeml@suse.de',
license='GPL',
url='https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/clientlib/python/osc/',
packages=['osc'],
scripts=['osc_hotshot.py', 'osc-wrapper.py'],
)