Repository: mhostetter/galois (language: python)

Issue:
Add support for NumPy >= 2.1



Discussion / hints:

Fix patch:
diff --git a/README.md b/README.md
index b4ee6a164..f6b63c46d 100644
--- a/README.md
+++ b/README.md
@@ -76,7 +76,7 @@ Import the `galois` package in Python.
 In [1]: import galois
 
 In [2]: galois.__version__
-Out[2]: '0.4.1'
+Out[2]: '0.4.2'
 ```
 
 ### Create a [`FieldArray`](https://mhostetter.github.io/galois/latest/api/galois.FieldArray/) subclass
diff --git a/docs/conf.py b/docs/conf.py
index bcc6f39b5..cce14567a 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -294,7 +294,7 @@
         "name": "warning",
         "title": "Warning",
         "classes": ["collapsible"],
-        "icon": "fontawesome/solid/triangle-exclamation",
+        "icon": "fontawesome/solid/exclamation",
         "override": True,
     },
     {
@@ -359,6 +359,13 @@
         "icon": "fontawesome/regular/star",
         "color": (255, 233, 3),  # Gold
     },
+    {
+        "name": "nomenclature",
+        "title": "Variable nomenclature",
+        "classes": ["collapsible"],
+        "icon": "fontawesome/solid/arrow-down-a-z",
+        "color": (108, 117, 125),  # --sd-color-secondary
+    },
     {
         "name": "fast-performance",
         "title": "Faster performance",
diff --git a/docs/release-notes/v0.4.md b/docs/release-notes/v0.4.md
index 73edda7c9..b904a1a41 100644
--- a/docs/release-notes/v0.4.md
+++ b/docs/release-notes/v0.4.md
@@ -34,3 +34,15 @@ tocdepth: 2
 - Semjon Kravtšenko ([@semjon00](https://github.com/semjon00))
 - [@MrVeka](https://github.com/MrVeka)
 - Matt Hostetter ([@mhostetter](https://github.com/mhostetter))
+
+## v0.4.2
+
+*Released September 5, 2024*
+
+### Changes
+
+- Added support for NumPy 2.1. ([#567](https://github.com/mhostetter/galois/issues/567))
+
+### Contributors
+
+- Matt Hostetter ([@mhostetter](https://github.com/mhostetter))
diff --git a/pyproject.toml b/pyproject.toml
index 0186afb48..bea009ea2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -50,7 +50,7 @@ classifiers = [
 ]
 requires-python = ">=3.7"
 dependencies = [
-    "numpy >= 1.21.0, < 2.1",     # v1.21.0 is needed for dtype support of ufuncs, see https://numpy.org/devdocs/release/1.21.0-notes.html#ufunc-signature-and-dtype-generalization-and-casting
+    "numpy >= 1.21.0, < 2.2",     # v1.21.0 is needed for dtype support of ufuncs, see https://numpy.org/devdocs/release/1.21.0-notes.html#ufunc-signature-and-dtype-generalization-and-casting
     "numba >= 0.55, < 0.61",      # v0.55 is needed for support of NumPy 1.21
     "typing_extensions >= 4.0.0", # v4.0.0 is needed for use of Self (Python 3.11+) and Literal (Python 3.8+)
 ]


Test patch:
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 8217082ed..d4b89caa9 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -71,6 +71,7 @@ jobs:
       - name: Upload coverage report
         uses: codecov/codecov-action@v3
         with:
+          version: v0.7.3
           fail_ci_if_error: false
           verbose: true
 
@@ -125,6 +126,7 @@ jobs:
       - name: Upload coverage report
         uses: codecov/codecov-action@v3
         with:
+          version: v0.7.3
           fail_ci_if_error: false
           verbose: true
 
@@ -183,5 +185,6 @@ jobs:
       - name: Upload coverage report
         uses: codecov/codecov-action@v3
         with:
+          version: v0.7.3
           fail_ci_if_error: false
           verbose: true