[med-svn] [Git][med-team/cyvcf2][upstream] New upstream version 0.31.1

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Sat Jul 20 19:15:53 BST 2024



Étienne Mollier pushed to branch upstream at Debian Med / cyvcf2


Commits:
1504e340 by Étienne Mollier at 2024-07-20T20:04:06+02:00
New upstream version 0.31.1
- - - - -


6 changed files:

- .github/workflows/build.yml
- CHANGES.md
- cyvcf2/__init__.py
- pyproject.toml
- requirements.txt
- setup.py


Changes:

=====================================
.github/workflows/build.yml
=====================================
@@ -110,6 +110,18 @@ jobs:
         run: |
           pytest --cov cyvcf2 --cov-report term-missing
 
+      # make sure to keep this numpy version in sync with setup.py
+      - name: Test with oldest numpy that we support
+        if: contains(fromJson('["3.7"]'), matrix.python-version)
+        run: |
+          pip install --force-reinstall --no-cache-dir 'numpy==1.16.0'
+          pytest --cov cyvcf2 --cov-report term-missing
+
+      - name: Test with newest available numpy
+        run: |
+          pip install -U numpy
+          pytest --cov cyvcf2 --cov-report term-missing
+
   windows_build:
     name: Run tests on Python windows-2022 MSYS2 UCRT64
     runs-on: windows-2022
@@ -164,6 +176,11 @@ jobs:
         run: |
           pytest --cov cyvcf2 --cov-report term-missing
 
+      - name: Test with newest available numpy
+        run: |
+          pip install -U numpy
+          pytest --cov cyvcf2 --cov-report term-missing
+
   sdist:
     runs-on: ubuntu-22.04
     strategy:
@@ -207,6 +224,11 @@ jobs:
         run: |
           pytest --import-mode importlib --cov cyvcf2 --cov-report term-missing
 
+      - name: Test with newest available numpy
+        run: |
+          pip install -U numpy
+          pytest --import-mode importlib --cov cyvcf2 --cov-report term-missing
+
       - name: Upload sdist tarball
         if: runner.os == 'Linux'
         uses: actions/upload-artifact at v4


=====================================
CHANGES.md
=====================================
@@ -1,3 +1,6 @@
+# v0.31.1
++ build fix for numpy 2.0.0 (#307, #308 thanks @aryarm for fixing build)
+
 # v0.31.0
 + fix OSX ARM wheels (#305, #306 thanks @graphenn for fix)
 


=====================================
cyvcf2/__init__.py
=====================================
@@ -2,4 +2,4 @@ from .cyvcf2 import (VCF, Variant, Writer, r_ as r_unphased, par_relatedness,
                      par_het)
 Reader = VCFReader = VCF
 
-__version__ = "0.31.0"
+__version__ = "0.31.1"


=====================================
pyproject.toml
=====================================
@@ -1,8 +1,9 @@
 [build-system]
 requires = [
-    "setuptools",
-    "wheel",
-    "cython>=0.23.3",
-    'oldest-supported-numpy; os_name != "nt"',
-    'numpy; os_name == "nt"'
+  "setuptools",
+  "wheel",
+  "cython>=0.23.3",
+  'oldest-supported-numpy; os_name != "nt" and python_version < "3.9"',
+  'numpy; os_name == "nt" and python_version < "3.9"',
+  'numpy>=2.0.0; python_version >= "3.9"',
 ]


=====================================
requirements.txt
=====================================
@@ -2,5 +2,6 @@ cython>=0.23.3
 coloredlogs
 click
 setuptools
-numpy; os_name == 'nt'  
-oldest-supported-numpy; os_name != 'nt'
+oldest-supported-numpy; os_name != "nt" and python_version < "3.9"
+numpy; os_name == "nt" and python_version < "3.9"
+numpy>=2.0.0; python_version >= "3.9"


=====================================
setup.py
=====================================
@@ -290,7 +290,8 @@ setup(
         ],
     ),
     python_requires=">=3.7",
-    install_requires=["numpy", "coloredlogs", "click"],
+    # make sure to keep this numpy version in sync with build.yml
+    install_requires=["numpy>=1.16.0", "coloredlogs", "click"],
     include_package_data=True,
     zip_safe=False,
     cmdclass={



View it on GitLab: https://salsa.debian.org/med-team/cyvcf2/-/commit/1504e340b9270288d772e85c5cefa45881ee7789

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/med-team/cyvcf2/-/commit/1504e340b9270288d772e85c5cefa45881ee7789
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240720/38c59a07/attachment-0001.htm>


More information about the debian-med-commit mailing list