mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 09:56:13 +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:
parent
6ec9c4f911
commit
aaa41561be
7
osc-wrapper.py
Normal file
7
osc-wrapper.py
Normal 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
1
osc/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
__all__ = ['core', 'commandline', 'othermethods']
|
17
setup.py
Executable file
17
setup.py
Executable 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'],
|
||||||
|
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user