Skip to content

Commit

Permalink
Adjusting to account for 3.10 as minimum python version
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlarson1 committed Feb 13, 2025
1 parent f3ac299 commit 507a3a7
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
os: [ubuntu-latest]
mpi-version: [mpich]
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
pydantic-version: ["2.8.2"]
comms-type: [m, l]
include:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
matrix:
os: [ubuntu-latest]
mpi-version: [mpich]
python-version: [3.9, "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]
pydantic-version: ["2.8.2"]
comms-type: [m, l]
include:
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ repos:
exclude: ^(.*\.xml|.*\.svg)$

- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 6.0.0
hooks:
- id: isort
args: [--profile=black, --line-length=120]

- repo: https://github.com/psf/black
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black
args: [--line-length=120]
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: "ubuntu-22.04"
tools:
python: "3.9"
python: "3.10"

sphinx:
configuration: docs/conf.py
Expand Down
8 changes: 4 additions & 4 deletions docs/advanced_installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ libEnsemble can be installed from ``pip``, ``Conda``, or ``Spack``.
libEnsemble requires the following dependencies, which are typically
automatically installed alongside libEnsemble:

* Python_ ``>= 3.9``
* Python_ ``>= 3.10``
* NumPy_ ``>= 1.21``
* psutil_ ``>= 5.9.4``
* `pydantic`_ ``<= 1.10.12``
Expand Down Expand Up @@ -139,7 +139,7 @@ Further recommendations for selected HPC systems are given in the

**Hint**: When combining Spack and Conda, you can access your Conda Python and packages in your
``~/.spack/packages.yaml`` while your Conda environment is activated, using ``CONDA_PREFIX``
For example, if you have an activated Conda environment with Python 3.9 and SciPy installed:
For example, if you have an activated Conda environment with Python 3.10 and SciPy installed:

.. code-block:: yaml
Expand All @@ -152,12 +152,12 @@ Further recommendations for selected HPC systems are given in the
py-numpy:
externals:
- spec: "py-numpy"
prefix: $CONDA_PREFIX/lib/python3.9/site-packages/numpy
prefix: $CONDA_PREFIX/lib/python3.10/site-packages/numpy
buildable: False
py-scipy:
externals:
- spec: "py-scipy"
prefix: $CONDA_PREFIX/lib/python3.9/site-packages/scipy
prefix: $CONDA_PREFIX/lib/python3.10/site-packages/scipy
buildable: True
For more information on Spack builds and any particular considerations
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/perlmutter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Create a conda environment
You can create a conda_ environment in which to install libEnsemble and
all dependencies. For example::

conda create -n libe-pm python=3.9 -y
conda create -n libe-pm python=3.10 -y

As Perlmutter has a shared HOME filesystem with other clusters, using
the ``-pm`` suffix (for Perlmutter) is good practice.
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/summit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Begin by loading the Python 3 Anaconda module::

You can now create and activate your own custom conda_ environment::

conda create --name myenv python=3.9
conda create --name myenv python=3.10
export PYTHONNOUSERSITE=1 # Make sure get python from conda env
. activate myenv

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/local_sine_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ need to write a new allocation function.

.. code-block:: bash
python --version # This should be >= 3.9
python --version # This should be >= 3.10
.. _Python: https://www.python.org/

Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies = ["numpy", "psutil", "pydantic", "pyyaml", "tomli"]

description = "A Python toolkit for coordinating asynchronous and dynamic ensembles of calculations."
name = "libensemble"
requires-python = ">=3.9"
requires-python = ">=3.10"
license = {file = "LICENSE"}
readme = "README.rst"

Expand All @@ -22,7 +22,6 @@ classifiers = [
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down Expand Up @@ -83,7 +82,7 @@ nlopt = ">=2.8.0,<3"
scipy = ">=1.9.1,<2"

[tool.pixi.dependencies]
python = ">=3.9,<3.14"
python = ">=3.10,<3.14"
pip = ">=24.3.1,<25"
setuptools = ">=75.1.0,<76"
numpy = ">=1.21,<3"
Expand Down

0 comments on commit 507a3a7

Please sign in to comment.