Skip to content

Release 2021.09.05 #2488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 201 commits into from
Sep 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
98ee79f
Merge pull request #2226 from kivy/master
inclement Jun 2, 2020
17f6e1e
:rotating_light: Depreciation warning fixes
AndreMiras Jun 2, 2020
605b686
Fixed KeyError not found
sak96 Jun 3, 2020
0c7ee85
Merge pull request #2229 from sak96/bug/missing_imports_python_activity
AndreMiras Jun 3, 2020
9c601cf
Merge pull request #2227 from AndreMiras/feature/fix_warnings
AndreMiras Jun 5, 2020
e060e9a
:arrow_up: Bumps to OpenJDK 13
AndreMiras Jun 3, 2020
45b6190
:bug: Fixes service_only and webview symbol errors, closes #2228
AndreMiras Jun 5, 2020
34dba98
Merge pull request #2231 from AndreMiras/feature/bumps_to_openjdk13
AndreMiras Jun 6, 2020
aff8c42
Merge pull request #2233 from AndreMiras/feature/ticket2228_fix_symbo…
AndreMiras Jun 6, 2020
ef2e7a9
:bento: Add CHANGELOG.md (#2232)
opacam Jun 8, 2020
add82d1
Updated gradle plugin version to 3.5.2
shashi278 Jun 8, 2020
92a0a83
:green_heart: Fixes Travis build post OpenJDK bump
AndreMiras Jun 8, 2020
e9dc942
Merge pull request #2235 from AndreMiras/feature/fix_travis_build
AndreMiras Jun 8, 2020
cf71b4d
Added missing semicolon on service-only bootstrap
Swpolo Jun 10, 2020
61be5d4
Merge pull request #2236 from Swpolo/patch-1
AndreMiras Jun 10, 2020
96edcd6
Bump libpq version (#2245)
Jun 25, 2020
3d9fe27
Fix runtime psycopg2 error (#2246)
Jun 25, 2020
c61304a
added --activity-class-name parameters and make possible to use custo…
vesellov Jun 21, 2020
392d57f
Merge pull request #2248 from vesellov/master
AndreMiras Jun 28, 2020
e028801
:sparkles: Add libwebp recipe
opacam Jul 5, 2020
70b4b73
:sparkles: Rework of Pillow recipe adding WebP support
opacam Jul 5, 2020
ed474f1
LogFile: rename .buffer (to fix newer flask/click)
obfusk Jul 17, 2020
4db3116
Add Recipe for Kivy3 module (#2263)
excepterror Jul 19, 2020
df2178b
Fix Java code indentation (#2273)
obfusk Aug 3, 2020
6180c8a
build python3 with loadable-sqlite-extensions
obfusk Aug 3, 2020
9ea2d0a
add recipe for libpcre (#2276)
obfusk Aug 4, 2020
2321441
update python3 & hostpython3 to 3.8.5
obfusk Aug 5, 2020
7d64516
update flask to 1.1.2
obfusk Aug 5, 2020
d502ea5
update libffi to 3.3
obfusk Aug 5, 2020
a3c174d
update openssl to 1.1.1g
obfusk Aug 5, 2020
2541a01
update pyjnius to 1.3.0
obfusk Aug 5, 2020
b21e294
update setuptools to 49.2.1
obfusk Aug 5, 2020
ef6fff0
update six to 1.15.0
obfusk Aug 5, 2020
f0df4cd
update sqlite3 to 3.32.3
obfusk Aug 5, 2020
d97f2c4
Merge pull request #2287 from obfusk/update-libffi
AndreMiras Aug 5, 2020
e3b416d
Merge pull request #2286 from obfusk/update-openssl
AndreMiras Aug 5, 2020
a30a3f0
Merge pull request #2285 from obfusk/update-pyjnius
AndreMiras Aug 5, 2020
802c84c
Merge pull request #2284 from obfusk/update-setuptools
AndreMiras Aug 5, 2020
1da83ae
Merge pull request #2282 from obfusk/update-flask
AndreMiras Aug 5, 2020
f1cce50
Merge pull request #2283 from obfusk/update-six
AndreMiras Aug 5, 2020
14ca8e1
Merge pull request #2280 from obfusk/update-sqlite3
AndreMiras Aug 5, 2020
53bea01
fix travis
obfusk Aug 4, 2020
f7434de
Merge pull request #2275 from obfusk/patch-4
AndreMiras Aug 5, 2020
c7186b3
Merge pull request #2281 from obfusk/update-python
AndreMiras Aug 5, 2020
29a79c5
Merge pull request #2279 from obfusk/patch-6
AndreMiras Aug 5, 2020
55588ab
tiny whitespace fix in buildoptions.rst
obfusk Aug 7, 2020
754439b
remove cruft from webview_includes/_load.html
obfusk Aug 7, 2020
7bf458f
Merge pull request #2288 from obfusk/patch-7
AndreMiras Aug 7, 2020
01518f5
download_file: show error + exponential sleep
obfusk Aug 11, 2020
0039087
fix test_download_file_scheme_https_oserror
obfusk Aug 11, 2020
5a32b3c
(host)python3: rm version check for pyconfig patch
obfusk Aug 11, 2020
da46607
use https download for boost & zope
obfusk Aug 11, 2020
4b538d1
Merge pull request #2293 from obfusk/use-https
AndreMiras Aug 11, 2020
f2946aa
Merge pull request #2292 from obfusk/fix-osx
AndreMiras Aug 11, 2020
6235e93
Merge pull request #2291 from obfusk/patch-9
AndreMiras Aug 11, 2020
ebb3946
Merge pull request #2289 from obfusk/patch-8
AndreMiras Aug 11, 2020
0c7efcd
Merge pull request #2264 from obfusk/patch-1
AndreMiras Aug 11, 2020
524d621
Allow using lottie files for splashscreen (SDL2 bootstrap) (#2296)
tshirtman Aug 12, 2020
be2cdbb
Add manifestPlaceholders
misl6 Aug 19, 2020
5ae7676
Merge pull request #2301 from misl6/feature/manifestPlaceholders
AndreMiras Aug 20, 2020
e84b951
Merge pull request #2255 from opacam/feature-libwebp-support
AndreMiras Aug 22, 2020
e288a94
Merge pull request #2256 from opacam/feature-pillow-with-webp-support
AndreMiras Aug 22, 2020
7a934f3
Allow using background color with lottie splashscreen (#2305)
tshirtman Aug 30, 2020
b3ac38a
Add possibility to add a backup rules xml file (#2208)
tcdude Aug 31, 2020
d623382
Output the message to stderr so it does not break requirements.txt ge…
rambo Sep 11, 2020
7bcdbbd
Merge pull request #2314 from rambo/issue-2313
AndreMiras Sep 11, 2020
690dd18
Call cython via the setuptools entrypoint, fixes #2311 (#2312)
rambo Sep 14, 2020
0382da6
Update __init__.py
mp-007 Sep 25, 2020
8394ebd
Add recipe for https://docs.aiohttp.org/en/stable/
rambo Oct 5, 2020
de8f339
`libpython3.8m.so` should not have `m` suffix
davidhewitt Aug 4, 2020
b6a6d46
Update versions of ffmpeg and ffpyplayer recipes. Do not enable build…
rnixx Oct 15, 2020
862e66f
missing mActivity
zworkb Oct 19, 2020
03f2692
android: call non-static methods on .mActivity (#2341)
obfusk Oct 28, 2020
7d12db0
Merge pull request #2339 from zworkb/develop
inclement Nov 6, 2020
b5e6067
Merge pull request #2323 from marcets/develop
inclement Nov 9, 2020
07b0b04
added missing digest support to recipes
fuzzyTew Nov 9, 2020
f7fbc38
Merge pull request #2351 from fuzzyTew/hashsums
AndreMiras Nov 14, 2020
6e48aa9
:pencil2: setup.py: Fix dependency syntax (#2354)
jayvdb Dec 3, 2020
63db01c
:hammer: Support running tests on any arch (#2355)
jayvdb Dec 3, 2020
e62d33c
:green_heart: fix CI (#2368)
obfusk Dec 3, 2020
0c7d273
support activity_launch_mode in webview bootstrap
obfusk Dec 2, 2020
9c84ebd
use WebView_AndroidGetJNIEnv for non-sdl2
obfusk Oct 19, 2020
54d63fa
use main lib for non-sdl2
obfusk Oct 19, 2020
39c701a
add android.permissions p4a module stuff to webview
obfusk Oct 20, 2020
f19d3f7
Merge pull request #2335 from rnixx/ffmpeg_ffpyplayer_upgrade_and_non…
AndreMiras Dec 7, 2020
fb96b2b
Add service information for buildozer.spec
xloem Dec 15, 2020
6892b35
Pull master-only commits into develop: Support for native services
inclement Dec 19, 2020
f79343b
Merge pull request #2376 from inclement/fix_master_only_merges
inclement Dec 22, 2020
981ede6
fix for audiostream/issues/25
xloem Dec 19, 2020
406a258
docs: fix simple typo, pacakged -> packaged (#2377)
timgates42 Dec 23, 2020
db615eb
:bug: Fixes pip command on Travis and bumps actions/setup-python
AndreMiras Dec 28, 2020
73a4c52
Merge pull request #2382 from AndreMiras/feature/fix_travis
AndreMiras Dec 28, 2020
212572d
fix travis
obfusk Dec 28, 2020
60cf882
:arrow_up: Updates to Kivy2
kuzeyron Dec 28, 2020
f592348
Merge pull request #2383 from obfusk/patch-12
AndreMiras Dec 28, 2020
21ad9ba
Merge pull request #2384 from kuzeyron/kivy2_recipe
AndreMiras Dec 28, 2020
61a4d3c
Merge pull request #2375 from xloem/audiostream
AndreMiras Dec 28, 2020
53081b8
Merge pull request #2372 from xloem/patch-1
AndreMiras Dec 28, 2020
5da1684
Merge pull request #2367 from obfusk/patch-10
AndreMiras Dec 28, 2020
fd4bbec
Merge pull request #2340 from obfusk/fix-webview-jni
AndreMiras Dec 28, 2020
0db8184
Merge pull request #2332 from advian-oss/aiohttp_recipe
AndreMiras Dec 28, 2020
cb760ae
Merge pull request #2278 from davidhewitt/patch-1
AndreMiras Dec 28, 2020
f2fff78
Merge pull request #2234 from shashi278/patch-1
AndreMiras Dec 28, 2020
c023523
Enable AndroidX
Dec 29, 2020
378b025
pep8 whitespace
Dec 29, 2020
4045557
webview: add mOpenExternalLinksInBrowser field
obfusk Dec 30, 2020
34f0c40
webview: add enableZoom() method
obfusk Dec 30, 2020
358fcbf
Update Pymunk recipe to 6.0.0
viblo Dec 31, 2020
66a292c
Merge pull request #2389 from viblo/pymunk-6.0.0
AndreMiras Jan 1, 2021
3d63a8d
support Python 3.9
obfusk Jan 2, 2021
3850b72
Merge pull request #2394 from obfusk/python3.9-support
AndreMiras Jan 2, 2021
548a908
Merge pull request #2387 from obfusk/webview-ext-browser
AndreMiras Jan 2, 2021
cd81a6f
Merge pull request #2386 from obfusk/webview-zooming
AndreMiras Jan 2, 2021
a81fef3
update openssl to 1.1.1i
obfusk Jan 2, 2021
a2ebea2
update sqlite3 to 3.34.0
obfusk Jan 2, 2021
210a1a2
Fix Pymunk crash on older versions of Android
viblo Jan 3, 2021
c6067df
don't run git pull when not on a branch
obfusk Jan 4, 2021
3ed4cf0
Merge pull request #2397 from obfusk/sqlite3-3.34.0
AndreMiras Jan 5, 2021
16f1c26
Merge pull request #2400 from obfusk/fix-git-pull
AndreMiras Jan 5, 2021
929d727
Merge pull request #2399 from viblo/pymunk-crash
AndreMiras Jan 5, 2021
c37c304
Merge pull request #2396 from obfusk/openssl-1.1.1i
AndreMiras Jan 5, 2021
7f4652a
recipes: add scipy support (#2370)
mzakharo Jan 5, 2021
aadcfc4
Recipe for argon2-cffi (#2398)
Arjun-Somvanshi Jan 5, 2021
eafc5a9
modifications for reproducible builds
obfusk Dec 31, 2020
463aa55
Merge pull request #2390 from obfusk/reproducible-builds
AndreMiras Jan 5, 2021
fe5c909
recipes: scipy - fix build for armeabi-v7a (#2402)
mzakharo Jan 6, 2021
5580004
print recipe ENV on failure and P4A_FULL_DEBUG
mzakharo Jan 7, 2021
0663e54
Merge pull request #2403 from mzakharo/printenv
AndreMiras Jan 7, 2021
1518d9c
PyZQM recipe needs setuptools, list it explicitly in deps (#2404)
rambo Jan 7, 2021
4fc5de8
Added ability to set input type on android
dwmoffatt Nov 27, 2020
6a9f28a
Merge pull request #2405 from dwmoffatt/Rebase-added-ability-to-set-i…
AndreMiras Jan 10, 2021
b809239
Update quickstart.rst macOS brew cask command
yestoday-tv Jan 13, 2021
9e5810d
Merge pull request #2407 from yestoday-tv/patch-3
AndreMiras Jan 13, 2021
23d6a72
update sqlite3
obfusk Jan 22, 2021
4280186
update setuptools
obfusk Jan 22, 2021
75e0164
Merge pull request #2408 from obfusk/patch-13
AndreMiras Jan 22, 2021
fe5d722
Merge pull request #2409 from obfusk/patch-14
AndreMiras Jan 22, 2021
137411f
Add support for Kotlin packages
Jan 24, 2021
b04dd04
webview: put webview_includes in assets dir
obfusk Jan 26, 2021
7aa5db8
strip null bytes in call to androidembed.log()
obfusk Feb 1, 2021
49de421
added --extra-manifest-application-arguments, --activity-class-name a…
vesellov Jul 8, 2020
899afae
Build option default ON for demo.
Feb 12, 2021
e5be9d1
My error needed a new branch first
Feb 12, 2021
e59ab9d
retrigger checks
Feb 12, 2021
ab65c48
Merge pull request #2338 from vesellov/develop
inclement Feb 14, 2021
3c25377
travis: update pip
obfusk Feb 17, 2021
5983292
update openssl (#2421)
obfusk Feb 21, 2021
27f7845
retrigger checks
Feb 22, 2021
54ba2c8
retrigger checks
Feb 22, 2021
28002cb
trigger GitHub actions
Feb 22, 2021
704b88b
Trigger Test
Android-for-Python Feb 22, 2021
cec0254
Trivial to force checks
Android-for-Python Feb 22, 2021
b10a796
Merge pull request #2422 from obfusk/patch-17
AndreMiras Feb 22, 2021
b599430
Merge remote-tracking branch 'upstream/develop' into enable_androidx
RobertFlatt Feb 22, 2021
9c8e6d2
Update __init__.py
Neizvestnyj Feb 25, 2021
0aae4b8
webview: flush cookies & improve shouldOverrideUrlLoading
obfusk Feb 17, 2021
6c071d6
Reintroduce documentation of android module
tito Feb 28, 2021
484e046
Merge pull request #2416 from obfusk/patch-15
tito Feb 28, 2021
9c4fff9
Merge pull request #2429 from Neizvestnyj/patch-1
AndreMiras Feb 28, 2021
c48db0c
setup.py: add *.diff to package_data
obfusk Mar 5, 2021
96639a0
set urllib user-agent
obfusk Mar 5, 2021
2bf2c6a
Merge pull request #2437 from obfusk/patch-19
AndreMiras Mar 5, 2021
7822105
Merge pull request #2436 from obfusk/patch-18
AndreMiras Mar 5, 2021
92929c4
Groestlcoin_hash depends on setuptools (#2438)
gruve-p Mar 9, 2021
2df025f
Merge remote-tracking branch 'upstream/develop' into enable_androidx
RobertFlatt Mar 12, 2021
4d84256
Merge pull request #2424 from obfusk/cookies-and-loadurl
AndreMiras Mar 14, 2021
8b13423
Add libvpx recipe, reference it in ffpyplayer_codecs and ffmpeg
Cheaterman Mar 15, 2021
8fd7a1c
update openssl
obfusk Mar 25, 2021
7a0a84e
Merge pull request #2443 from obfusk/patch-20
AndreMiras Mar 26, 2021
15dce3c
Merge pull request #2385 from RobertFlatt/enable_androidx
inclement Mar 30, 2021
52e16db
Fix ImportError bug: cannot locate symbol "modf"
Neizvestnyj Apr 4, 2021
551d81b
Fix `ImportError` bug: `cannot locate symbol "modf"`
Neizvestnyj Apr 5, 2021
6ab4bda
Merge pull request #2445 from Neizvestnyj/patch-4
inclement Apr 5, 2021
4bbbb1c
build.py: also clean() tarfile directory entries
obfusk Apr 8, 2021
bf76add
Merge pull request #2447 from obfusk/patch-21
AndreMiras Apr 8, 2021
bcfec01
update sqlite3
obfusk Apr 21, 2021
8336cea
Merge pull request #2449 from obfusk/patch-22
AndreMiras Apr 21, 2021
53a2223
Merge pull request #2440 from Cheaterman/add_libvpx_recipe
AndreMiras Apr 25, 2021
c148a75
Merge pull request #2432 from kivy/fix-doc-missing-android
AndreMiras Apr 25, 2021
8ab7c95
Merge pull request #2412 from obfusk/webview-assets
AndreMiras Apr 25, 2021
61b034b
update (host)python3 to 3.8.9
obfusk Apr 25, 2021
a8480c5
Merge pull request #2451 from obfusk/python-3.8.9
AndreMiras Apr 25, 2021
832cab5
Websocket-client updated to 1.0.1 from 0.40.0
akshayaurora May 28, 2021
5a51f2b
Merge pull request #2458 from kivy/Websocket_0_4_0_to_1_0_1
AndreMiras May 28, 2021
dc2806e
Move PythonActivityUtil.unpackData to PythonUtil.unpackData (#2462)
rnixx Jun 12, 2021
28411b7
Avoids build error for opencv and bumps version to 4.5.1 (#2419)
thescheff Jun 14, 2021
79f9030
android: add support for adaptive icon/launcher (#2446)
SomberNight Jun 14, 2021
f004273
fixed redirection for download liblzma (#2452)
td1803 Jun 14, 2021
f538561
Add missing mipmap directories to bootstraps. Otherwise copying the i…
rnixx Jun 17, 2021
4b1c7d8
Adds libm to Pillow recipe (#2465)
Sahil-pixel Jun 17, 2021
12e54ca
Updated version of pygame from 2.0.0-dev7 to 2.0.1
ljnath Jun 30, 2021
a633193
Merge pull request #2466 from ljnath/bump-pygame-to-latest
AndreMiras Jun 30, 2021
90e296e
Fix bad library found by ctypes for 64-bit arch (#2468)
macdems Jul 8, 2021
134468f
Add *.diff to manifest and package_data
viblo Jul 15, 2021
a0cb7b4
Merge pull request #2471 from viblo/missing_diff
AndreMiras Jul 16, 2021
d31942f
Merge pull request #2469 from macdems/develop
AndreMiras Jul 25, 2021
19e1e27
fix pandas recipe (#2478)
mzakharo Jul 26, 2021
505c3df
Recipe for pydantic (#2480)
FilipeMarch Aug 8, 2021
1ca2f8c
:arrow_up: Upgrade grunt version (#2484)
Zen-CODE Aug 22, 2021
1d8f773
Drop travis-ci.org and use github-actions for pypi release (#2487)
misl6 Sep 5, 2021
3685388
Update CHANGELOG.md & version
misl6 Sep 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# used by coveralls.io, refs:
# https://coveralls-python.readthedocs.io/en/latest/usage/tox.html#travisci
# https://coveralls-python.readthedocs.io/en/latest/usage/tox.html#github-actions
CI
TRAVIS
TRAVIS_BRANCH
TRAVIS_JOB_ID
TRAVIS_PULL_REQUEST
GITHUB_ACTIONS
GITHUB_REF
GITHUB_SHA
GITHUB_HEAD_REF
GITHUB_REPOSITORY
GITHUB_RUN_ID
GITHUB_TOKEN
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Checkout python-for-android
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1.1.0
uses: actions/setup-python@v2.2.1
with:
python-version: 3.7
- name: Run flake8
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Checkout python-for-android
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1.1.0
uses: actions/setup-python@v2.2.1
with:
python-version: ${{ matrix.python-version }}
- name: Tox tests
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PyPI release
on: [push]

jobs:
pypi_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade setuptools wheel twine
- name: Build
run: |
python setup.py sdist bdist_wheel
twine check dist/*
- name: Publish package
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.pypi_password }}
70 changes: 0 additions & 70 deletions .travis.yml

This file was deleted.

1,659 changes: 1,659 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ENV HOME_DIR="/home/${USER}"
ENV WORK_DIR="${HOME_DIR}/app" \
PATH="${HOME_DIR}/.local/bin:${PATH}" \
ANDROID_HOME="${HOME_DIR}/.android" \
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
JAVA_HOME="/usr/lib/jvm/java-13-openjdk-amd64"


# install system dependencies
Expand All @@ -69,7 +69,7 @@ RUN dpkg --add-architecture i386 \
libssl-dev \
libstdc++6:i386 \
libtool \
openjdk-8-jdk \
openjdk-13-jdk \
patch \
pkg-config \
python3 \
Expand Down Expand Up @@ -98,8 +98,8 @@ RUN mkdir ${ANDROID_HOME} && chown --recursive ${USER} ${HOME_DIR} ${ANDROID_HOM
USER ${USER}

# Download and install android's NDK/SDK
COPY ci/makefiles/android.mk /tmp/android.mk
RUN make --file /tmp/android.mk target_os=linux \
COPY --chown=user:user ci/makefiles/android.mk /tmp/android.mk
RUN make --file /tmp/android.mk \
&& sudo rm /tmp/android.mk

# install python-for-android from current branch
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ recursive-include doc *
prune doc/build

recursive-include pythonforandroid *.py *.tmpl biglink liblink
recursive-include pythonforandroid/recipes *.py *.patch *.c *.pyx Setup *.h
recursive-include pythonforandroid/recipes *.py *.patch *.diff *.c *.pyx Setup *.h

recursive-include pythonforandroid/bootstraps *.properties *.xml *.java *.tmpl *.txt *.png *.aidl *.py *.sh *.c *.h *.html *.patch

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ all: virtualenv

$(VIRTUAL_ENV):
python3 -m venv $(VIRTUAL_ENV)
$(PIP) install Cython==0.29.19
$(PIP) install Cython
$(PIP) install -e .

virtualenv: $(VIRTUAL_ENV)
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
python-for-android
==================

[![Build Status](https://travis-ci.org/kivy/python-for-android.svg?branch=develop)](https://travis-ci.org/kivy/python-for-android)
[![Unit tests & build apps](https://github.com/kivy/python-for-android/workflows/Unit%20tests%20&%20build%20apps/badge.svg?branch=develop)](https://github.com/kivy/python-for-android/actions?query=workflow%3A%22Unit+tests+%26+build+apps%22)
[![Coverage Status](https://coveralls.io/repos/github/kivy/python-for-android/badge.svg?branch=develop&kill_cache=1)](https://coveralls.io/github/kivy/python-for-android?branch=develop)
[![Backers on Open Collective](https://opencollective.com/kivy/backers/badge.svg)](#backers)
Expand Down
2 changes: 2 additions & 0 deletions ci/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class TargetPython(Enum):
# mpmath package with a version >= 0.19 required
'sympy',
'vlc',
# need extra gfortran NDK system add-on
'lapack', 'scipy',
])

BROKEN_RECIPES = {
Expand Down
28 changes: 16 additions & 12 deletions ci/makefiles/android.mk
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
# Downloads and installs the Android SDK depending on supplied platform: darwin or linux

# We must provide a platform (darwin or linux) and we need JAVA_HOME defined
ifndef target_os
$(error target_os is not set...aborted!)
endif

# Those android NDK/SDK variables can be override when running the file
ANDROID_NDK_VERSION ?= 19b
ANDROID_SDK_TOOLS_VERSION ?= 4333796
ANDROID_SDK_BUILD_TOOLS_VERSION ?= 28.0.2
ANDROID_SDK_TOOLS_VERSION ?= 6514223
ANDROID_SDK_BUILD_TOOLS_VERSION ?= 29.0.3
ANDROID_HOME ?= $(HOME)/.android
ANDROID_API_LEVEL ?= 27

# per OS dictionary-like
UNAME_S := $(shell uname -s)
TARGET_OS_Linux = linux
TARGET_OS_ALIAS_Linux = $(TARGET_OS_Linux)
TARGET_OS_Darwin = darwin
TARGET_OS_ALIAS_Darwin = mac
TARGET_OS = $(TARGET_OS_$(UNAME_S))
TARGET_OS_ALIAS = $(TARGET_OS_ALIAS_$(UNAME_S))

ANDROID_SDK_HOME=$(ANDROID_HOME)/android-sdk
ANDROID_SDK_TOOLS_ARCHIVE=sdk-tools-$(target_os)-$(ANDROID_SDK_TOOLS_VERSION).zip
ANDROID_SDK_TOOLS_ARCHIVE=commandlinetools-$(TARGET_OS_ALIAS)-$(ANDROID_SDK_TOOLS_VERSION)_latest.zip
ANDROID_SDK_TOOLS_DL_URL=https://dl.google.com/android/repository/$(ANDROID_SDK_TOOLS_ARCHIVE)

ANDROID_NDK_HOME=$(ANDROID_HOME)/android-ndk
ANDROID_NDK_FOLDER=$(ANDROID_HOME)/android-ndk-r$(ANDROID_NDK_VERSION)
ANDROID_NDK_ARCHIVE=android-ndk-r$(ANDROID_NDK_VERSION)-$(target_os)-x86_64.zip
ANDROID_NDK_ARCHIVE=android-ndk-r$(ANDROID_NDK_VERSION)-$(TARGET_OS)-x86_64.zip
ANDROID_NDK_DL_URL=https://dl.google.com/android/repository/$(ANDROID_NDK_ARCHIVE)

$(info Target install OS is : $(target_os))
Expand Down Expand Up @@ -61,8 +65,8 @@ extract_android_ndk:
# updates Android SDK, install Android API, Build Tools and accept licenses
update_android_sdk:
touch $(ANDROID_HOME)/repositories.cfg
yes | $(ANDROID_SDK_HOME)/tools/bin/sdkmanager --licenses > /dev/null
$(ANDROID_SDK_HOME)/tools/bin/sdkmanager "build-tools;$(ANDROID_SDK_BUILD_TOOLS_VERSION)" > /dev/null
$(ANDROID_SDK_HOME)/tools/bin/sdkmanager "platforms;android-$(ANDROID_API_LEVEL)" > /dev/null
yes | $(ANDROID_SDK_HOME)/tools/bin/sdkmanager --sdk_root=$(ANDROID_SDK_HOME) --licenses > /dev/null
$(ANDROID_SDK_HOME)/tools/bin/sdkmanager --sdk_root=$(ANDROID_SDK_HOME) "build-tools;$(ANDROID_SDK_BUILD_TOOLS_VERSION)" > /dev/null
$(ANDROID_SDK_HOME)/tools/bin/sdkmanager --sdk_root=$(ANDROID_SDK_HOME) "platforms;android-$(ANDROID_API_LEVEL)" > /dev/null
# Set avdmanager permissions (executable)
chmod +x $(ANDROID_SDK_HOME)/tools/bin/avdmanager
6 changes: 3 additions & 3 deletions ci/makefiles/osx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ all: install_java upgrade_cython install_android_ndk_sdk install_p4a

install_java:
brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk8
brew install --cask adoptopenjdk13
/usr/libexec/java_home -V

upgrade_cython:
pip3 install --upgrade Cython==0.29.19
pip3 install --upgrade Cython

install_android_ndk_sdk:
mkdir -p $(ANDROID_HOME)
make -f ci/makefiles/android.mk target_os=darwin JAVA_HOME=`/usr/libexec/java_home -v 1.8`
make -f ci/makefiles/android.mk JAVA_HOME=`/usr/libexec/java_home -v 13`

install_p4a:
# check python version and install p4a
Expand Down
Loading