Skip to content
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

Add support for Python 3.11 #350

Merged
merged 2 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
matrix:
config:
- py38_pandas10_numpy119_sklearn12
- py38_pandas11_numpy120_sklearn12
- py39_pandas13_numpy121_sklearn12
- py310_pandas14_numpy121_sklearn12
- py311_pandas15_numpy123_sklearn12
runner:
- ubuntu-latest
- macos-latest
Expand Down
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ environment:
CONDA_PY: "39"
- TARGET_ARCH: "x64"
CONDA_PY: "310"
- TARGET_ARCH: "x64"
CONDA_PY: "311"


# We always use a 64-bit machine.
Expand Down
2 changes: 1 addition & 1 deletion ci/appveyor/requirements_310.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ channels:
- sebp
dependencies:
- python=3.10
- coverage
- cython>=0.29
- ecos
- numexpr
- numpy=1.21
- osqp!=0.6.0,!=0.6.1
- pytest
- pytest-cov
- scipy!=1.3.0
- scikit-learn=1.2
- pandas=1.4
16 changes: 16 additions & 0 deletions ci/appveyor/requirements_311.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: sksurv-test
channels:
- defaults
- sebp
dependencies:
- python=3.11
- coverage
- cython>=0.29
- ecos
- numexpr
- numpy=1.23
- osqp!=0.6.0,!=0.6.1
- pytest
- scipy!=1.3.0
- scikit-learn=1.2
- pandas=1.5
2 changes: 1 addition & 1 deletion ci/appveyor/requirements_38.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ channels:
- sebp
dependencies:
- python=3.8
- coverage
- cython>=0.29
- ecos
- numexpr
- numpy=1.19
- osqp!=0.6.0,!=0.6.1
- pytest
- pytest-cov
- scipy!=1.3.0
- scikit-learn=1.2
- pandas=1.1
2 changes: 1 addition & 1 deletion ci/appveyor/requirements_39.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ channels:
- sebp
dependencies:
- python=3.9
- coverage
- cython>=0.29
- ecos
- numexpr
- numpy=1.21
- osqp!=0.6.0,!=0.6.1
- pytest
- pytest-cov
- scipy!=1.3.0
- scikit-learn=1.2
- pandas=1.3
2 changes: 1 addition & 1 deletion ci/deps/py310_pandas14_numpy121_sklearn12.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export CONDA_PYTHON_VERSION='3.10.*'
export PANDAS_VERSION='1.4.*'
export NUMPY_VERSION='1.21.*'
export SKLEARN_VERSION='1.2.*'
export NO_SLOW=false
export NO_SLOW=true
6 changes: 6 additions & 0 deletions ci/deps/py311_pandas15_numpy123_sklearn12.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# shellcheck shell=sh
export CONDA_PYTHON_VERSION='3.11.*'
export PANDAS_VERSION='1.5.* '
export NUMPY_VERSION='1.23.*'
export SKLEARN_VERSION='1.2.*'
export NO_SLOW=false
6 changes: 0 additions & 6 deletions ci/deps/py38_pandas11_numpy120_sklearn12.sh

This file was deleted.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ requires = [
# scikit-learn requirements
"scikit-learn~=1.2.0; python_version<='3.9'",
"scikit-learn~=1.2.0; python_version=='3.10'",
"scikit-learn; python_version>'3.10'",
"scikit-learn~=1.2.0; python_version=='3.11'",
"scikit-learn; python_version>'3.11'",
]
build-backend = "setuptools.build_meta"

Expand Down