Skip to content

Commit 2403147

Browse files
committed
Merge pull request #339 from kived/release-0.32
prepare for release 0.32
2 parents 77fc345 + 48cd8f2 commit 2403147

File tree

5 files changed

+83
-28
lines changed

5 files changed

+83
-28
lines changed

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Change Log
22

3+
## [v0.32](https://github.com/kivy/buildozer/tree/v0.32) (2016-05-09)
4+
[Full Changelog](https://github.com/kivy/buildozer/compare/v0.31...v0.32)
5+
6+
- Added `source.include_patterns` app option
7+
- Added `android_new` target to use the python-for-android revamp toolchain
8+
- Added `build_dir` and `bin_dir` buildozer options
9+
- Stopped using pip `--download-cache` flag, as it has been removed from recent pip versions
10+
- Always use ios-deploy 1.7.0 - newer versions are completely different
11+
- Fix bugs with Unicode app titles
12+
- Fix bugs with directory handling
13+
- Support using a custom kivy-ios dir
14+
- Add `adb` command to android/android_new targets
15+
- Disable bitcode on iOS builds (needed for newer Xcode)
16+
- Fix `api`/`minapi` values for android target
17+
- Use kivy-ios to build icons for all supported sizes
18+
- Fix p4a branch handling
19+
- Let p4a handle pure-Python packages (android_new)
20+
- Use colored output in p4a (android_new)
21+
322
## [v0.31](https://github.com/kivy/buildozer/tree/v0.31) (2016-01-07)
423
[Full Changelog](https://github.com/kivy/buildozer/compare/0.30...v0.31)
524

@@ -350,4 +369,4 @@
350369
## [0.2](https://github.com/kivy/buildozer/tree/0.2) (2012-12-20)
351370

352371

353-
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
372+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*

README.rst

Lines changed: 49 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,61 +23,86 @@ Usage example
2323

2424
#. Install buildozer::
2525

26-
# latest dev
26+
# via pip (latest stable, recommended)
27+
sudo pip install buildozer
28+
29+
# latest dev version
30+
sudo pip install https://github.com/kivy/buildozer/archive/master.zip
31+
32+
# git clone, for working on buildozer
2733
git clone https://github.com/kivy/buildozer
2834
cd buildozer
29-
sudo python2.7 setup.py install
30-
31-
# via pip (latest stable)
32-
sudo pip install buildozer
35+
python setup.py build
36+
sudo pip install -e .
3337

3438
#. Go into your application directory and do::
3539

3640
buildozer init
3741
# edit the buildozer.spec, then
38-
buildozer android debug deploy run
42+
buildozer android_new debug deploy run
3943

4044
Example of commands::
4145

4246
# buildozer target command
43-
buildozer android clean
44-
buildozer android update
45-
buildozer android deploy
46-
buildozer android debug
47-
buildozer android release
47+
buildozer android_new clean
48+
buildozer android_new update
49+
buildozer android_new deploy
50+
buildozer android_new debug
51+
buildozer android_new release
4852

4953
# or all in one (compile in debug, deploy on device)
50-
buildozer android debug deploy
54+
buildozer android_new debug deploy
5155

5256
# set the default command if nothing set
53-
buildozer setdefault android debug deploy run
57+
buildozer setdefault android_new debug deploy run
5458

5559

5660
Usage
5761
-----
5862

5963
::
6064

61-
Usage: buildozer [--verbose] [target] [command1] [command2]
65+
Usage:
66+
buildozer [--profile <name>] [--verbose] [target] <command>...
67+
buildozer --version
6268

6369
Available targets:
64-
android Android target, based on python-for-android project
65-
ios iOS target, based on kivy-ios project. (not working yet.)
70+
android Android target, based on python-for-android project (old toolchain)
71+
ios iOS target, based on kivy-ios project
72+
android_new Android target, based on python-for-android project (new toolchain)
6673

6774
Global commands (without target):
68-
clean Clean the whole Buildozer environment.
75+
distclean Clean the whole Buildozer environment.
6976
help Show the Buildozer help.
7077
init Create a initial buildozer.spec in the current directory
71-
setdefault Set the default command to do when no arguments are given
78+
serve Serve the bin directory via SimpleHTTPServer
79+
setdefault Set the default command to run when no arguments are given
7280
version Show the Buildozer version
7381

7482
Target commands:
75-
clean Clean the target environment
76-
update Update the target dependencies
77-
debug Build the application in debug mode
78-
release Build the application in release mode
79-
deploy Deploy the application on the device
80-
run Run the application on the device
83+
clean Clean the target environment
84+
update Update the target dependencies
85+
debug Build the application in debug mode
86+
release Build the application in release mode
87+
deploy Deploy the application on the device
88+
run Run the application on the device
89+
serve Serve the bin directory via SimpleHTTPServer
90+
91+
Target "android" commands:
92+
adb Run adb from the Android SDK. Args must come after --, or
93+
use --alias to make an alias
94+
logcat Show the log from the device
95+
96+
Target "ios" commands:
97+
list_identities List the available identities to use for signing.
98+
xcode Open the xcode project.
99+
100+
Target "android_new" commands:
101+
adb Run adb from the Android SDK. Args must come after --, or
102+
use --alias to make an alias
103+
logcat Show the log from the device
104+
p4a Run p4a commands. Args must come after --, or use --alias
105+
to make an alias
81106

82107

83108

buildozer/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
77
'''
88

9-
__version__ = '0.32dev'
9+
__version__ = '0.32'
1010

1111
import os
1212
import re
1313
import sys
1414
import zipfile
1515
import select
1616
import codecs
17+
import textwrap
1718
from buildozer.jsonstore import JsonStore
1819
from sys import stdout, stderr, exit
1920
from re import search
@@ -957,7 +958,8 @@ def usage(self):
957958
for command, doc in commands:
958959
if not doc:
959960
continue
960-
doc = doc.strip().splitlines()[0].strip()
961+
doc = textwrap.fill(textwrap.dedent(doc).strip(), 59,
962+
subsequent_indent=' ' * 21)
961963
print(' {0:<18} {1}'.format(command, doc))
962964

963965
print('')
@@ -1069,7 +1071,7 @@ def cmd_help(self, *args):
10691071
self.usage()
10701072

10711073
def cmd_setdefault(self, *args):
1072-
'''Set the default command to do when to arguments are given
1074+
'''Set the default command to run when no arguments are given
10731075
'''
10741076
self.check_build_layout()
10751077
self.state['buildozer:defaultcommand'] = args

buildozer/targets/android.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,11 @@ def serials(self):
846846
return serials
847847

848848
def cmd_adb(self, *args):
849+
'''
850+
Run adb from the Android SDK.
851+
Args must come after --, or use
852+
--alias to make an alias
853+
'''
849854
self.check_requirements()
850855
self.install_platform()
851856
args = args[0]

buildozer/targets/android_new.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ def cmd_run(self, *args):
102102
return super(TargetAndroidNew, self).cmd_run(*args)
103103

104104
def cmd_p4a(self, *args):
105+
'''
106+
Run p4a commands. Args must come after --, or
107+
use --alias to make an alias
108+
'''
105109
self.check_requirements()
106110
self.install_platform()
107111
args = args[0]

0 commit comments

Comments
 (0)