Skip to content

Commit

Permalink
Merge branch 'MDAnalysis:develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
pillose authored Jul 29, 2023
2 parents 921616b + 439435e commit e358dcb
Show file tree
Hide file tree
Showing 54 changed files with 1,165 additions and 164 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-deps/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ inputs:
griddataformats:
default: 'griddataformats'
gsd:
default: 'gsd'
default: 'gsd>3.0.0'
hypothesis:
default: 'hypothesis'
matplotlib:
Expand Down Expand Up @@ -107,7 +107,6 @@ runs:
${{ inputs.cython }}
${{ inputs.fasteners }}
${{ inputs.griddataformats }}
${{ inputs.gsd }}
${{ inputs.hypothesis }}
${{ inputs.matplotlib }}
${{ inputs.mmtf-python }}
Expand All @@ -123,6 +122,7 @@ runs:
${{ inputs.chemfiles-python }}
${{ inputs.clustalw }}
${{ inputs.distopia }}
${{ inputs.gsd }}
${{ inputs.h5py }}
${{ inputs.hole2 }}
${{ inputs.joblib }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/darkerbot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
darker_bot:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
if: "github.repository == 'MDAnalysis/mdanalysis'"
name: Build wheels
runs-on: ${{ matrix.buildplat[0] }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -69,6 +70,7 @@ jobs:
if: "github.repository == 'MDAnalysis/mdanalysis'"
name: build package source distribution
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: ./package
Expand All @@ -93,6 +95,7 @@ jobs:
if: "github.repository == 'MDAnalysis/mdanalysis'"
name: build test source distribution
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: ./testsuite
Expand Down Expand Up @@ -187,6 +190,7 @@ jobs:
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/package'))
name: testpypi check
runs-on: ${{ matrix.os }}
timeout-minutes: 60
needs: upload_testpypi
strategy:
fail-fast: false
Expand Down
76 changes: 74 additions & 2 deletions .github/workflows/gh-ci-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
numpy_and_scipy_dev:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -51,7 +52,7 @@ jobs:
# overwrite installs by picking up nightly wheels
- name: nightly_wheels
run: |
pip install --pre -U -i https://pypi.anaconda.org/scipy-wheels-nightly/simple scipy numpy h5py matplotlib
pip install --pre -U -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy numpy networkx matplotlib
- name: list_deps
run: |
Expand All @@ -74,6 +75,7 @@ jobs:
native_march:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -117,6 +119,7 @@ jobs:
old_ubuntu_macos:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -158,9 +161,10 @@ jobs:
# Issue 1727
pip-only:
pip-only-develop:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -192,3 +196,71 @@ jobs:
- name: run_tests
run: |
pytest -n $numprocs testsuite/MDAnalysisTests --disable-pytest-warnings --durations=50
# Issue 4208
conda-latest-release:
# A set of runner to check that the latest conda release works as expected
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3

- name: setup_micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-name: mda
create-args: >-
python=${{ matrix.python-version }}
pip
# using jaime's shim to avoid pulling down the cudatoolkit
condarc: |
channels:
- jaimergp/label/unsupported-cudatoolkit-shim
- conda-forge
- bioconda
- name: install_deps
uses: ./.github/actions/setup-deps
with:
micromamba: true
full-deps: true
gsd: "gsd<3.0"

- name: install_mdanalysis
run: |
micromamba install mdanalysis mdanalysistests
- name: run_tests
run: |
pytest -n auto --pyargs MDAnalysisTests
pypi-latest-release:
# A set of runner to check that the latest conda release works as expected
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: install_mdanalysis
shell: bash
run: |
pip install mdanalysis mdanalysistests pytest-xdist "gsd<3.0"
- name: run_tests
shell: bash
run: |
pytest -n auto --pyargs MDAnalysisTests
7 changes: 5 additions & 2 deletions .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
main_tests:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
Expand All @@ -40,7 +41,7 @@ jobs:
python-version: 3.9
full-deps: false
codecov: true
numpy: numpy=1.21.0
numpy: numpy=1.22.3
- name: asv_check
os: ubuntu-latest
python-version: 3.9
Expand Down Expand Up @@ -113,6 +114,7 @@ jobs:
build_docs:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ubuntu-latest
timeout-minutes: 15
env:
CYTHON_TRACE_NOGIL: 1
MPLBACKEND: agg
Expand All @@ -135,7 +137,7 @@ jobs:
with:
micromamba: true
full-deps: true
extra-pip-deps: "sphinx sphinx-sitemap sphinx_rtd_theme msmb_theme==1.2.0 sphinxcontrib-bibtex pybtex pybtex-docutils"
extra-pip-deps: "docutils<0.18 sphinx<7.0 sphinx-sitemap sphinx_rtd_theme msmb_theme==1.2.0 sphinxcontrib-bibtex pybtex pybtex-docutils"

- name: build_srcs
uses: ./.github/actions/build-src
Expand Down Expand Up @@ -207,6 +209,7 @@ jobs:
sdist_check_and_build:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/greetings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
greeting:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
pull-requests: write
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
triage-on-file-paths:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/labeler@v3
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
darker_lint:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
pull-requests: write
defaults:
Expand Down Expand Up @@ -99,6 +100,7 @@ jobs:
pylint_check:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3

Expand All @@ -120,6 +122,7 @@ jobs:
mypy :
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3

Expand All @@ -138,7 +141,7 @@ jobs:
with:
micromamba: true
full-deps: true
numpy: numpy=1.21.0
numpy: numpy=1.22.3

- name: install
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rtd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
rtdpreview:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
pull-requests: write
steps:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This project is bound by a `Code of Conduct`_.

|powered_by_MDA|

If you use MDAnalysis_ in your project consider lettting your users and the world know about it by displaying the MDAnalysis_ badge! `Embedding code`_ is available for different markups.
If you use MDAnalysis_ in your project consider letting your users and the world know about it by displaying the MDAnalysis_ badge! `Embedding code`_ is available for different markups.

Example analysis script
=======================
Expand Down
24 changes: 6 additions & 18 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ jobs:
MPLBACKEND: agg
strategy:
matrix:
Win-Python39-32bit-full:
PYTHON_VERSION: '3.9'
PYTHON_ARCH: 'x86'
BUILD_TYPE: 'normal'
NUMPY_MIN: '1.21.0'
imageName: 'windows-2019'
Win-Python39-64bit-full:
PYTHON_VERSION: '3.9'
PYTHON_ARCH: 'x64'
Expand All @@ -47,7 +41,7 @@ jobs:
PYTHON_VERSION: '3.9'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'wheel'
NUMPY_MIN: '1.21.0'
NUMPY_MIN: '1.22.3'
imageName: 'windows-2019'
Linux-Python311-64bit-full-wheel:
PYTHON_VERSION: '3.11'
Expand All @@ -59,7 +53,7 @@ jobs:
PYTHON_VERSION: '3.9'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'wheel'
NUMPY_MIN: '1.21.0'
NUMPY_MIN: '1.22.3'
imageName: 'ubuntu-latest'
pool:
vmImage: $(imageName)
Expand All @@ -82,9 +76,10 @@ jobs:
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install tools'
- script: >-
python -m pip install --only-binary=scipy
python -m pip install --only-binary=scipy,h5py
cython
hypothesis
h5py>=2.10
matplotlib
numpy
packaging
Expand All @@ -96,27 +91,20 @@ jobs:
threadpoolctl
fasteners
displayName: 'Install dependencies'
# H5PY wheels are problematic on 32bit py3.9, so we don't install
# it in that specific case. Note: prefer binary because building
# h5py is difficult on azure.
- script: >-
pip install --prefer-binary h5py>=2.10
displayName: 'Install non 32bit dependencies'
condition: and(succeeded(), ne(variables['PYTHON_ARCH'], 'x86'))
# for wheel install testing, we pin to an
# older NumPy, the oldest version we support and that
# supports the Python version in use
# to check the ABI compatibility of our wheels
- script: >-
python -m pip install numpy==$(NUMPY_MIN)
displayName: 'pin to older NumPy (wheel test and 32bit)'
displayName: 'pin to older NumPy (wheel test)'
condition: and(succeeded(), ne(variables['NUMPY_MIN'], ''))
- script: >-
python -m pip install
biopython
"chemfiles>=0.10,<0.10.4"
duecredit
gsd
"gsd>3.0.0"
joblib
GridDataFormats
mmtf-python
Expand Down
5 changes: 3 additions & 2 deletions maintainer/conda/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- chemfiles>=0.10
- codecov
- cython
- docutils <0.18
- fasteners
- griddataformats
- gsd
Expand All @@ -16,14 +17,14 @@ dependencies:
- mmtf-python
- mock
- networkx
- numpy>=1.21
- numpy>=1.22.3
- pytest
- python==3.9
- pytng>=0.2.3
- scikit-learn
- scipy
- pip
- sphinx
- sphinx <7.0
- tidynamics>=1.0.0
- tqdm>=4.43.0
- sphinxcontrib-bibtex
Expand Down
2 changes: 2 additions & 0 deletions package/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ Chronological list of authors
- Egor Marin
- Shaivi Malik
- Daniel J. Evans
- Mohit Kumar
- Shubham Kumar

External code
-------------
Expand Down
Loading

0 comments on commit e358dcb

Please sign in to comment.