Andre Miras
f700d80f79
Merge pull request #1107 from AndreMiras/feature/fix_docker_apt_caching
...
🐳 Fixes Docker apt cache missed
2020-05-17 13:54:14 +02:00
Andre Miras
008f494e11
🐳 Fixes Docker apt cache missed
...
Applies "cache busting" to avoid apt cache miss:
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
The error was:
```
After this operation, 905 MB of additional disk space will be used.
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/f/file/libmagic-mgc_5.32-2ubuntu0.3_amd64.deb 404 Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/f/file/libmagic1_5.32-2ubuntu0.3_amd64.deb 404 Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/f/file/file_5.32-2ubuntu0.3_amd64.deb 404 Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-96.97_amd64.deb 404 Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/cups/libcups2_2.2.7-1ubuntu2.7_amd64.deb 404 Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/openldap/libldap-common_2.4.45+dfsg-1ubuntu1.4_all.deb 404 Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/openldap/libldap-2.4-2_2.4.45+dfsg-1ubuntu1.4_amd64.deb 404 Not Found [IP: 91.189.88.142 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/pulseaudio/libpulse0_11.1-1ubuntu7.5_amd64.deb 404 Not Found [IP: 91.189.88.142 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
```
2020-05-17 13:09:59 +02:00
Andre Miras
0ddf6e0909
Merge pull request #1105 from AndreMiras/feature/automate_pypi_release
...
💚 Automatically publish to PyPI upon tagging
2020-05-17 07:28:01 +02:00
Andre Miras
cf89c32042
📚 Adds libssl-dev to the install dependencies
...
Refs: https://github.com/kivy/python-for-android/pull/2205
2020-05-17 00:11:01 +02:00
Andre Miras
3d7f47e70b
💚 Automatically publish to PyPI upon tagging
...
New `pypi-release.yml` workflow for deploying to PyPI.
The scoped token is already setup in:
https://github.com/kivy/buildozer/settings/secrets
Also fixes `setup.py` classifier. The error was:
HTTPError: 400 Client Error: Invalid value for classifiers.
Error: Classifier 'Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8'
is not a valid classifier. for url: https://upload.pypi.org/legacy/
Tested by changing the version to an existing one and testing the upload:
```
Uploading distributions to https://upload.pypi.org/legacy/
Uploading buildozer-1.0-py3-none-any.whl
Uploading buildozer-1.0.tar.gz
HTTPError: 400 Client Error: File already exists.
See https://pypi.org/help/#file-name-reuse for url: https://upload.pypi.org/legacy/
```
https://github.com/AndreMiras/buildozer/runs/681413972
2020-05-16 22:02:24 +02:00
Andre Miras
1d707d9471
Merge pull request #1100 from AndreMiras/feature/full_integration_test
...
🚨 Build integration test
2020-05-16 15:31:09 +02:00
Andre Miras
446492f440
Merge pull request #1101 from hematogender/master
...
Fix punctuation and typo in README.md
2020-05-11 20:23:44 +02:00
hematogender
0eb99dd9f1
Fix punctuation and typo in README.md
2020-05-11 21:20:42 +03:00
Andre Miras
4141a20f99
🚨 Build integration test
...
Also fixes CHANGELOG.md descending PR order
2020-05-11 19:17:08 +02:00
Andre Miras
d8c4e917bd
Merge pull request #1082 from AndreMiras/feature/update_unreleased_changelog
...
Updates CHANGELOG.md with unreleased section
2020-05-11 18:28:15 +02:00
Andre Miras
49a3491220
Merge pull request #1099 from AndreMiras/feature/libssl_dependency
...
🐛 Fixes missing libssl-dev dependency
2020-05-11 18:22:07 +02:00
Andre Miras
5517322766
Merge pull request #1093 from AndreMiras/feature/integration_test_sdk_ndk_download
...
Checks SDK, NDK and p4a get downloaded on first run
2020-05-11 18:18:52 +02:00
Andre Miras
f2d31ccd32
🐛 Fixes missing libssl-dev dependency
...
This is required for the minimal build, closes #1096
Also drops Python 2 dependency.
Integration test will come after #1093 is merged
2020-05-11 18:17:50 +02:00
Andre Miras
8d2a9df928
Checks SDK, NDK and p4a get downloaded on first run
2020-05-09 10:05:35 +02:00
Andre Miras
f564e1b688
Merge pull request #1094 from AndreMiras/feature/python2_setup_message
...
Drops Python 2 support
2020-05-09 09:31:28 +02:00
Andre Miras
5f099a8650
Update CHANGELOG.md
...
Co-authored-by: Pol Canelles <canellestudi@gmail.com>
2020-05-09 09:22:49 +02:00
Andre Miras
20bfa24005
Drops Python 2 support
...
Makes sure the user is warned at install time if using Python 2.
2020-05-09 00:35:14 +02:00
Andre Miras
d0323c165d
Merge pull request #1083 from AndreMiras/feature/integration_test
...
Integration testing
2020-05-02 20:49:39 +02:00
Andre Miras
d74aef3dcd
Integration testing
...
Checks:
- buildozer installs
- buildozer --help
- buildozer init
Currently `buildozer android debug` is not ran as it's not yet fully reliable.
2020-05-02 20:41:49 +02:00
Andre Miras
5f80316cb0
Updates CHANGELOG.md with unreleased section
...
To make the future release less painful and to follow the motto:
if it hurts do it more
Also documented in:
https://keepachangelog.com/en/1.0.0/
2020-05-01 15:35:15 +02:00
Andre Miras
1f8c88fe7b
Merge pull request #1078 from AndreMiras/feature/test_on_macos
...
Also tests against macOS platform
2020-04-25 21:31:22 +02:00
Andre Miras
891e24b6f2
Also tests against macOS platform
...
Increases coverage from 28% to 30%.
2020-04-25 18:21:10 +02:00
Andre Miras
504efcc243
Merge pull request #1071 from lerela/1070_fix_python3_raw_input
...
Support for both input and raw_input in iOS target to avoid NameError with Python 3
2020-04-24 19:34:47 +02:00
lerela
cd11167067
Encode password before it is saved to file as Python 3 input returns a string, not bytes
2020-04-16 19:11:13 +02:00
lerela
d3fd1ad9e3
Support for both input and raw_input in iOS target to avoid NameError with Python 3 ( fixes #1070 )
2020-04-16 17:24:35 +02:00
Andre Miras
b566125f71
Merge pull request #1069 from AndreMiras/feature/test_android_build_package
...
Unit tests TargetAndroid.build_package()
2020-04-13 21:30:19 +02:00
Andre Miras
757941aabb
Unit tests TargetAndroid.build_package()
...
Increases android.py coverage from 24% to 36% and total coverage from
25% to 29%.
Note that this tests would have caught the glob issue reported in #1044 .
2020-04-13 21:27:13 +02:00
Andre Miras
35cce59e63
Merge pull request #1068 from AndreMiras/feature/dedicated_docker_job
...
Dedicated Docker build/run job
2020-04-13 19:44:35 +02:00
Andre Miras
d3361bbcfb
Merge pull request #1066 from AndreMiras/feature/linter_F841
...
F841: local variable is assigned to but never used
2020-04-13 19:21:44 +02:00
Andre Miras
ee34d7e95b
Dedicated Docker build/run job
...
Creates a dedicated job for Docker testing so it can run in parallel
with the other tests.
Prior this change the CI was running in 3 minutes, it now runs in 2.
2020-04-13 18:53:29 +02:00
Andre Miras
5f35e8b409
F841: local variable is assigned to but never used
2020-04-13 17:38:32 +02:00
Andre Miras
422f951931
Merge pull request #1063 from AndreMiras/feature/coveralls_from_pull_requests
...
Fixes coveralls.io on pull requests
2020-04-13 17:09:32 +02:00
Andre Miras
58774d8aac
Merge pull request #1065 from AndreMiras/feature/linting_organisation_and_fixes
...
Linting organisation and fixes
2020-04-13 17:03:09 +02:00
Andre Miras
6b03c54832
PEP8 fixes
...
- E129 visually indented line with same indent as next logical line
- E226 missing whitespace around arithmetic operator
- E241 multiple spaces after ','
- E262 inline comment should start with '# '
- E301 expected 1 blank line, found 0
- E303 too many blank lines
- E502 the backslash is redundant between bracket
- E741 ambiguous variable name
- W391 blank line at end of file
2020-04-13 14:26:27 +02:00
Andre Miras
ef63f13111
Organises linter errors and check tests/ directory
2020-04-13 14:20:58 +02:00
Andre Miras
3f1b44de6f
Fixes coveralls.io on pull requests
...
Coveralls.io now runs on pull requests as well.
The report is automatically uploaded on coveralls.io however it needs to
be accessed by copying the report URL to review it.
Next up would be to have it commenting on the pull request to see on
first sight if it increased or decreased.
Also made a couple of adjustment to the workflow file to clarify between
requirements building, Docker build/run and actual testing.
2020-04-11 01:51:04 +02:00
Andre Miras
556724f62d
Merge pull request #1061 from AndreMiras/feature/test_android_module
...
Starts unit testing buildozer/targets/android.py
2020-04-10 22:55:03 +02:00
Andre Miras
0c4116c469
Starts unit testing buildozer/targets/android.py
...
This is a best effort approach trying to increase the coverage of that
module. Therefore some tests are not completely isolating all
dependencies via `mock.patch`-ing.
Subsequent pull request could cover more methods and focus on edge case.
This increases the overall coverage from 20% to 25% and
`buildozer/targets/android.py` coverage from 15% to `24%`.
2020-04-10 21:12:52 +02:00
Andre Miras
7daf3d028c
Merge pull request #1062 from AndreMiras/feature/coveralls_on_push_to_master
...
Coveralls TOKEN is only available on branch master
2020-04-10 21:12:19 +02:00
Andre Miras
090cb5b36e
Coveralls TOKEN is only available on branch master
...
Refs: https://github.com/kivy/buildozer/pull/1060#issuecomment-612168204
2020-04-10 21:00:58 +02:00
Andre Miras
21d4157573
Merge pull request #1060 from kivy/feature/coverage_testing
...
Setup coverage testing, closes #1058
2020-04-10 16:31:18 +02:00
Andre Miras
a155929bdc
Setup coverage testing, closes #1058
...
Also enables report to coveralls.io via GitHub Action.
Note the `COVERALLS_REPO_TOKEN` was setup via:
https://github.com/kivy/buildozer/settings/secrets
And is accessible for repos admin via:
https://coveralls.io/github/kivy/buildozer
2020-04-10 15:10:40 +02:00
Andre Miras
916dc6ba2a
Merge pull request #1053 from Sirfanas/fix-venv-python3
...
[Python3] #1052 ImportError: cannot import name 'main'
2020-04-08 21:15:13 +02:00
Romain Fauquet
05f0024b26
Put change in a single line
...
Co-Authored-By: Andre Miras <AndreMiras@users.noreply.github.com>
2020-04-08 20:58:00 +02:00
Romain Fauquet
c7d0a5a7c3
Change "python3 -m pip" to "pip3"
2020-04-08 20:40:38 +02:00
Sirfanas
c9004f1d77
Fix virtual env for python 3
2020-04-08 17:59:29 +02:00
Andre Miras
cceab3c2ce
Merge pull request #1041 from AndreMiras/feature/default_ndk_to_19b
...
Updates default buildozer.spec NDK from 17c to 19b
2020-03-28 17:26:13 +01:00
Andre Miras
439a3619e4
Updates default buildozer.spec NDK from 17c to 19b
...
Note that this is only the template spec file and
`DEFAULT_ANDROID_NDK_VERSION` fallback is left untouched.
2020-03-28 17:00:50 +01:00
Akinwale Ariwodola
1ff55c4fca
add support for package.type and AAR library builds
2020-02-20 11:59:38 +01:00
Andre Miras
a294071a60
Merge pull request #1026 from touilleMan/fix-default.spec-typo
...
Fix "android.add_activites" typo in default.spec
2020-02-18 15:54:53 +01:00