Skip to content

Commit

Permalink
CI: Explicitly install NumPy 1.26.0b1 on Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Sep 19, 2023
1 parent 71e8608 commit d22eadd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, "README.rst")).read()

no_linux_on_arm = "platform_system != 'Linux' or (platform_machine != 'armv7l' and platform_machine != 'aarch64')"
no_linux_on_arm = "(platform_system != 'Linux' or (platform_machine != 'armv7l' and platform_machine != 'aarch64'))"

requires = [
# Core
Expand All @@ -16,7 +16,10 @@
"munch>=2.5.0,<5",
"tqdm>=4.60.0,<5",
# Filtering
f"pandas<2.1; {no_linux_on_arm}",
f"numpy; {no_linux_on_arm} and python_version<'3.12.0rc1'",
f"numpy>=1.26.0b1; {no_linux_on_arm} and python_version>='3.12.0.rc1'",
f"pandas<2.1; {no_linux_on_arm} and python_version<'3.12.0rc1'",
f"pandas<2.2; {no_linux_on_arm} and python_version>='3.12.0rc1'",
f"duckdb<0.9; {no_linux_on_arm}",
# Grafana
"requests>=2.26,<3",
Expand Down

0 comments on commit d22eadd

Please sign in to comment.