Skip to content

Commit 4563f3e

Browse files
authored
Merge pull request #2488 from misl6/release-2021.09.05
Release 2021.09.05
2 parents 5a94d07 + 3685388 commit 4563f3e

File tree

124 files changed

+3328
-831
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+3328
-831
lines changed

.env

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# used by coveralls.io, refs:
2-
# https://coveralls-python.readthedocs.io/en/latest/usage/tox.html#travisci
2+
# https://coveralls-python.readthedocs.io/en/latest/usage/tox.html#github-actions
33
CI
4-
TRAVIS
5-
TRAVIS_BRANCH
6-
TRAVIS_JOB_ID
7-
TRAVIS_PULL_REQUEST
4+
GITHUB_ACTIONS
5+
GITHUB_REF
6+
GITHUB_SHA
7+
GITHUB_HEAD_REF
8+
GITHUB_REPOSITORY
9+
GITHUB_RUN_ID
10+
GITHUB_TOKEN

.github/workflows/push.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Checkout python-for-android
1212
uses: actions/checkout@v2
1313
- name: Set up Python 3.7
14-
uses: actions/setup-python@v1.1.0
14+
uses: actions/setup-python@v2.2.1
1515
with:
1616
python-version: 3.7
1717
- name: Run flake8
@@ -32,7 +32,7 @@ jobs:
3232
- name: Checkout python-for-android
3333
uses: actions/checkout@v2
3434
- name: Set up Python ${{ matrix.python-version }}
35-
uses: actions/setup-python@v1.1.0
35+
uses: actions/setup-python@v2.2.1
3636
with:
3737
python-version: ${{ matrix.python-version }}
3838
- name: Tox tests

