Commit Graph

774 Commits

Author SHA1 Message Date
Mirko Galimberti 17563c6f7a
Use specified `architecture` for CI tests instead of guessing it on `setup-python` (#725) 2024-05-29 22:37:24 +02:00
renovate[bot] 3e66813dd4
Update actions/checkout action to v4 (#721)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-29 18:57:36 +02:00
renovate[bot] 12af98a87a
Update actions/setup-java action to v4 (#722)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-29 18:56:59 +02:00
renovate[bot] f73fb406be
Update actions/setup-python action to v5 (#723)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-29 18:55:59 +02:00
renovate[bot] 1f6af7d0b9
Update dependency furo to v2024 (#724)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-29 18:55:00 +02:00
renovate[bot] 21cc4acbc6
Add renovate.json (#715)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-26 18:31:41 +02:00
Mirko Galimberti 6820e147d3
Sunset `apple-silicon-m1` self-hosted runner, as now is supported by Github Hosted runners via `macos-latest` tag. Use `macos-13` for runs on Intel macs (#714)
* Sunset apple-silicon-m1 self-hosted runner, as now is supported by github-hosted runners. Use macos-13 for runs on Intel macs

* Disable Java 8 for macos-latest, as not available
2024-05-26 11:23:29 +02:00
Mirko Galimberti 3b25c2c4ab
Remove support for Python 3.7 as reached EOL (#713) 2024-05-25 12:24:03 +02:00
Mirko Galimberti 7f5e86f1ab
Relax `no-response` bot, avoid running it every hour (#712) 2024-04-13 12:04:50 +02:00
Suletta-Majo 25c60a3aa4
Update old `quickstart.rst` example from Py2 to Py3 (#711)
* Update quickstart.rst

minimum sample's forgot bracket fix

* Update quickstart.rst

removed Not necessary space in  print function
2024-02-09 18:20:54 +01:00
Julian dce5ce0f3e
Make doc structure consistent and up-to-date (#703)
* Make doc structure consistent and up-to-date

This is part of an effort to make the Kivy sibling projects' documentation
structure consistent and up-to-date.

Extra items:
* Fix capitalisation of PyJNIus throughout.
* Standardize on tag line.
* Remove "shell" from "shell environment variables"
* Remove some Python 2-only code.

CHECKLIST

* CONTRIBUTING.md
   [x] If repo takes user contributions, is present
   [x] In root dir (not .github dir)
   [x] Refers to kivy/kivy Contribution Guidelines.

* LICENSE
   [x] If repo takes user contributions, is present.
   [x] Acknowledges the range of years to 2023.
   [x] Acknowledges Kivy Team and other contributors
   [x] Mentions it is an MIT License.

* CODE_OF_CONDUCT.md
   [x] If repo takes user contributions or hosts discussions, is present.
   [x] Refers to kivy/kivy CODE_OF_CONDUCT.md

* CONTACT.md
   [x] Refers to kivy/kivy CONTACT.md

* FAQ.md
   [x] If repo is big enough for RST documentation, is present.

* README:
   [x] Is a Markdown file.
   [x] Describes the project.
   [x] Describes its place in the Kivy sibling projects.
   [x] If CONTRIBUTING exists, mentions it.
   [x] If LICENSE exists, mentions it.
   [x] If CODE_OF_CONDUCT exists, mentions it.
   [x] Mentions kivy/kivy CONTACT.md
   [x] Uses Python syntax colouring for embedded Python code.
   [x] Uses badges to display current status.

* RST documentation, if present
   [x] Describes the project.
   [x] Describes its place in the Kivy sibling projects.
   [x] Mentions LICENSE.
   [x] Mentions CONTRIBUTING
   [x] Mentions CODE_OF_CONDUCT
   [x] Mentions FAQ

* WORKFLOWS
   [x] NO_RESPONSE.yml is present if the repo has awaiting_reply tag.
   [x] NO_RESPONSE uses latest script versions.
   [x] SUPPORT.yml is present if the repo has a `support` tag.
   [x] SUPPORT.yml refers to kivy/kivy CONTACT.md
   [x] SYPPORT.yml uses dessant/support-requests@v4

* setup.py/cfg, if present and on PyPI
   [x] Supplies description to PyPI
   [x] Supplies Python versions to PyPI
   [x] Supplies Documentation, if any, to PyPI

* Update with review comments

Tweaked SVG sizes. 

Made warning use Markdown syntax for warnings.
Remove links overriding SVG for backers.

Remove kivy/kivy contributors, and link to pyJNIus ones.
Include the horrid links to sponsors, and link to why.

Added badge for GitHub contributors to this project (in contrast to OpenCollective contributors to Kivy)

Updated checklist
* CONTRIBUTING.md
   [] If repo takes user contributions, is present
   [] In root dir (not .github dir)
   [] Explains relationship to Kivy, if unclear.
   [] Refers to kivy/kivy Contribution Guidelines.

* LICENSE
   [] If repo takes user contributions, is present.
   [] Acknowledges the range of years to 2023.
   [] Acknowledges Kivy Team and other contributors
   [] Mentions it is an MIT License.

* CODE_OF_CONDUCT.md
   [] If repo takes user contributions or hosts discussions, is present.
   [] Refers to kivy/kivy CODE_OF_CONDUCT.md

* CONTACT.md
   [] Refers to kivy/kivy CONTACT.md

* FAQ.md
   [] If repo is big enough for RST documentation, is present.

* README:
   [] Is a Markdown file.
   [] Describes the project.
   [] Describes its place in the Kivy sibling projects.
   [] If Documentation exists, mention it.
   [] If CONTRIBUTING exists, mentions it.
   [] If LICENSE exists, mentions it.
   [] If CODE_OF_CONDUCT exists, mentions it.
   [] Mentions kivy/kivy CONTACT.md
   [] Uses Python syntax colouring for embedded Python code.
   [] Uses badges to display current status, including:
        [] Backers
        [] Sponsors
        [] GitHub contributors
        [] Contributor Covenant
	[] PyPI Version
	[] PyPI Python Version
	[] Build/Test status

   [] Links to GitHub contributors
   [] Displays backers in suitable icon size, without buttons.
   [] Displays first 40 sponsors icons and links

* RST documentation, if present
   [] Describes the project.
   [] Describes its place in the Kivy sibling projects.
   [] Mentions (Kivy/Kivy) Contact Us link.
   [] Mentions LICENSE.
   [] Mentions CONTRIBUTING
   [] Mentions FAQ
   [] conf.py mentioned Kivy Team and other contributors
		- copyright, latex_documents, man_pages, texinfo documents

* WORKFLOWS
   [] NO_RESPONSE.yml is present if the repo has awaiting_reply tag.
   [] NO_RESPONSE uses latest script versions.
   [] SUPPORT.yml is present if the repo has a `support` tag.
   [] SUPPORT.yml refers to repo's CONTACT.md

* setup.py/cfg, if present and on PyPI
   [] Supplies description to PyPI
   [] Supplies Python versions to PyPI
   [] Supplies Documentation, if any, to PyPI

* Improve links to sponsors, backers and contributors

See https://github.com/orgs/kivy/discussions/15 for context.

* Correct contributor URL

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>

---------

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-12-03 16:41:40 +01:00
Craig Macdonald a2c799fe68
Refresh installation and build docs (#700)
* documentation changes for #695

* addressing review comments, and a clarification in packaging

* Update docs/source/installation.rst

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>

* addressing feedback

* fix Java location

* much simplified building instructions

* addressed comments

---------

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-11-24 18:27:22 +01:00
Julian 063d97a7ff
Create `no-response.yml` (#697)
Support the no-response bot.

Direct copy of the kivy/kivy one.
2023-11-10 08:38:16 +01:00
Mirko Galimberti 3c7acc8c9f
Update CHANGELOG and version for release `1.6.1` (#694) 2023-11-05 16:37:43 +01:00
Mirko Galimberti a19f8ca59b
Use the `release/v1` tag for `pypa/gh-action-pypi-publish`, as `master` is deprecated (#693) 2023-11-05 12:19:30 +01:00
Mirko Galimberti e0f52ba87b
Skip getting version from Cython on Android. Instead add ANDROID_PYJNIUS_CYTHON_3 env var (#692) 2023-11-03 18:44:04 +01:00
baseplate-admin f746f1339c
Cleanup some Java code in `NativeInvocationHandler.java` (#691) 2023-10-29 16:01:47 +01:00
Mirko Galimberti c144e968cd
Add (now mandatory) `.readthedocs.yaml` file, add docs `requirements.txt` and update sphinx conf (#684) 2023-10-10 08:50:53 +02:00
Mirko Galimberti 1d73253ac9
Update CHANGELOG for release 1.6.0 (additional) (#683)
* Update CHANGELOG

* Update CHANGELOG for release 1.6.0
2023-10-07 13:42:20 +02:00
Mirko Galimberti d929be0822
Build stdist needs Cython to perform the build (#682) 2023-10-07 12:17:44 +02:00
Mirko Galimberti 362935395d
Update CHANGELOG and version for release `1.6.0` (#671)
* Update CHANGELOG and version for release 1.6.0

* Update CHANGELOG

* Updated CHANGELOG
2023-10-07 10:24:40 +02:00
Mirko Galimberti b23ba5418a
Add missing support label for Python 3.12 (#681) 2023-10-05 20:31:01 +02:00
Mirko Galimberti a0557896e8
Update cibuildwheel to perform build for Python 3.12 (#680) 2023-10-05 18:38:57 +02:00
Mirko Galimberti a32cb83071
Add tests on push for Apple Silicon (#679) 2023-10-04 22:32:05 +02:00
Mirko Galimberti 909f93e3e0
Now Github Actions provides python3 via setup-python also for Apple Silicon Macs (#677)
* Now Github Actions provides python3 via setup-python also for Apple Silicon macs

* Python 3.8 and 3.9 are not available for Apple Silicon
2023-10-04 20:17:52 +02:00
Craig Macdonald 5a69e60705
Add tests for python 3.12 (#678) 2023-10-04 18:46:34 +02:00
Mirko Galimberti 34bc85b4af
Ensure we test the produced wheel, and not the one from the index (#676) 2023-10-01 18:29:21 +02:00
Craig Macdonald d3525a34bb
Remove pkg_resources for Python >=3.9 (#673)
* WIP: addresses pkg_resources deprecation

* more fixes

* attempt for py3.9

* paths to strings

* One path not many

* Update jnius_config.py - use path obj

* Be verbose during testing

* Print for baseline too

* Remove prints

* drop unused import

* revert pytest change

* address review feedback
2023-10-01 15:23:04 +02:00
Craig Macdonald 9ef610cfc3
Support Java 20, remove Java 7 support (#672)
* adding java 20 to build matrix

* change to zulu which has JDK20 available

* building class files for version 8 is the oldest now supported by JDJ > 17

* upgrade setup.py to java 8 too

* Exclude Java 20 for windows

* Switch back to temurin and skip windows-latest x86 java 20

---------

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2023-09-23 18:01:27 +02:00
Craig Macdonald fd748e5db4
Support both Cython >3 and Cython < 3 (#669)
* Remove .pxi include files from setup.py

* show pip list

* dont allow cython 3

* Revert "show pip list"

This reverts commit b3f88b0443.

* separate FILES into PYX_FILES and PXI_FILES

* testing for cython 3

* fixes __cls_storage in Cython 3

* detect Cython 3 at compile time, compile appropriately

* force cython version using sed. expected to fail on windows.

* i think this will work on the Windows sed on GHA

* cleanup __cls_storage name consistently

* migrate to getattr() to make code more elegant

* fix GHA for macos by separating seds

* add actual extension!

* access all CLS_STORAGE through the cdef 'constant'
2023-09-16 13:57:15 +02:00
Craig Macdonald c126762e36
introduce protocol_map for Map$Entry (#659) 2023-09-10 13:50:47 +02:00
Mirko Galimberti 7da449434e
Update CHANGELOG and version for release 1.5.0 (#658) 2023-05-13 09:20:18 +02:00
Mirko Galimberti 3bf3103a32
Add support for Python 3.11 (#656) 2023-05-09 21:08:03 +02:00
Mirko Galimberti 71b8582e7d
Add support request automation (as other kivy projects) (#657) 2023-05-09 21:07:28 +02:00
Mirko Galimberti 3b06a9ecf4
Build (and test) `manylinux-aarch64` wheels via our `kivy-ubuntu-arm64` self-hosted runner [build wheel] (#653)
* Build aarch64 wheels

Also, build and test x86 wheels in one step, similar to aarch64.

* Use kivy-ubuntu-arm64 for tests on Ubuntu aarch64

---------

Co-authored-by: Janakarajan Natarajan <janakan@amazon.com>
2023-05-08 18:57:45 +02:00
Mirko Galimberti 95381a2065
Linux x86 tests force as safe directory (#655) 2023-05-07 10:09:55 +02:00
Mirko Galimberti aa46bdca11
Remove Python 3.6 from supported and test matrix, as it reached EOL (#654) 2023-05-07 09:41:12 +02:00
Mirko Galimberti 95527df23f
Initialize logger as a child of the Kivy's one (#643) 2022-11-26 16:49:24 +01:00
Mirko Galimberti 714f30e71a
Removes some Python2-era complexity (#641) 2022-11-20 16:51:10 +01:00
rdb ee4e9c224c
Remove Python 2 support, six dependency (#619) 2022-10-16 14:56:56 +02:00
Tomasz 'CeDeROM' CEDRO 453b9b0ad6 Add BSD Unix build support (FreeBSD, OpenBSD, NetBSD, ..).
* Builds fine on FreeBSD.
* OpenBSD returns build errors on `build_ext()` call.

Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>
2022-07-27 01:53:48 +02:00
Mirko Galimberti 0421f01452
Update CHANGELOG (#631) 2022-07-03 13:50:03 +02:00
Mirko Galimberti b3dbbe934c
Uses cibuildwheel for releases (#625) 2022-07-02 19:04:10 +02:00
Mirko Galimberti 0bc346395f
Cython now requires a minimum version. Introduces setup.cfg. Cleans up the CI workflow (#629) 2022-07-02 17:35:32 +02:00
Mirko Galimberti 7b0426adbf
Updated java-setup to v3, include all the LTS versions from adoptium during CI tests. (#628) 2022-06-18 23:45:12 +02:00
Mirko Galimberti bcf4e28e17
Fixes for PyPy (#627) 2022-06-18 15:45:28 +02:00
Mirko Galimberti 57e3ea0240
Move get_cpu guessing into _possible_lib_location (#626) 2022-06-05 23:23:30 +02:00
Mirko Galimberti fe46b03657
update CHANGELOG and version (#624) 2022-05-29 11:11:03 +02:00
Lucas Fernandes Oliveira 6699ec4187
add suffix to support IBM jre on Windows (#622)
Co-authored-by: Lucas Oliveira <lucasfeol94@@mgail.com>
2022-05-29 10:47:45 +02:00
hx2A 61b268d78d
Update api.rst (#616)
remove extra equals signs for #615
2022-05-29 10:18:09 +02:00