Skip to content

Commit

Permalink
Merge pull request #719 from DanielYang59/support-numpy2
Browse files Browse the repository at this point in the history
release numpy <2 pin, and support python 3.13
  • Loading branch information
shyuep authored Dec 10, 2024
2 parents f183cef + 89c03fe commit a6287b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ jobs:
fail-fast: false
max-parallel: 20
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
python-version: ["3.9", "3.12"]
os: [windows-latest, ubuntu-latest, macos-latest]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.python }}

- name: Install dependencies
run: |
Expand Down
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ maintainers = [
]
description = "Monty is the missing complement to Python."
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.9,<=3.13"
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
Expand All @@ -20,7 +20,7 @@ classifiers = [
]
dependencies = [
"ruamel.yaml",
"numpy<2.0.0",
"numpy",
]
version = "2024.10.21"

Expand All @@ -43,8 +43,10 @@ json = [
"orjson>=3.6.1",
"pandas",
"pydantic",
"pint",
"torch",
# https://github.com/hgrecco/pint/issues/2065
"pint; python_version<'3.13'",
# Note: need torch>=2.3.0 for numpy 2 # 719
"torch; python_version<'3.13'", # python 3.13 not supported yet
]
multiprocessing = ["tqdm"]
optional = ["monty[dev,json,multiprocessing,serialization]"]
Expand Down

0 comments on commit a6287b7

Please sign in to comment.