.github/workflows/pypi-release.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PyPI release
2+
on: [push]
3+
4+
jobs:
5+
pypi_release:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Set up Python 3.x
10+
uses: actions/setup-python@v2
11+
with:
12+
python-version: 3.x
13+
- name: Install dependencies
14+
run: |
15+
python -m pip install --upgrade setuptools wheel twine
16+
- name: Build
17+
run: |
18+
python setup.py sdist bdist_wheel
19+
twine check dist/*
20+
- name: Publish package
21+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
22+
uses: pypa/[email protected]
23+
with:
24+
user: __token__
25+
password: ${{ secrets.pypi_password }}

.travis.yml

-70
This file was deleted.

CHANGELOG.md

+1,659
Large diffs are not rendered by default.

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ENV HOME_DIR="/home/${USER}"
4545
ENV WORK_DIR="${HOME_DIR}/app" \
4646
PATH="${HOME_DIR}/.local/bin:${PATH}" \
4747
ANDROID_HOME="${HOME_DIR}/.android" \
48-
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
48+
JAVA_HOME="/usr/lib/jvm/java-13-openjdk-amd64"
4949

5050

5151
# install system dependencies
@@ -69,7 +69,7 @@ RUN dpkg --add-architecture i386 \
6969
libssl-dev \
7070
libstdc++6:i386 \
7171
libtool \
72-
openjdk-8-jdk \
72+
openjdk-13-jdk \
7373
patch \
7474
pkg-config \
7575
python3 \
@@ -98,8 +98,8 @@ RUN mkdir ${ANDROID_HOME} && chown --recursive ${USER} ${HOME_DIR} ${ANDROID_HOM
9898
USER ${USER}
9999

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

105105
# install python-for-android from current branch

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ recursive-include doc *
66
prune doc/build
77

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

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

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ all: virtualenv
2020

2121
$(VIRTUAL_ENV):
2222
python3 -m venv $(VIRTUAL_ENV)
23-
$(PIP) install Cython==0.29.19
23+
$(PIP) install Cython
2424
$(PIP) install -e .
2525

2626
virtualenv: $(VIRTUAL_ENV)

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
python-for-android
22
==================
33

4-
[![Build Status](https://travis-ci.org/kivy/python-for-android.svg?branch=develop)](https://travis-ci.org/kivy/python-for-android)
54
[![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)
65
[![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)
76
[![Backers on Open Collective](https://opencollective.com/kivy/backers/badge.svg)](#backers)

ci/constants.py

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class TargetPython(Enum):
2626
# mpmath package with a version >= 0.19 required
2727
'sympy',
2828
'vlc',
29+
# need extra gfortran NDK system add-on
30+
'lapack', 'scipy',
2931
])
3032

3133
BROKEN_RECIPES = {

ci/makefiles/android.mk

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
# Downloads and installs the Android SDK depending on supplied platform: darwin or linux
22

3-
# We must provide a platform (darwin or linux) and we need JAVA_HOME defined
4-
ifndef target_os
5-
$(error target_os is not set...aborted!)
6-
endif
7-
83
# Those android NDK/SDK variables can be override when running the file
94
ANDROID_NDK_VERSION ?= 19b
10-
ANDROID_SDK_TOOLS_VERSION ?= 4333796
11-
ANDROID_SDK_BUILD_TOOLS_VERSION ?= 28.0.2
5+
ANDROID_SDK_TOOLS_VERSION ?= 6514223
6+
ANDROID_SDK_BUILD_TOOLS_VERSION ?= 29.0.3
127
ANDROID_HOME ?= $(HOME)/.android
138
ANDROID_API_LEVEL ?= 27
149

10+
# per OS dictionary-like
11+
UNAME_S := $(shell uname -s)
12+
TARGET_OS_Linux = linux
13+
TARGET_OS_ALIAS_Linux = $(TARGET_OS_Linux)
14+
TARGET_OS_Darwin = darwin
15+
TARGET_OS_ALIAS_Darwin = mac
16+
TARGET_OS = $(TARGET_OS_$(UNAME_S))
17+
TARGET_OS_ALIAS = $(TARGET_OS_ALIAS_$(UNAME_S))
18+
1519
ANDROID_SDK_HOME=$(ANDROID_HOME)/android-sdk
16-
ANDROID_SDK_TOOLS_ARCHIVE=sdk-tools-$(target_os)-$(ANDROID_SDK_TOOLS_VERSION).zip
20+
ANDROID_SDK_TOOLS_ARCHIVE=commandlinetools-$(TARGET_OS_ALIAS)-$(ANDROID_SDK_TOOLS_VERSION)_latest.zip
1721
ANDROID_SDK_TOOLS_DL_URL=https://dl.google.com/android/repository/$(ANDROID_SDK_TOOLS_ARCHIVE)
1822

1923
ANDROID_NDK_HOME=$(ANDROID_HOME)/android-ndk
2024
ANDROID_NDK_FOLDER=$(ANDROID_HOME)/android-ndk-r$(ANDROID_NDK_VERSION)
21-
ANDROID_NDK_ARCHIVE=android-ndk-r$(ANDROID_NDK_VERSION)-$(target_os)-x86_64.zip
25+
ANDROID_NDK_ARCHIVE=android-ndk-r$(ANDROID_NDK_VERSION)-$(TARGET_OS)-x86_64.zip
2226
ANDROID_NDK_DL_URL=https://dl.google.com/android/repository/$(ANDROID_NDK_ARCHIVE)
2327

2428
$(info Target install OS is : $(target_os))
@@ -61,8 +65,8 @@ extract_android_ndk:
6165
# updates Android SDK, install Android API, Build Tools and accept licenses
6266
update_android_sdk:
6367
touch $(ANDROID_HOME)/repositories.cfg
64-
yes | $(ANDROID_SDK_HOME)/tools/bin/sdkmanager --licenses > /dev/null
65-
$(ANDROID_SDK_HOME)/tools/bin/sdkmanager "build-tools;$(ANDROID_SDK_BUILD_TOOLS_VERSION)" > /dev/null
66-
$(ANDROID_SDK_HOME)/tools/bin/sdkmanager "platforms;android-$(ANDROID_API_LEVEL)" > /dev/null
68+
yes | $(ANDROID_SDK_HOME)/tools/bin/sdkmanager --sdk_root=$(ANDROID_SDK_HOME) --licenses > /dev/null
69+
$(ANDROID_SDK_HOME)/tools/bin/sdkmanager --sdk_root=$(ANDROID_SDK_HOME) "build-tools;$(ANDROID_SDK_BUILD_TOOLS_VERSION)" > /dev/null
70+
$(ANDROID_SDK_HOME)/tools/bin/sdkmanager --sdk_root=$(ANDROID_SDK_HOME) "platforms;android-$(ANDROID_API_LEVEL)" > /dev/null
6771
# Set avdmanager permissions (executable)
6872
chmod +x $(ANDROID_SDK_HOME)/tools/bin/avdmanager

ci/makefiles/osx.mk

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ all: install_java upgrade_cython install_android_ndk_sdk install_p4a
77

88
install_java:
99
brew tap adoptopenjdk/openjdk
10-
brew cask install adoptopenjdk8
10+
brew install --cask adoptopenjdk13
1111
/usr/libexec/java_home -V
1212

1313
upgrade_cython:
14-
pip3 install --upgrade Cython==0.29.19
14+
pip3 install --upgrade Cython
1515

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

2020
install_p4a:
2121
# check python version and install p4a

0 commit comments

Comments
 (0)