Skip to content

Commit

Permalink
chore: support python 3.13 (#2341)
Browse files Browse the repository at this point in the history
Python 3.13 was recently released, which works fine with most of flopy's functionality.

VTK and PyVista do not yet support Python 3.13 from PyPI, as specified with conditional expressions. Pymetis is not yet available for 3.13 from conda-forge. Thus testing has been removed for now. For reference, use this doc to try and install Python and packages for 3.13.

Nevertheless, local testing on linux works with this PR for PyPI using pip install -e .[test,optional] which installs everything except VTK and PyVista.
  • Loading branch information
mwtoews authored Oct 23, 2024
1 parent 332a310 commit 370efbf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ GitHub's [Guide to Installing Git](https://help.github.com/articles/set-up-git)

FloPy supports several recent versions of Python, loosely following [NEP 29](https://numpy.org/neps/nep-0029-deprecation_policy.html#implementation).

Install Python 3.9-3.12 via [standalone download](https://www.python.org/downloads/) or a distribution like [Anaconda](https://www.anaconda.com/products/individual) or [miniconda](https://docs.conda.io/en/latest/miniconda.html).
Install Python >=3.9 via [standalone download](https://www.python.org/downloads/) or a distribution like [Anaconda](https://www.anaconda.com/products/individual) or [miniconda](https://docs.conda.io/en/latest/miniconda.html).

Then install FloPy and core dependencies from the project root:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Documentation
Installation
-----------------------------------------------

FloPy requires **Python** 3.9-3.12 with:
FloPy requires **Python** 3.9+ with:

```
numpy >=1.20.3
Expand Down
2 changes: 1 addition & 1 deletion etc/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencies:
- pip

# required
- python>=3.9,<3.13
- python>=3.9
- numpy>=1.20.3
- matplotlib>=1.4.0
- pandas>=2.0.0
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Hydrology",
]
requires-python = ">=3.9,<3.13"
requires-python = ">=3.9"
dependencies = [
"numpy>=1.20.3",
"matplotlib >=1.4.0",
Expand Down Expand Up @@ -69,12 +70,12 @@ optional = [
"pymetis ; platform_system != 'Windows'",
"pyproj",
"pyshp",
"pyvista",
"pyvista ; python_version <'3.13'",
"rasterio",
"rasterstats",
"scipy",
"shapely >=1.8",
"vtk",
"vtk ; python_version <'3.13'",
"xmipy",
]
doc = [
Expand Down

0 comments on commit 370efbf

Please sign in to comment.