Skip to content

Commit be3842b

Browse files
authored
Merge pull request #233 from Becksteinlab/release082
release 0.8.3
2 parents e6b85eb + 0563818 commit be3842b

File tree

7 files changed

+38
-16
lines changed

7 files changed

+38
-16
lines changed

.github/workflows/ci.yaml

+18-11
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ on:
66
- cron: "44 4 * * 0"
77
push:
88
branches:
9-
- "master"
9+
- "main"
1010
pull_request:
1111
branches:
12-
- "master"
12+
- "main"
1313

1414
concurrency:
1515
group: "${{ github.ref }}-${{ github.head_ref }}"
@@ -22,34 +22,41 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
os: [ubuntu-latest, macOS-latest]
25-
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
25+
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
2626
gromacs-version: ["2021.1"]
2727
# Test other GROMACS versions selectively on a recent Python.
2828
# On macOS only test one GROMACS version and two Python versions
2929
# to keep the testing matrix manageable.
3030
exclude:
3131
- os: macOS-latest
32-
python-version: 3.6
32+
python-version: "3.6"
3333
- os: macOS-latest
34-
python-version: 3.7
34+
python-version: "3.7"
3535
- os: macOS-latest
36-
python-version: 3.9
36+
python-version: "3.8"
37+
- os: macOS-latest
38+
python-version: "3.9"
39+
- os: macOS-latest
40+
python-version: "3.10"
3741
include:
3842
- os: ubuntu-latest
39-
python-version: 2.7
43+
python-version: "2.7"
4044
gromacs-version: "4.6.5"
4145
- os: ubuntu-latest
42-
python-version: 3.8
46+
python-version: "3.10"
4347
gromacs-version: "4.6.5"
4448
- os: ubuntu-latest
45-
python-version: 3.8
49+
python-version: "3.10"
4650
gromacs-version: "2018.6"
4751
- os: ubuntu-latest
48-
python-version: 3.8
52+
python-version: "3.10"
4953
gromacs-version: "2019.1"
5054
- os: ubuntu-latest
51-
python-version: 3.8
55+
python-version: "3.10"
5256
gromacs-version: "2020.6"
57+
- os: ubuntu-latest
58+
python-version: "3.10"
59+
gromacs-version: "2022.4"
5360

5461
env:
5562
MPLBACKEND: agg

CHANGES

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
CHANGELOG for GromacsWrapper
33
==============================
44

5+
2023-03-09 0.8.3
6+
orbeckst
7+
8+
* confirmed support for GROMACS 4.6.5, 2018, 2019, 2020, 2021, 2022 on
9+
Python 2.7 and 3.6--3.11 on Linux and macOS
10+
* replaced deprecated logger.warn() with logger.warning() (#229)
11+
* replaced deprecated numpy.bool with bool in a test (#234)
12+
* fixed use of moved collections.Iterable in test (#235)
13+
14+
515
2021-09-09 0.8.2
616
orbeckst, simonbray
717

gromacs/fileformats/xvg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ def break_array(a, threshold=numpy.pi, other=None):
12001200
b = numpy.empty((len(a) + m))
12011201
# calculate new indices for breaks in b, taking previous insertions into account
12021202
b_breaks = breaks + numpy.arange(m)
1203-
mask = numpy.zeros_like(b, dtype=numpy.bool)
1203+
mask = numpy.zeros_like(b, dtype=bool)
12041204
mask[b_breaks] = True
12051205
b[~mask] = a
12061206
b[mask] = numpy.NAN

tests/fileformats/top/test_amber03star.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77

88
import pytest
99

10-
from gromacs.exceptions import GromacsError
10+
import gromacs
1111

1212
from .top import TopologyTest
1313
from ...datafiles import datafile
1414

15+
@pytest.mark.xfail(gromacs.release().startswith("2022"),
16+
reason="issue https://github.com/Becksteinlab/GromacsWrapper/issues/236")
1517
class TestAmber03star(TopologyTest):
1618
processed = datafile('fileformats/top/amber03star/processed.top')
1719
conf = datafile('fileformats/top/amber03star/conf.gro')

tests/fileformats/top/test_amber03w.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77

88
import pytest
99

10-
from gromacs.exceptions import GromacsError
10+
import gromacs
1111

1212
from .top import TopologyTest
1313
from ...datafiles import datafile
1414

15+
@pytest.mark.xfail(gromacs.release().startswith("2022"),
16+
reason="issue https://github.com/Becksteinlab/GromacsWrapper/issues/236")
1517
class TestAmber03w(TopologyTest):
1618
processed = datafile('fileformats/top/amber03w/processed.top')
1719
conf = datafile('fileformats/top/amber03w/conf.gro')

tests/test_tools.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def test_failure_ignore():
4949
raise AssertionError("Should have ignored exception {}".format(err))
5050

5151
class TestRelease(object):
52-
major_releases = ('4', '5', '2016', '2018', '2019', '2020', '2021')
52+
# add tested releases here
53+
major_releases = ('4', '5', '2016', '2018', '2019', '2020', '2021', '2022')
5354

5455
def test_release(self):
5556
assert gromacs.release().startswith(self.major_releases)

tests/test_utilities.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import pytest
1010
from six.moves import cPickle as pickle
1111
from six.moves import StringIO
12-
from collections import Iterable
12+
from six.moves.collections_abc import Iterable
1313

1414
import numpy as np
1515

0 commit comments

Comments
 (0)