From 7c0fdd1aa238a7aaf9b3f28e4f041ab7d450c17f Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 7 Aug 2024 16:58:14 -0400 Subject: [PATCH] fix: require dev NumPy --- .github/workflows/tests.yml | 3 ++- .github/workflows/wheels.yml | 2 ++ dev-requirements.txt | 3 ++- pyproject.toml | 5 ++++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 000e6acd..1652a936 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -86,7 +86,7 @@ jobs: create-symlink: true - name: Install python tools - run: uv pip install --system -r dev-requirements.txt pytest-github-actions-annotate-failures + run: uv pip install --system -r dev-requirements.txt pytest-github-actions-annotate-failures --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple - name: Configure run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DBOOST_HISTOGRAM_ERRORS=ON ${{ matrix.cmake-extras }} @@ -128,6 +128,7 @@ jobs: env: CIBW_BUILD: "${{ matrix.build }}" CIBW_BUILD_VERBOSITY: 1 + PIP_EXTRA_INDEX_URL: https://pypi.anaconda.org/scientific-python-nightly-wheels/simple - uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 223c1344..f38323d2 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -61,6 +61,7 @@ jobs: env: CIBW_BUILD: cp${{ matrix.python }}-manylinux_* CIBW_ARCHS: ${{ matrix.arch }} + PIP_EXTRA_INDEX_URL: https://pypi.anaconda.org/scientific-python-nightly-wheels/simple - name: Verify clean directory run: git diff --exit-code @@ -119,6 +120,7 @@ jobs: env: CIBW_BUILD: ${{ matrix.build }} CIBW_ARCHS: ${{ matrix.arch }} + PIP_EXTRA_INDEX_URL: https://pypi.anaconda.org/scientific-python-nightly-wheels/simple - name: Verify clean directory run: git diff --exit-code diff --git a/dev-requirements.txt b/dev-requirements.txt index 19cefd0e..e45d062d 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,6 +1,7 @@ cloudpickle hypothesis >=6.0 -numpy +numpy; python_version<'3.13' +numpy>=2.1.0dev0; python_version>='3.13' pytest >=6,!=6.1.0,!=7.1.0 pytest-benchmark setuptools_scm[toml] >=3.4,!=4.0.0 diff --git a/pyproject.toml b/pyproject.toml index 217a16d7..a377d72b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python", @@ -59,6 +60,7 @@ dev = [ "pytest-benchmark", "pytest>=6.0", "typer", + "numpy>=2.1.0dev0; python_version>='3.13'", ] docs = [ "myst_parser>=0.13", @@ -80,6 +82,7 @@ test = [ "hypothesis>=6.0", "pytest-benchmark", "pytest>=6.0", + "numpy>=2.1.0dev0; python_version>='3.13'", ] [project.urls] @@ -173,7 +176,7 @@ skip = [ "pp37-*", "pp38-*", ] -environment-pass = ["SETUPTOOLS_SCM_PRETEND_VERSION"] +environment-pass = ["SETUPTOOLS_SCM_PRETEND_VERSION", "PIP_EXTRA_INDEX_URL"] environment.PIP_ONLY_BINARY = "numpy" environment.PIP_PREFER_BINARY = "1"