diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9e1c1d64..30996977 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,10 +25,10 @@ jobs: - uses: actions/checkout@v7 with: submodules: true - - name: Set up Python 3.11 + - name: Set up Python 3.13 uses: actions/setup-python@v7 with: - python-version: "3.11" + python-version: "3.13" - name: Cache pre-commit uses: actions/cache@v6 diff --git a/.github/workflows/test-slow.yaml b/.github/workflows/test-slow.yaml index 37750fcd..295c1a4a 100644 --- a/.github/workflows/test-slow.yaml +++ b/.github/workflows/test-slow.yaml @@ -23,7 +23,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - python: ["3.12"] + python: ["3.13"] group: [1, 2, 3] name: ${{ matrix.name }} Python ${{ matrix.python }} (group ${{ matrix.group }}/3) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 714531de..251c3ae3 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -26,14 +26,14 @@ jobs: fail-fast: false matrix: include: - - os: ubuntu-latest - python: "3.11" - os: ubuntu-latest python: "3.12" - os: ubuntu-latest python: "3.13" + - os: ubuntu-latest + python: "3.14" - os: macos-latest - python: "3.12" + python: "3.14" name: ${{ matrix.name }} Python ${{ matrix.python }} diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 9a416ab5..4e0bf492 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -3,7 +3,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.11" + python: "3.13" sphinx: configuration: docs/conf.py # disable this for more lenient docs builds diff --git a/docs/installation.rst b/docs/installation.rst index 9e8f5711..da6ea167 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -1,6 +1,6 @@ Installation ============ -:mod:`cellflow` requires Python version >= 3.11 to run. +:mod:`cellflow` requires Python version >= 3.12 to run. PyPI ---- diff --git a/pyproject.toml b/pyproject.toml index d6388bb5..d2d7dfbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,12 +20,12 @@ authors = [ { name = "Daniil Bobrovskiy" }, { name = "Guillaume Huguet" }, ] -requires-python = ">=3.11" +requires-python = ">=3.12" classifiers = [ "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", ] dynamic = [ "version" ] @@ -42,8 +42,7 @@ dependencies = [ "ott-jax[neural]>=0.5", "pyarrow", # required for dask.dataframe "scanpy", - "scikit-learn==1.5.1", - "scipy<1.16", # see https://github.com/statsmodels/statsmodels/issues/9584 + "scikit-learn>=1.5.1", "session-info", ] @@ -87,7 +86,6 @@ optional-dependencies.pp = [ "pertpy", "pynndescent", "rdkit", - "statsmodels<0.15; python_version<'3.12'", # pertpy 1.0.3 (last for 3.11) imports multipletests removed in 0.15 ] optional-dependencies.test = [ "cellflow-tools[embedding]", @@ -163,6 +161,9 @@ lint.per-file-ignores."docs/*" = [ "I" ] lint.per-file-ignores."tests/*" = [ "D" ] lint.pydocstyle.convention = "numpy" +[tool.pyproject-fmt] +max_supported_python = "3.14" + [tool.pytest.ini_options] testpaths = [ "tests" ] xfail_strict = true @@ -197,7 +198,7 @@ sort = "Miss" legacy_tox_ini = """ [tox] min_version = 4.0 -env_list = lint-code,py{3.11,3.12,3.13} +env_list = lint-code,py{3.12,3.13,3.14} skip_missing_interpreters = true [testenv] @@ -289,7 +290,7 @@ commands = biber --tool --output_file={tox_root}{/}docs{/}references.bib --nolog [tool.mypy] mypy_path = "$MYPY_CONFIG_FILE_DIR/src" -python_version = "3.11" +python_version = "3.12" plugins = "numpy.typing.mypy_plugin" ignore_errors = false