update README + bump to 0.2
This commit is contained in:
parent
fc6be40028
commit
0dd7d484c0
3 changed files with 38 additions and 44 deletions
37
README.rst
37
README.rst
|
@ -57,34 +57,23 @@ Usage
|
|||
Usage: buildozer [target] [command1] [command2]
|
||||
|
||||
Available targets:
|
||||
android
|
||||
Android target, based on python-for-android project
|
||||
ios
|
||||
iOS target, based on kivy-ios project. (not working yet.)
|
||||
android Android target, based on python-for-android project
|
||||
ios iOS target, based on kivy-ios project. (not working yet.)
|
||||
|
||||
Global commands (without target):
|
||||
clean
|
||||
Clean the whole Buildozer environment.
|
||||
help
|
||||
Show the Buildozer help.
|
||||
init
|
||||
Create a initial buildozer.spec in the current directory
|
||||
setdefault
|
||||
Set the default command to do when to arguments are given
|
||||
clean Clean the whole Buildozer environment.
|
||||
help Show the Buildozer help.
|
||||
init Create a initial buildozer.spec in the current directory
|
||||
setdefault Set the default command to do when to arguments are given
|
||||
version Show the Buildozer version
|
||||
|
||||
Target commands:
|
||||
clean
|
||||
Clean the target environment
|
||||
update
|
||||
Update the target dependencies
|
||||
debug
|
||||
Build the application in debug mode
|
||||
release
|
||||
Build the application in release mode
|
||||
deploy
|
||||
Install the application on the device
|
||||
run
|
||||
Run the application on the device
|
||||
clean Clean the target environment
|
||||
update Update the target dependencies
|
||||
debug Build the application in debug mode
|
||||
release Build the application in release mode
|
||||
deploy Deploy the application on the device
|
||||
run Run the application on the device
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ Layout directory for buildozer:
|
|||
|
||||
'''
|
||||
|
||||
__version__ = '0.2'
|
||||
|
||||
import shelve
|
||||
import zipfile
|
||||
import sys
|
||||
|
@ -301,9 +303,8 @@ class Buildozer(object):
|
|||
print
|
||||
print 'Available targets:'
|
||||
for target, m in self.targets():
|
||||
print ' ' + target
|
||||
doc = m.__doc__.strip().splitlines()[0]
|
||||
print ' ' + doc
|
||||
doc = m.__doc__.strip().splitlines()[0].strip()
|
||||
print ' {0:<18} {1}'.format(target, doc)
|
||||
|
||||
print
|
||||
print 'Global commands (without target):'
|
||||
|
@ -312,25 +313,18 @@ class Buildozer(object):
|
|||
name = cmd[4:]
|
||||
meth = getattr(self, cmd)
|
||||
|
||||
print ' ' + name
|
||||
doc = '\n'.join([' ' + x for x in
|
||||
meth.__doc__.strip().splitlines()])
|
||||
print doc
|
||||
doc = [x for x in
|
||||
meth.__doc__.strip().splitlines()][0].strip()
|
||||
print ' {0:<18} {1}'.format(name, doc)
|
||||
|
||||
print
|
||||
print 'Target commands:'
|
||||
print ' clean'
|
||||
print ' Clean the target environment'
|
||||
print ' update'
|
||||
print ' Update the target dependencies'
|
||||
print ' debug'
|
||||
print ' Build the application in debug mode'
|
||||
print ' release'
|
||||
print ' Build the application in release mode'
|
||||
print ' deploy'
|
||||
print ' Deploy the application on the device'
|
||||
print ' run'
|
||||
print ' Run the application on the device'
|
||||
print ' clean Clean the target environment'
|
||||
print ' update Update the target dependencies'
|
||||
print ' debug Build the application in debug mode'
|
||||
print ' release Build the application in release mode'
|
||||
print ' deploy Deploy the application on the device'
|
||||
print ' run Run the application on the device'
|
||||
print
|
||||
|
||||
|
||||
|
@ -348,6 +342,10 @@ class Buildozer(object):
|
|||
self.usage()
|
||||
exit(0)
|
||||
|
||||
if '--version' in args:
|
||||
print 'Buildozer {0}'.format(__version__)
|
||||
exit(0)
|
||||
|
||||
if not args:
|
||||
self.run_default()
|
||||
return
|
||||
|
@ -431,6 +429,11 @@ class Buildozer(object):
|
|||
self.ensure_build_layout()
|
||||
self.state['buildozer:defaultcommand'] = args
|
||||
|
||||
def cmd_version(self, *args):
|
||||
'''Show the Buildozer version
|
||||
'''
|
||||
print 'Buildozer {0}'.format(__version__)
|
||||
|
||||
|
||||
def run():
|
||||
Buildozer().run_command(sys.argv[1:])
|
||||
|
|
4
setup.py
4
setup.py
|
@ -1,8 +1,10 @@
|
|||
from distutils.core import setup
|
||||
|
||||
import buildozer
|
||||
|
||||
setup(
|
||||
name='buildozer',
|
||||
version='0.1',
|
||||
version=buildozer.__version__,
|
||||
author='Mathieu Virbel',
|
||||
author_email='mat@kivy.org',
|
||||
url='http://github.com/kivy/buildozer',
|
||||
|
|
Loading…
Add table
Reference in a new issue