Skip to content

Commit

Permalink
test: TEMPORARY edits to get tests working for all PRs: NumPy 2.0 cap…
Browse files Browse the repository at this point in the history
… and turned off Try-It (#3057)

* test: TEMPORARILY put an upper cap on NumPy 2.0

* on both packages

* maybe it's related to the fact that awkward-cpp is stuck at version 26 in Pyodide

* temporarily remove the 'Try It' page (which isn't working, anyway)

* also turned off the jupyterlite_sphinx extension
  • Loading branch information
jpivarski committed Mar 20, 2024
1 parent dfc9690 commit f49e07e
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion awkward-cpp/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "scikit_build_core.build"
name = "awkward_cpp"
version = "30"
dependencies = [
"numpy>=1.18.0",
"numpy>=1.18.0,<2.0",
"importlib_resources;python_version < \"3.9\""
]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion docs/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ subtrees:
- file: getting-started/index
subtrees:
- entries:
- file: getting-started/try-awkward-array
# - file: getting-started/try-awkward-array
- file: getting-started/community-tutorials
- file: getting-started/papers-and-talks
- file: user-guide/index
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"sphinx.ext.intersphinx",
"myst_nb",
# Preserve old links
"jupyterlite_sphinx",
# "jupyterlite_sphinx",
"IPython.sphinxext.ipython_console_highlighting",
"IPython.sphinxext.ipython_directive",
]
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/demo/what-is-an-awkward-array.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"outputs": [],
"source": [
"# Install Awkward Array in the browser\n",
"import piplite; await piplite.install(\"awkward-cpp\"); await piplite.install(\"awkward>=2.0\")\n",
"import piplite; await piplite.install(\"awkward-cpp\"); await piplite.install(\"awkward==2.5.0\")\n",
"\n",
"# Import normal libraries\n",
"import numpy as np\n",
Expand Down
4 changes: 4 additions & 0 deletions docs/getting-started/try-awkward-array.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Try it

<!--
:::{retrolite} demo/what-is-an-awkward-array.ipynb
:height: auto
:::
-->
12 changes: 6 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ Awkward Array is a library for **nested, variable-sized data**, including arbitr
:class: shield-badge
:::

% Unfortunately, `target` does not support document references
:::{image} https://img.shields.io/badge/-Try%20It%21-orange?style=for-the-badge
:alt: Try It!
:target: getting-started/try-awkward-array.html
:class: shield-badge
:::
% % Unfortunately, `target` does not support document references
% :::{image} https://img.shields.io/badge/-Try%20It%21-orange?style=for-the-badge
% :alt: Try It!
% :target: getting-started/try-awkward-array.html
% :class: shield-badge
% :::

::::

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ classifiers = [
dependencies = [
"awkward_cpp==30",
"importlib_metadata>=4.13.0;python_version < \"3.12\"",
"numpy>=1.18.0",
"numpy>=1.18.0,<2.0",
"packaging",
"typing_extensions>=4.1.0; python_version < \"3.11\"",
"fsspec>=2022.11.0"
Expand Down

0 comments on commit f49e07e

Please sign in to comment.