Skip to content

Commit

Permalink
Merge branch 'main' into upgrade-dependencies-v2024.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneLt authored Feb 12, 2024
2 parents 5ce9bb2 + f0b787a commit 9f77b00
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 28 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
manylinux_build:
name: Build linux ${{ matrix.python.name }} wheel
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux_2_24_x86_64:2022-12-26-0d38463
container: quay.io/pypa/manylinux_2_28_x86_64:2024-01-08-eb135ed
strategy:
matrix:
python:
Expand All @@ -23,10 +23,7 @@ jobs:

steps:
- name: Install Linux packages
run: |
echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list
apt-get update
apt install -y wget
run: dnf install -y wget

- name: Install Maven
run: |
Expand Down
27 changes: 7 additions & 20 deletions .github/workflows/full-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,38 @@ jobs:
manylinux_build:
name: Build linux ${{ matrix.python.name }} wheel
runs-on: ubuntu-latest
container: ${{ matrix.python.container }}
container: quay.io/pypa/manylinux_2_28_x86_64:2024-01-08-eb135ed
strategy:
matrix:
python:
- {
name: cp38,
abi: cp38,
version: '3.8',
container: 'quay.io/pypa/manylinux_2_24_x86_64:2022-12-26-0d38463'
version: '3.8'
}
- {
name: cp39,
abi: cp39,
version: '3.9',
container: 'quay.io/pypa/manylinux_2_24_x86_64:2022-12-26-0d38463'
version: '3.9'
}
- {
name: cp310,
abi: cp310,
version: '3.10',
container: 'quay.io/pypa/manylinux_2_24_x86_64:2022-12-26-0d38463'
version: '3.10'
}
- {
name: cp311,
abi: cp311,
version: '3.11',
container: 'quay.io/pypa/manylinux_2_24_x86_64:2022-12-26-0d38463'
version: '3.11'
}
- {
name: cp312,
abi: cp312,
version: '3.12',
container: 'quay.io/pypa/manylinux_2_28_x86_64:2024-01-08-eb135ed'
version: '3.12'
}

steps:
- name: Install Linux packages (Debian)
if: matrix.python.version != '3.12'
run: |
echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list
apt-get update
apt install -y wget
- name: Install Linux packages (Alma Linux)
if: matrix.python.version == '3.12'
- name: Install Linux packages
run: dnf install -y wget

- name: Install Maven
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Notebooks demonstrating PyPowSyBl features can be found in this [repository](htt

## Installation

PyPowSyBl is released on [PyPi](https://pypi.org/project/pypowsybl/) for Python 3.7 to 3.11, on Linux, Windows and MacOS.
PyPowSyBl is released on [PyPi](https://pypi.org/project/pypowsybl/) for Python 3.8 to 3.12, on Linux, Windows and MacOS.

First, make sure you have an up-to-date version of pip and setuptools:
```bash
Expand Down Expand Up @@ -144,7 +144,7 @@ And then, to build the documentation:
make html
```

Web pages are generated in repository _build/html/ for preview before openning a pull request.
Web pages are generated in repository _build/html/ for preview before opening a pull request.
You can for example open it with firefox browser:

```bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static NetworkDataframeMapper generators() {
return NetworkDataframeMapperBuilder.ofStream(Network::getGeneratorStream, getOrThrow(Network::getGenerator, "Generator"))
.stringsIndex("id", Generator::getId)
.strings("name", g -> g.getOptionalName().orElse(""))
.enums("energy_source", EnergySource.class, Generator::getEnergySource)
.enums("energy_source", EnergySource.class, Generator::getEnergySource, Generator::setEnergySource)
.doubles("target_p", Generator::getTargetP, Generator::setTargetP)
.doubles("min_p", Generator::getMinP, Generator::setMinP)
.doubles("max_p", Generator::getMaxP, Generator::setMaxP)
Expand Down

0 comments on commit 9f77b00

Please sign in to comment.