Skip to content

Commit

Permalink
fix numpy dependency;
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoqing committed Apr 25, 2024
1 parent 61ddf74 commit b0cddfe
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ poetry-remove:
#* Installation
.PHONY: install
install:
poetry lock -n --no-update && poetry export --without-hashes > requirements.txt
poetry lock -n && poetry export --without-hashes > requirements.txt
poetry install -n
-poetry run mypy --install-types --non-interactive ./

Expand Down
112 changes: 80 additions & 32 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ classifiers = [
[tool.poetry.dependencies]
python = "^3.8"
pybind11 = "^2.12.0"
numpy = "^1.21"
numpy = [
{version = "<1.22", python = "~3.8"},
{version = "^1.22", python = ">=3.9"}
]


[tool.poetry.dev-dependencies]
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
numpy==1.21.1 ; python_version >= "3.8" and python_version < "4.0"
numpy==1.21.6 ; python_version >= "3.8" and python_version < "3.9"
numpy==1.26.4 ; python_version >= "3.9" and python_version < "4.0"
pybind11==2.12.0 ; python_version >= "3.8" and python_version < "4.0"

0 comments on commit b0cddfe

Please sign in to comment.