Skip to content

Commit 46d14e9

Browse files
authored
Merge pull request #2221 from AndreMiras/feature/fix_on_device_tests
🐛 Adds missing requests sub dependencies
2 parents 5affb70 + f5e0855 commit 46d14e9

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ testapps-with-numpy/%: virtualenv
3838
$(eval $@_APP_ARCH := $(shell basename $*))
3939
. $(ACTIVATE) && cd testapps/on_device_unit_tests/ && \
4040
python setup.py apk --sdk-dir $(ANDROID_SDK_HOME) --ndk-dir $(ANDROID_NDK_HOME) \
41-
--requirements libffi,sdl2,pyjnius,kivy,python3,openssl,requests,sqlite3,setuptools,numpy \
41+
--requirements libffi,sdl2,pyjnius,kivy,python3,openssl,requests,urllib3,chardet,idna,sqlite3,setuptools,numpy \
4242
--arch=$($@_APP_ARCH)
4343

4444
testapps/%: virtualenv

doc/source/troubleshooting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Remember to always clean the build before rebuilding (`p4a clean builds`, or wit
211211

212212
On Ubuntu and derivatives::
213213

214-
apt install openssl
214+
apt install libssl-dev
215215
p4a clean builds # or with: buildozer `buildozer android clean
216216

217217
On macOS::

testapps/on_device_unit_tests/setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
app requirements via the dictionary `options`. Here you have some examples
1313
to build the supported app modes::
1414
15-
- kivy *basic*: `sqlite3,libffi,openssl,pyjnius,kivy,python3,requests`
15+
- kivy *basic*: `sqlite3,libffi,openssl,pyjnius,kivy,python3,requests,
16+
urllib3,chardet,idna`
1617
- kivy *images/graphs*: `kivy,python3,numpy,matplotlib,Pillow`
1718
- kivy *encryption*: `kivy,python3,cryptography,pycryptodome,scrypt,
1819
m2crypto,pysha3`
@@ -39,7 +40,8 @@
3940
'apk':
4041
{
4142
'requirements':
42-
'sqlite3,libffi,openssl,pyjnius,kivy,python3,requests',
43+
'sqlite3,libffi,openssl,pyjnius,kivy,python3,requests,urllib3,'
44+
'chardet,idna',
4345
'android-api': 27,
4446
'ndk-api': 21,
4547
'dist-name': 'bdist_unit_tests_app',

0 commit comments

Comments
 (0)