Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into feature/mmcif
Browse files Browse the repository at this point in the history
  • Loading branch information
marinegor committed Oct 24, 2024
2 parents 950cfcf + 101008b commit 8d1a8b5
Show file tree
Hide file tree
Showing 132 changed files with 2,871 additions and 1,708 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# black
83e5f99051d86ca354b537be8854c40f9b6ce172
2 changes: 1 addition & 1 deletion .github/actions/setup-deps/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ inputs:
dask:
default: 'dask'
distopia:
default: 'distopia>=0.2.0'
default: 'distopia>=0.2.0,<0.3.0'
h5py:
default: 'h5py>=2.10'
hole2:
Expand Down
62 changes: 0 additions & 62 deletions .github/workflows/darkerbot.yaml

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- [macos-12, macosx_*, x86_64]
- [windows-2019, win_amd64, AMD64]
- [macos-14, macosx_*, arm64]
python: ["cp310", "cp311", "cp312"]
python: ["cp310", "cp311", "cp312", "cp313"]
defaults:
run:
working-directory: ./package
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
mv dist/MDAnalysisTests-* testsuite/dist
- name: upload_source_and_wheels
uses: pypa/[email protected].1
uses: pypa/[email protected].2
with:
skip_existing: true
repository_url: https://test.pypi.org/legacy/
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
mv dist/MDAnalysisTests-* testsuite/dist
- name: upload_tests
uses: pypa/[email protected].1
uses: pypa/[email protected].2
with:
packages_dir: testsuite/dist
skip_existing: true
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:
mv dist/MDAnalysisTests-* testsuite/dist
- name: upload_source_and_wheels
uses: pypa/[email protected].0
uses: pypa/[email protected].2

upload_pypi_mdanalysistests:
if: |
Expand All @@ -227,7 +227,7 @@ jobs:
mv dist/MDAnalysisTests-* testsuite/dist
- name: upload_tests
uses: pypa/[email protected].0
uses: pypa/[email protected].2
with:
packages_dir: testsuite/dist

Expand All @@ -243,7 +243,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
type: ["FULL", "MIN"]
exclude:
# Multiple deps don't like windows
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/gh-ci-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ jobs:
with:
os-type: "ubuntu"

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/setup-python@v5

# minimally install nightly wheels & core deps
- name: nightly_wheels
Expand Down Expand Up @@ -197,7 +195,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
full-deps: [true, ]
codecov: [true, ]
include:
- name: python_313
os: ubuntu-latest
python-version: "3.13"
full-deps: false
codecov: true
- name: macOS_monterey_py311
os: macOS-12
python-version: "3.12"
Expand Down
71 changes: 10 additions & 61 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ defaults:
shell: bash -l {0}

jobs:
darker_lint:
black:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
pull-requests: write
defaults:
run:
shell: bash
Expand All @@ -35,66 +33,17 @@ jobs:
with:
python-version: "3.10"

- name: darker-main-code
id: darker-main-code
uses: akaihola/[email protected]
continue-on-error: true
- uses: psf/black@stable
with:
version: "~=1.6.1"
options: "--check --diff --color"
src: "./package/MDAnalysis"
revision: "HEAD^"
lint: "flake8"

- name: darker-test-code
id: darker-test-code
uses: akaihola/[email protected]
continue-on-error: true
options: "--check --verbose"
src: "./package"
version: "~= 24.0"

- uses: psf/black@stable
with:
version: "~=1.6.1"
options: "--check --diff --color"
src: "./testsuite/MDAnalysisTests"
revision: "HEAD^"
lint: "flake8"

- name: get-pr-info
uses: actions/github-script@v7
with:
script:
const prNumber = context.payload.number;
core.exportVariable('PULL_NUMBER', prNumber);

- name: save-status
env:
MAIN: ${{ steps.darker-main-code.outcome }}
TEST: ${{ steps.darker-test-code.outcome }}
shell: python
run: |
import os
import json
from pathlib import Path
Path('./darker_results/').mkdir(exist_ok=True)
d = {
'main_stat': os.environ['MAIN'],
'test_stat': os.environ['TEST'],
'PR_NUM': os.environ['PULL_NUMBER'],
'RUN_ID': os.environ['GITHUB_RUN_ID'],
}
with open('darker_results/status.json', 'w') as f:
json.dump(d, f)
- name: check-json
run: cat darker_results/status.json

- name: upload-status
uses: actions/upload-artifact@v4
with:
name: darkerlint
path: darker_results/
retention-days: 1
options: "--check --verbose"
src: "./testsuite"
version: "~= 24.0"


pylint_check:
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
PYTHON_VERSION: '3.12'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'wheel'
NUMPY_MIN: '1.26.0'
NUMPY_MIN: '2.1.0'
imageName: 'ubuntu-latest'
Linux-Python310-64bit-full-wheel:
PYTHON_VERSION: '3.10'
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/benchmarks/topology.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import MDAnalysis
import numpy as np
from MDAnalysis.topology import guessers
from MDAnalysis.guesser import DefaultGuesser

try:
from MDAnalysisTests.datafiles import GRO
Expand All @@ -26,7 +26,7 @@ def setup(self, num_atoms):

def time_guessbonds(self, num_atoms):
"""Benchmark for guessing bonds"""
guessers.guess_bonds(self.ag, self.ag.positions,
DefaultGuesser(None).guess_bonds(self.ag, self.ag.positions,
box=self.ag.dimensions,
vdwradii=self.vdwradii)

Expand Down
Loading

0 comments on commit 8d1a8b5

Please sign in to comment.