diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index c1bf77bc872..6dd2a998fd0 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -43,17 +43,17 @@ jobs: - [windows-2025, win, AMD64] - [macos-15, macosx, arm64] - [macos-15-intel, macosx, x86_64] - python: ["cp311", "cp312", "cp313", "cp314"] + python: ["cp312", "cp313", "cp314", "cp315"] defaults: run: working-directory: ./package steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 - name: Build wheels - uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4 + uses: pypa/cibuildwheel@v4.3.5 with: package-dir: package env: @@ -65,7 +65,7 @@ jobs: if: | (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/package')) || (github.event_name == 'release' && github.event.action == 'published') - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@v7.0.2 with: name: wheel-${{ matrix.buildplat[0] }}-${{ matrix.python }} path: wheelhouse/*.whl @@ -80,7 +80,7 @@ jobs: run: working-directory: ./package steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 @@ -91,7 +91,7 @@ jobs: if: | (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/package')) || (github.event_name == 'release' && github.event.action == 'published') - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@v7.0.2 with: name: sdist path: package/dist/*.tar.gz @@ -106,7 +106,7 @@ jobs: run: working-directory: ./testsuite steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 @@ -117,7 +117,7 @@ jobs: if: | (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/package')) || (github.event_name == 'release' && github.event.action == 'published') - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@v7.0.2 with: name: sdist_tests path: testsuite/dist/*.tar.gz @@ -136,7 +136,7 @@ jobs: runs-on: ubuntu-latest needs: [build_wheels, build_sdist, build_sdist_tests] steps: - - uses: actions/download-artifact@v8 + - uses: actions/download-artifact@v8.0.2 with: path: dist merge-multiple: true @@ -147,7 +147,7 @@ jobs: mv dist/mdanalysistests-* testsuite/dist - name: upload_source_and_wheels - uses: pypa/gh-action-pypi-publish@v1.14.2 + uses: pypa/gh-action-pypi-publish@v1.14.3 with: skip_existing: true repository_url: https://test.pypi.org/legacy/ @@ -165,7 +165,7 @@ jobs: runs-on: ubuntu-latest needs: [build_wheels, build_sdist, build_sdist_tests] steps: - - uses: actions/download-artifact@v8 + - uses: actions/download-artifact@v8.0.2 with: path: dist merge-multiple: true @@ -176,7 +176,7 @@ jobs: mv dist/mdanalysistests-* testsuite/dist - name: upload_tests - uses: pypa/gh-action-pypi-publish@v1.14.2 + uses: pypa/gh-action-pypi-publish@v1.14.3 with: packages_dir: testsuite/dist skip_existing: true @@ -195,7 +195,7 @@ jobs: runs-on: ubuntu-latest needs: [build_wheels, build_sdist, build_sdist_tests] steps: - - uses: actions/download-artifact@v8 + - uses: actions/download-artifact@v8.0.2 with: path: dist merge-multiple: true @@ -206,7 +206,7 @@ jobs: mv dist/mdanalysistests-* testsuite/dist - name: upload_source_and_wheels - uses: pypa/gh-action-pypi-publish@v1.14.2 + uses: pypa/gh-action-pypi-publish@v1.14.3 upload_pypi_mdanalysistests: if: | @@ -221,7 +221,7 @@ jobs: runs-on: ubuntu-latest needs: [build_wheels, build_sdist, build_sdist_tests] steps: - - uses: actions/download-artifact@v8 + - uses: actions/download-artifact@v8.0.2 with: path: dist merge-multiple: true @@ -232,7 +232,7 @@ jobs: mv dist/mdanalysistests-* testsuite/dist - name: upload_tests - uses: pypa/gh-action-pypi-publish@v1.14.2 + uses: pypa/gh-action-pypi-publish@v1.14.3 with: packages_dir: testsuite/dist @@ -248,7 +248,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-15, macos-15-intel, windows-latest] - python-version: ["3.11", "3.12", "3.13", "3.14"] + python-version: ["3.12", "3.13", "3.14", "3.15"] type: ["FULL", "MIN"] exclude: # Multiple deps don't like windows @@ -257,16 +257,16 @@ jobs: type: "FULL" - os: "macos-latest" type: "FULL" - - python-version: "3.14" + - python-version: "3.15" type: "FULL" env: MPLBACKEND: agg steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 - name: setup_micromamba - uses: mamba-org/setup-micromamba@v3 + uses: mamba-org/setup-micromamba@v3.2.1 with: environment-name: mda create-args: >- diff --git a/.github/workflows/gh-ci-cron.yaml b/.github/workflows/gh-ci-cron.yaml index 6185341dd70..108c0f79edc 100644 --- a/.github/workflows/gh-ci-cron.yaml +++ b/.github/workflows/gh-ci-cron.yaml @@ -33,14 +33,14 @@ jobs: timeout-minutes: 60 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 - name: setup_os uses: ./.github/actions/setup-os with: os-type: "ubuntu" - - uses: actions/setup-python@v6 + - uses: actions/setup-python@v7.1.0 # minimally install nightly wheels & core deps - name: nightly_wheels @@ -55,7 +55,7 @@ jobs: python -m pip install \ "cython>=0.28" \ packaging \ - "setuptools>69.4" \ + "setuptools>=75.0" \ wheel \ "griddataformats>=0.4.0" \ "mmtf-python>=1.0" \ @@ -91,7 +91,7 @@ jobs: timeout-minutes: 60 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 - name: setup_os uses: ./.github/actions/setup-os @@ -99,11 +99,11 @@ jobs: os-type: "ubuntu" - name: setup_micromamba - uses: mamba-org/setup-micromamba@v2 + uses: mamba-org/setup-micromamba@v3.2.1 with: environment-name: mda create-args: >- - python=3.11 + python=3.15 pip condarc: | channels: @@ -143,7 +143,7 @@ jobs: os: [ubuntu-22.04, macos-15] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 - name: setup_os uses: ./.github/actions/setup-os @@ -151,7 +151,7 @@ jobs: os-type: ${{ matrix.os }} - name: setup_micromamba - uses: mamba-org/setup-micromamba@v2 + uses: mamba-org/setup-micromamba@v3.2.1 with: environment-name: mda create-args: >- @@ -188,16 +188,16 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.11", "3.12", "3.13", "3.14"] + python-version: ["3.12", "3.13", "3.14", "3.15"] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 - name: setup_os uses: ./.github/actions/setup-os with: os-type: "ubuntu" - - uses: actions/setup-python@v6 + - uses: actions/setup-python@v7.1.0 with: python-version: ${{ matrix.python-version }} @@ -232,9 +232,9 @@ jobs: # Stick to macos intel because some of our # optional deps don't support arm64 (i.e. macos-latest) os: [ubuntu-latest, macos-26-intel] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.11", "3.12", "3.13", "3.14"] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 - name: setup_os uses: ./.github/actions/setup-os @@ -242,7 +242,7 @@ jobs: os-type: ${{ matrix.os }} - name: setup_micromamba - uses: mamba-org/setup-micromamba@v2 + uses: mamba-org/setup-micromamba@v3.2.1 with: environment-name: mda create-args: >- @@ -276,11 +276,11 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.11", "3.12", "3.13", "3.14"] wheels: ['true', 'false'] steps: # Checkout to have access to local actions (i.e. setup-os) - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 # We need this here in order to make sure we assign the correct compiler (i.e. clang for macos) - name: setup_os @@ -288,14 +288,14 @@ jobs: with: os-type: ${{ matrix.os }} - - uses: actions/setup-python@v6 + - uses: actions/setup-python@v7.1.0 with: python-version: ${{ matrix.python-version }} - name: install_deps shell: bash run: | - pip install pytest-xdist pytest-timeout "numpy<2.3" "cython<3.1" wheel "setuptools>=40.9.0" packaging + pip install pytest-xdist pytest-timeout numpy cython wheel "setuptools>=40.9.0" packaging - name: install_mdanalysis shell: bash diff --git a/.github/workflows/gh-ci.yaml b/.github/workflows/gh-ci.yaml index 06e74b04cd6..1c127d88656 100644 --- a/.github/workflows/gh-ci.yaml +++ b/.github/workflows/gh-ci.yaml @@ -28,7 +28,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, ] - python-version: ["3.11", "3.12", "3.13"] + python-version: ["3.12", "3.13", "3.14"] full-deps: [true, ] codecov: [true, ] cython: ["cython<3.1", ] @@ -37,40 +37,40 @@ jobs: # and cython >=3.1 to deal temporarily with # keeping on testing Cython whilst issue #5057 # is not fixed - - name: python_314_nocov + - name: python_315_nocov os: ubuntu-latest - python-version: "3.14" + python-version: "3.15" full-deps: false codecov: false cython: "cython>=3.1" - - name: python_311_nocov + - name: python_312_nocov os: ubuntu-latest - python-version: "3.11" + python-version: "3.12" full-deps: false codecov: false cython: "cython>=3.1" - - name: macos_arm64_py313 + - name: macos_arm64_py314 os: macos-latest - python-version: "3.13" + python-version: "3.14" full-deps: false codecov: true cython: "cython<3.1" - name: ubuntu_arm - os: ubuntu-24.04-arm - python-version: "3.13" + os: ubuntu-latest-arm + python-version: "3.14" full-deps: false codecov: false cython: "cython>3.1" - name: numpy_min os: ubuntu-latest - python-version: "3.11" + python-version: "3.12" full-deps: false codecov: true - numpy: numpy=1.26.0 + numpy: numpy=2.2.0 cython: "cython<3.1" - name: asv_check os: ubuntu-latest - python-version: "3.11" + python-version: "3.14" full-deps: true codecov: false extra-pip-deps: asv @@ -79,7 +79,7 @@ jobs: MPLBACKEND: agg steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 - name: setup_os uses: ./.github/actions/setup-os @@ -87,7 +87,7 @@ jobs: os-type: ${{ matrix.os }} - name: setup_micromamba - uses: mamba-org/setup-micromamba@v2 + uses: mamba-org/setup-micromamba@v3.2.1 with: environment-name: mda create-args: >- @@ -145,7 +145,7 @@ jobs: - name: codecov if: matrix.codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@v7.1.1 with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml @@ -162,14 +162,14 @@ jobs: MPLBACKEND: agg steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 - name: setup_micromamba - uses: mamba-org/setup-micromamba@v2 + uses: mamba-org/setup-micromamba@v3.2.1 with: environment-name: mda create-args: >- - python=3.11 + python=3.12 pip condarc: | channels: @@ -259,11 +259,11 @@ jobs: timeout-minutes: 30 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 - - uses: actions/setup-python@v6 + - uses: actions/setup-python@v7.1.0 with: - python-version: 3.11 + python-version: 3.12 - name: install_deps run: | diff --git a/.github/workflows/labels.yaml b/.github/workflows/labels.yaml index 2ddec420fc9..48ee3a4be75 100644 --- a/.github/workflows/labels.yaml +++ b/.github/workflows/labels.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/labeler@v6 + - uses: actions/labeler@v7.0.0 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: ".github/pr_path_labeler.yml" diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index 34315e3404c..3049db5179e 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -26,21 +26,21 @@ jobs: shell: bash steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 with: fetch-depth: 0 - - uses: actions/setup-python@v6 + - uses: actions/setup-python@v7.1.0 with: - python-version: "3.11" + python-version: "3.12" - - uses: psf/black@stable + - uses: psf/black@26.10.1 with: options: "--check" src: "./package" version: "~= 24.0" - - uses: psf/black@stable + - uses: psf/black@26.10.1 with: options: "--check" src: "./testsuite" @@ -52,11 +52,11 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 - - uses: actions/setup-python@v6 + - uses: actions/setup-python@v7.1.0 with: - python-version: "3.11" + python-version: "3.12" - name: install run: | @@ -74,14 +74,14 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 - name: setup_micromamba - uses: mamba-org/setup-micromamba@v2 + uses: mamba-org/setup-micromamba@v3.2.1 with: environment-name: mda create-args: >- - python=3.11 + python=3.12 pip condarc: | channels: diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f48ea4ba745..2cae1d4cda3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -21,39 +21,39 @@ jobs: MPLBACKEND: agg strategy: matrix: - Win-Python311-64bit-full: - PYTHON_VERSION: '3.11' + Win-Python312-64bit-full: + PYTHON_VERSION: '3.12' PYTHON_ARCH: 'x64' BUILD_TYPE: 'normal' imageName: 'windows-latest' - Win-Python313-64bit-full: - PYTHON_VERSION: '3.13' + Win-Python314-64bit-full: + PYTHON_VERSION: '3.14' PYTHON_ARCH: 'x64' BUILD_TYPE: 'normal' imageName: 'windows-latest' - Win-Python313-64bit-full-wheel: - PYTHON_VERSION: '3.13' + Win-Python314-64bit-full-wheel: + PYTHON_VERSION: '3.14' PYTHON_ARCH: 'x64' BUILD_TYPE: 'wheel' - NUMPY_MIN: '2.1.0' + NUMPY_MIN: '2.2.0' imageName: 'windows-latest' - Win-Python311-64bit-full-wheel: - PYTHON_VERSION: '3.11' + Win-Python312-64bit-full-wheel: + PYTHON_VERSION: '3.12' PYTHON_ARCH: 'x64' BUILD_TYPE: 'wheel' - NUMPY_MIN: '1.26.0' + NUMPY_MIN: '2.2.0' imageName: 'windows-latest' - Linux-Python313-64bit-full-wheel: - PYTHON_VERSION: '3.13' + Linux-Python314-64bit-full-wheel: + PYTHON_VERSION: '3.14' PYTHON_ARCH: 'x64' BUILD_TYPE: 'wheel' - NUMPY_MIN: '2.1.0' + NUMPY_MIN: '2.2.0' imageName: 'ubuntu-latest' - Linux-Python311-64bit-full-wheel: - PYTHON_VERSION: '3.11' + Linux-Python312-64bit-full-wheel: + PYTHON_VERSION: '3.12' PYTHON_ARCH: 'x64' BUILD_TYPE: 'wheel' - NUMPY_MIN: '1.26.0' + NUMPY_MIN: '2.2.0' imageName: 'ubuntu-latest' pool: vmImage: $(imageName) diff --git a/maintainer/conda/environment.yml b/maintainer/conda/environment.yml index e20ad6de080..40de19e61b0 100644 --- a/maintainer/conda/environment.yml +++ b/maintainer/conda/environment.yml @@ -17,9 +17,9 @@ dependencies: - mmtf-python - mock - networkx - - numpy>=1.26.0 + - numpy>=2.2.0 - pytest - - python==3.11 + - python==3.12 - pytng>=0.2.3 - scikit-learn - scipy diff --git a/package/pyproject.toml b/package/pyproject.toml index 81be6269e44..66fcc65c394 100644 --- a/package/pyproject.toml +++ b/package/pyproject.toml @@ -9,9 +9,9 @@ requires = [ # Note that building against numpy 1.x works fine too - users and # redistributors can do this by installing the numpy version they like and # disabling build isolation. - "numpy>=2.0.0", + "numpy>=2.2.0", # Set to minimum version of setuptools that allows pyproject.toml - "setuptools >= 40.9.0", + "setuptools >= 75.0.0", "wheel", ] build-backend = "setuptools.build_meta" @@ -27,15 +27,15 @@ authors = [ maintainers = [ {name = 'MDAnalysis Core Developers', email = 'mdanalysis@numfocus.org'} ] -requires-python = ">=3.11" +requires-python = ">=3.12" dependencies = [ - 'numpy>=1.26.0', + 'numpy>=2.2.0', 'GridDataFormats>=0.4.0', 'mmtf-python>=1.0.0', - 'joblib>=0.12', - 'scipy>=1.5.0', - 'matplotlib>=1.5.1', - 'tqdm>=4.43.0', + 'joblib>=1.4.0', + 'scipy>=1.16.0', + 'matplotlib>=3.10.0', + 'tqdm>=4.67.0', 'threadpoolctl', 'packaging', 'filelock', @@ -55,10 +55,10 @@ classifiers = [ 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Programming Language :: Python', - 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', 'Programming Language :: Python :: 3.14', + 'Programming Language :: Python :: 3.15', 'Programming Language :: C', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Bio-Informatics', @@ -128,7 +128,7 @@ MDAnalysis = [ [tool.black] line-length = 79 -target-version = ['py311', 'py312', 'py313'] +target-version = ['py312', 'py313'] extend-exclude = ''' ( __pycache__ diff --git a/testsuite/pyproject.toml b/testsuite/pyproject.toml index a1ced596d84..b105ae7a6d4 100644 --- a/testsuite/pyproject.toml +++ b/testsuite/pyproject.toml @@ -1,6 +1,6 @@ [build-system] requires = [ - "setuptools >= 40.9.0", + "setuptools >= 75.0.0", ] build-backend = "setuptools.build_meta" @@ -24,10 +24,10 @@ classifiers = [ "Operating System :: Microsoft :: Windows", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.15", "Programming Language :: C", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Bio-Informatics", @@ -35,7 +35,7 @@ classifiers = [ "Topic :: Software Development :: Libraries :: Python Modules", ] readme = {file = "README", content-type = "text/x-rst"} -requires-python = ">=3.11" +requires-python = ">=3.12" dynamic = ["version", "dependencies"] [project.urls] @@ -158,7 +158,7 @@ filterwarnings = [ [tool.black] line-length = 79 -target-version = ['py311', 'py312', 'py313'] +target-version = ['py312', 'py313'] extend-exclude = ''' ( testsuite/MDAnalysisTests/datafiles\.py