Skip to content

Commit 9c68687

Browse files
authored
Merge pull request #405 from glotzerlab/optional-numpy2
Make numpy 2.0 requirement optional.
2 parents 3fd2482 + b7fdef6 commit 9c68687

9 files changed

+22
-9
lines changed

.bumpversion.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 3.4.1
2+
current_version = 3.4.2
33
commit = False
44
tag = False
55

.github/ISSUE_TEMPLATE/bug_report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ body:
6464
label: GSD
6565
description: |
6666
What version of GSD are you using?
67-
placeholder: 3.4.1
67+
placeholder: 3.4.2
6868
validations:
6969
required: true
7070
- type: markdown

.github/ISSUE_TEMPLATE/release.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Release checklist
33
about: '[for maintainer use]'
4-
title: 'Release gsd 3.4.1'
4+
title: 'Release gsd 3.4.2'
55
labels: ''
66
assignees: 'joaander'
77

CHANGELOG.rst

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ Change Log
1010
3.x
1111
---
1212

13+
3.4.2 (2024-11-13)
14+
^^^^^^^^^^^^^^^^^^
15+
16+
*Fixed:*
17+
18+
* Make NumPy 2.0 requirement optional
19+
(`#405 <https://github.com/glotzerlab/gsd/pull/405>`__).
20+
1321
3.4.1 (2024-10-21)
1422
^^^^^^^^^^^^^^^^^^
1523

Doxyfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#---------------------------------------------------------------------------
66
DOXYFILE_ENCODING = UTF-8
77
PROJECT_NAME = "GSD"
8-
PROJECT_NUMBER = v3.4.1
8+
PROJECT_NUMBER = v3.4.2
99
PROJECT_BRIEF = "General simulation data"
1010
PROJECT_LOGO =
1111
OUTPUT_DIRECTORY = devdoc

gsd/hoomd.py

+5
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,11 @@ def read_log(name, scalar_only=False):
11691169
msg = 'gsd module is not available'
11701170
raise RuntimeError(msg)
11711171

1172+
min_supported_numpy = 2
1173+
if int(numpy.version.version.split('.')[0]) < min_supported_numpy:
1174+
msg = 'read_log requires numpy >= 2.0'
1175+
raise RuntimeError(msg)
1176+
11721177
with gsd.fl.open(
11731178
name=str(name),
11741179
mode='r',

gsd/pygsd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
import numpy
3838

39-
version = '3.4.1'
39+
version = '3.4.2'
4040

4141
logger = logging.getLogger('gsd.pygsd')
4242

gsd/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
not the file layer version it reads/writes.
1010
"""
1111

12-
version = '3.4.1'
12+
version = '3.4.2'
1313

1414
__all__ = [
1515
'version',

pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
requires-python = ">=3.6"
33
name = "gsd"
4-
version = "3.4.1"
4+
version = "3.4.2"
55
description = "General simulation data file format."
66
readme = "README.md"
77
license = {text = "BSD-2-Clause"}
@@ -17,15 +17,15 @@ classifiers=[
1717
"License :: OSI Approved :: BSD License",
1818
"Topic :: Scientific/Engineering :: Physics",
1919
]
20-
dependencies = ["numpy>=2.0.0"]
20+
dependencies = ["numpy"]
2121

2222
[project.scripts]
2323
gsd = "gsd.__main__:main"
2424

2525
[project.urls]
2626
Homepage = "https://gsd.readthedocs.io"
2727
Documentation = "https://gsd.readthedocs.io"
28-
Download = "https://github.com/glotzerlab/gsd/releases/download/v3.4.1/gsd-3.4.1.tar.gz"
28+
Download = "https://github.com/glotzerlab/gsd/releases/download/v3.4.2/gsd-3.4.2.tar.gz"
2929
Source = "https://github.com/glotzerlab/gsd"
3030
Issues = "https://github.com/glotzerlab/gsd/issues"
3131

0 commit comments

Comments
 (0)