Skip to content

Commit

Permalink
fix: require dev NumPy
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Aug 7, 2024
1 parent 1264927 commit 7c0fdd1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -59,6 +60,7 @@ dev = [
"pytest-benchmark",
"pytest>=6.0",
"typer",
"numpy>=2.1.0dev0; python_version>='3.13'",
]
docs = [
"myst_parser>=0.13",
Expand All @@ -80,6 +82,7 @@ test = [
"hypothesis>=6.0",
"pytest-benchmark",
"pytest>=6.0",
"numpy>=2.1.0dev0; python_version>='3.13'",
]

[project.urls]
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 7c0fdd1

Please sign in to comment.