From 750d5635392d339afbae67afeedb298bb827333a Mon Sep 17 00:00:00 2001 From: Matt Liberty Date: Mon, 11 Nov 2024 10:55:21 -0500 Subject: [PATCH] Removed numpy dependency and install manually during build for unit test. --- .github/workflows/packaging.yml | 5 ++++- setup.py | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index b8f26d0..703d839 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -70,6 +70,9 @@ jobs: - name: Install the wheel run: python -m pip install ${{ steps.find_sdist_filename.outputs.filename }} + - name: Install numpy for unit test + run: python -m pip install numpy + - name: Run python unit tests run: pytest @@ -120,7 +123,7 @@ jobs: # skip musllinux: build takes too long with default os images. CIBW_SKIP: 'pp* *musllinux*' CIBW_BUILD: '${{ matrix.python_version }}-*' - CIBW_TEST_REQUIRES: pytest + CIBW_TEST_REQUIRES: pytest numpy CIBW_TEST_COMMAND: pytest {package}/test run: python -m cibuildwheel ${{ steps.find_sdist_filename.outputs.filename }} diff --git a/setup.py b/setup.py index c9f7190..d42f705 100644 --- a/setup.py +++ b/setup.py @@ -74,9 +74,6 @@ ], keywords='cryto cryptography monocypher chacha blake2b 25519', - install_requires=[ - 'numpy>=2.1.0,<3', - ], ext_modules=extensions, python_requires='~=3.10',