-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[python-package] support Python 3.13 #6668
base: master
Are you sure you want to change the base?
Changes from all commits
81a2b98
9069205
fda237c
f3422f1
d9bab62
9cc314e
e7256e8
76f2b8d
3889a78
9f6cc8b
82292d3
a797f91
612e99c
c1a5a72
9f3d1e5
6ef9ab6
89000b3
47e8dbf
f471fe0
0ed60e4
e301d3f
bbec860
811ee8d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,32 +28,32 @@ jobs: | |
include: | ||
- os: macos-13 | ||
task: regular | ||
python_version: '3.10' | ||
python_version: '3.11' | ||
- os: macos-13 | ||
task: sdist | ||
python_version: '3.11' | ||
python_version: '3.12' | ||
- os: macos-13 | ||
task: bdist | ||
python_version: '3.8' | ||
python_version: '3.9' | ||
- os: macos-13 | ||
task: if-else | ||
python_version: '3.9' | ||
python_version: '3.10' | ||
- os: macos-14 | ||
task: bdist | ||
method: wheel | ||
python_version: '3.10' | ||
python_version: '3.11' | ||
- os: macos-13 | ||
task: mpi | ||
method: source | ||
python_version: '3.11' | ||
python_version: '3.12' | ||
- os: macos-13 | ||
task: mpi | ||
method: pip | ||
python_version: '3.12' | ||
python_version: '3.13' | ||
- os: macos-13 | ||
task: mpi | ||
method: wheel | ||
python_version: '3.9' | ||
python_version: '3.10' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -113,12 +113,19 @@ jobs: | |
--rm \ | ||
-v $(pwd):/opt/lgb-build \ | ||
-w /opt/lgb-build \ | ||
python:3.12 \ | ||
python:3.13 \ | ||
/bin/bash ./.ci/test-python-latest.sh | ||
test-oldest-versions: | ||
test-old-versions: | ||
name: Python - oldest supported versions (ubuntu-latest) | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# end-of-life Python versions | ||
python_version: | ||
- 3.7 | ||
- 3.8 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -140,12 +147,12 @@ jobs: | |
--rm \ | ||
-v $(pwd):/opt/lgb-build \ | ||
-w /opt/lgb-build \ | ||
python:3.7 \ | ||
python:${{ matrix.python_version }} \ | ||
/bin/bash ./.ci/test-python-oldest.sh | ||
all-python-package-jobs-successful: | ||
if: always() | ||
runs-on: ubuntu-latest | ||
needs: [test, test-latest-versions, test-oldest-versions] | ||
needs: [test, test-latest-versions, test-old-versions] | ||
steps: | ||
- name: Note that all tests succeeded | ||
uses: re-actors/[email protected] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ channels: | |
- conda-forge | ||
dependencies: | ||
- breathe>=4.35 | ||
- python=3.10 | ||
- python=3.11 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm nervous about this particular change. Could you please trigger RTD build for this branch to check that everything is OK? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure! Here's a build: https://readthedocs.org/projects/lightgbm/builds/26929088/ (will check back in a bit) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The build failed with what looks like an internal error on readthedocs. Triggered another one: https://readthedocs.org/projects/lightgbm/builds/26929224/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The build is failing repeatedly without any logs showing an issue. I tried with manually-triggered builds and builds triggered by pushing a commit here. I've reported this to RTD: readthedocs/readthedocs.org#11949 |
||
- r-base=4.3.2 | ||
- r-data.table=1.14.10 | ||
- r-jsonlite=1.8.8 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found that changes on this line were the reason for the failures I saw in #6668 (comment).
python=3.9=*_cp*
andpython=3.9[build=*_cp*]
are handled differently byconda
. I reported that at conda/conda-libmamba-solver#604, but we should just continue with the[build
form here as it does work as expected.