From fcbbde4e79597f7dca17a77c91a408d0ed5240a7 Mon Sep 17 00:00:00 2001 From: Santiago Figueroa Manrique Date: Tue, 21 Jan 2025 15:23:05 +0100 Subject: [PATCH 1/3] drop python 3.10 Signed-off-by: Santiago Figueroa Manrique --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 659ae0c3c0..9e034a2f99 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ classifiers = [ "Operating System :: MacOS", "Topic :: Scientific/Engineering :: Physics", ] -requires-python = ">=3.10" +requires-python = ">=3.11" dependencies = ["numpy>=1.21.0"] dynamic = ["version"] @@ -88,7 +88,7 @@ xfail_strict = true [tool.black] line-length = 120 -target-version = ['py310'] +target-version = ['py311'] [tool.isort] profile = "black" From f204c1cf09c8c214490863d84fec483acc228f18 Mon Sep 17 00:00:00 2001 From: Santiago Figueroa Manrique Date: Tue, 21 Jan 2025 15:25:44 +0100 Subject: [PATCH 2/3] update build guide Signed-off-by: Santiago Figueroa Manrique --- docs/advanced_documentation/build-guide.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/advanced_documentation/build-guide.md b/docs/advanced_documentation/build-guide.md index 04975c418f..0f922c67aa 100644 --- a/docs/advanced_documentation/build-guide.md +++ b/docs/advanced_documentation/build-guide.md @@ -219,7 +219,7 @@ Install the following packages from Ubuntu. ```shell sudo apt update && sudo apt -y upgrade -sudo apt install -y wget curl zip unzip tar git build-essential gcovr lcov gcc g++ clang-18 make gdb ninja-build pkg-config python3.10 python3.10-dev python3.10-venv python3-pip +sudo apt install -y wget curl zip unzip tar git build-essential gcovr lcov gcc g++ clang-18 make gdb ninja-build pkg-config python3.11 python3.11-dev python3.11-venv python3-pip ``` ### C++ packages @@ -245,7 +245,7 @@ Go to a root folder you prefer to save the repositories. ```shell git clone https://github.com/PowerGridModel/power-grid-model.git cd power-grid-model -python3.10 -m venv .venv +python3.11 -m venv .venv source ./.venv/bin/activate ``` @@ -342,7 +342,7 @@ git clone https://github.com/PowerGridModel/power-grid-model.git Then open a Miniforge PowerShell Prompt (or equivalent if you use a different `conda` provider), go to the repository folder. ```shell -conda create -n power-grid-env python=3.10 +conda create -n power-grid-env python=3.11 conda activate power-grid-env ``` @@ -379,7 +379,7 @@ The IDE should be able to automatically detect the Visual Studio cmake configura ## Example Setup for macOS (Big Sur) -In this section an example is given for setup in macOS Big Sur and Python 3.10. +In this section an example is given for setup in macOS Big Sur and Python 3.11. ### Environment variables @@ -407,7 +407,7 @@ install the build dependency. go to a root folder you prefer to save the reposit ```shell git clone https://github.com/PowerGridModel/power-grid-model.git cd power-grid-model -python3.10 -m venv .venv +python3.11 -m venv .venv source ./.venv/bin/activate ``` From 46ae9f56e5900eea8775c18fd86b461ca8d1f4a9 Mon Sep 17 00:00:00 2001 From: Santiago Figueroa Manrique Date: Tue, 21 Jan 2025 16:01:45 +0100 Subject: [PATCH 3/3] revert build guide. to be addressed elsewhere Signed-off-by: Santiago Figueroa Manrique --- docs/advanced_documentation/build-guide.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/advanced_documentation/build-guide.md b/docs/advanced_documentation/build-guide.md index 0f922c67aa..04975c418f 100644 --- a/docs/advanced_documentation/build-guide.md +++ b/docs/advanced_documentation/build-guide.md @@ -219,7 +219,7 @@ Install the following packages from Ubuntu. ```shell sudo apt update && sudo apt -y upgrade -sudo apt install -y wget curl zip unzip tar git build-essential gcovr lcov gcc g++ clang-18 make gdb ninja-build pkg-config python3.11 python3.11-dev python3.11-venv python3-pip +sudo apt install -y wget curl zip unzip tar git build-essential gcovr lcov gcc g++ clang-18 make gdb ninja-build pkg-config python3.10 python3.10-dev python3.10-venv python3-pip ``` ### C++ packages @@ -245,7 +245,7 @@ Go to a root folder you prefer to save the repositories. ```shell git clone https://github.com/PowerGridModel/power-grid-model.git cd power-grid-model -python3.11 -m venv .venv +python3.10 -m venv .venv source ./.venv/bin/activate ``` @@ -342,7 +342,7 @@ git clone https://github.com/PowerGridModel/power-grid-model.git Then open a Miniforge PowerShell Prompt (or equivalent if you use a different `conda` provider), go to the repository folder. ```shell -conda create -n power-grid-env python=3.11 +conda create -n power-grid-env python=3.10 conda activate power-grid-env ``` @@ -379,7 +379,7 @@ The IDE should be able to automatically detect the Visual Studio cmake configura ## Example Setup for macOS (Big Sur) -In this section an example is given for setup in macOS Big Sur and Python 3.11. +In this section an example is given for setup in macOS Big Sur and Python 3.10. ### Environment variables @@ -407,7 +407,7 @@ install the build dependency. go to a root folder you prefer to save the reposit ```shell git clone https://github.com/PowerGridModel/power-grid-model.git cd power-grid-model -python3.11 -m venv .venv +python3.10 -m venv .venv source ./.venv/bin/activate ```