Skip to content

Commit 90408bf

Browse files
author
Steffen Meinecke
authored
Merge pull request #59 from e2nIEE/release/v1.6.0
Release/v1.6.0
2 parents dfb872f + bd1f9d3 commit 90408bf

23 files changed

+182
-134
lines changed

.github/workflows/github_test_action.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
22+
python-version: ['3.9', '3.10', '3.11', '3.12']
2323
# Reminder: when removing support of an old python version here, then don't forget to remove
2424
# it also in pyproject.toml 'requires-python'
2525
steps:
@@ -113,20 +113,14 @@ jobs:
113113
PYTHONPATH=$PYTHONPATH:$GITHUB_WORKSPACE python -m pytest -W error --nbmake -n=auto --nbmake-timeout=900 "./tutorials"
114114
115115
docs_check:
116+
needs: build
117+
name: Sphinx docs check
116118
runs-on: ubuntu-latest
117-
strategy:
118-
matrix:
119-
python-version: [ '3.9' ]
120119
steps:
121120
- uses: actions/checkout@v4
122-
- name: Set up Python ${{ matrix.python-version }}
123-
uses: actions/setup-python@v5
124-
with:
125-
python-version: ${{ matrix.python-version }}
126-
- name: Check docs for Python ${{ matrix.python-version }}
127-
uses: e2nIEE/sphinx-action@master
121+
- name: Check sphinx build
122+
uses: ammaraskar/[email protected]
128123
with:
129-
pre-build-command: "python -m pip install --upgrade pip;
130-
python -m pip install .[docs];"
124+
pre-build-command: "python -m pip install uv && uv pip install .[docs] --system --link-mode=copy"
131125
build-command: "sphinx-build -b html . _build -W"
132126
docs-folder: "doc/"

.github/workflows/test_release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ${{ matrix.os }}
1818
strategy:
1919
matrix:
20-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
20+
python-version: ['3.9', '3.10', '3.11', '3.12']
2121
os: [ ubuntu-latest, windows-latest ]
2222

2323
steps:
@@ -40,14 +40,14 @@ jobs:
4040
run: |
4141
if ( '${{ matrix.python-version }}' -eq '3.9' ) { python -m pip install pypower }
4242
if ( '${{ matrix.python-version }}' -ne '3.9' ) { python -m pip install numba }
43-
if ( '${{ matrix.python-version }}' -eq '3.8' -or '${{ matrix.python-version }}' -eq '3.10' ) { python -m pip install lightsim2grid }
43+
if ( '${{ matrix.python-version }}' -eq '3.10' ) { python -m pip install lightsim2grid }
4444
4545
- name: Install specific dependencies (Ubuntu)
4646
if: matrix.os == 'ubuntu-latest'
4747
run: |
4848
if ${{ matrix.python-version == '3.9' }}; then python -m pip install pypower; fi
4949
if ${{ matrix.python-version != '3.9' }}; then python -m pip install numba; fi
50-
if ${{ matrix.python-version == '3.8' || matrix.python-version == '3.10' }}; then python -m pip install lightsim2grid; fi
50+
if ${{ matrix.python-version == '3.10' }}; then python -m pip install lightsim2grid; fi
5151
5252
- name: List all installed packages
5353
run: |

.github/workflows/upload_release.yml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,16 @@ name: upload
66
# Controls when the action will run.
77
on:
88
# Allows you to run this workflow manually from the Actions tab
9-
push:
10-
branches:
11-
- master
9+
workflow_dispatch:
10+
inputs:
11+
upload_server:
12+
description: 'upload server'
13+
required: true
14+
default: 'testpypi'
15+
type: choice
16+
options:
17+
- 'testpypi'
18+
- 'pypi'
1219

1320
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1421
jobs:
@@ -19,17 +26,32 @@ jobs:
1926
steps:
2027
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2128
- uses: actions/checkout@v4
29+
2230
# Sets up python3
2331
- uses: actions/setup-python@v5
2432
with:
2533
python-version: '3.10'
34+
2635
# Installs and upgrades pip, installs other dependencies and installs the package from setup.py
2736
- name: Install dependencies
2837
run: |
2938
# Upgrade pip
3039
python3 -m pip install --upgrade pip
3140
# Install twine
3241
python3 -m pip install build setuptools wheel twine
42+
43+
# Upload to TestPyPI
44+
- name: Build and Upload to TestPyPI
45+
if: ${{ inputs.upload_server == 'testpypi' }}
46+
run: |
47+
python3 -m build
48+
python3 -m twine check dist/* --strict
49+
python3 -m twine upload dist/*
50+
env:
51+
TWINE_USERNAME: __token__
52+
TWINE_PASSWORD: ${{ secrets.TESTPYPI }}
53+
TWINE_REPOSITORY: testpypi
54+
3355
# Upload to PyPI
3456
- name: Build and Upload to PyPI
3557
run: |
@@ -40,10 +62,15 @@ jobs:
4062
TWINE_USERNAME: __token__
4163
TWINE_PASSWORD: ${{ secrets.PYPI }}
4264
TWINE_REPOSITORY: pypi
65+
66+
# Wait some time
4367
- name: Sleep for 300s to make release available
68+
if: ${{ inputs.upload_server == 'pypi' }}
4469
uses: juliangruber/sleep-action@v2
4570
with:
4671
time: 300s
72+
73+
# Run an installation for testing
4774
- name: Install simbench from PyPI
4875
run: |
4976
python3 -m pip install simbench

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
Change Log
22
=============
33

4+
[1.6.0] - 2024-04-09
5+
----------------------
6+
- [CHANGED] support pandapower geojson, released with pandapower version 3.0.0
7+
- [ADDED] support pandapower parameters step_dependency_table and tap_dependency_table, released with pandapower version 3.0.0
8+
- [CHANGED] drop python 3.8 support
9+
- [FIXED] fix ValueError raise according to GitHub issue #56
10+
- [CHANGED] rename parameter csv2pp parameter `no_generic_coord` by `fill_bus_geo_by_generic_data`
11+
412
[1.5.3] - 2024-04-23
513
----------------------
614
- [FIXED] Bringing together develop and master with all changes of the release process
715
- [ADDED] generalization and test for auxiliary function :code:`to_numeric_ignored_errors()`
816

917
[1.5.2] - 2024-04-09
18+
----------------------
1019
- [CHANGED] readded copyright notice to setup.py and updated date
1120
- [CHANGED] added prune to MANIFEST.in to exclude doc and tutorials from wheel builds
1221
- [CHANGED] removed gitlab ci files from MANIFEST.in to keep them out of wheel builds

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ global-include *.csv
44
global-include *.json
55
global-include *.txt
66

7+
prune .git*
78
prune doc*
89
prune tutorials*

doc/about/installation.rst

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Installation Guide
77
Installing Python
88
----------------------------
99

10-
simbench is tested with Python 3.5, 3.6 and 3.7. We recommend the Anaconda Distribution, which provides a Python distribution that already includes a lot of modules for scientific computing that are needed. Of course it is also possible to use simbench with other distributions besides Anaconda. Anyway, it is important that the following package is included:
10+
simbench is tested with multiple up-to-date Python versions. We recommend the Miniconda Distribution, which provides a Python distribution that already includes a lot of modules for scientific computing that are needed. Of course it is also possible to use simbench with other distributions besides Anaconda. Anyway, it is important that the following package is included:
1111

1212
- pandapower
1313

@@ -20,23 +20,15 @@ The easiest way to install simbench is through pip:
2020

2121
1. Open a command prompt (e.g. start–>cmd on windows systems)
2222

23-
2. If you already work with the pandapower development version from GitHub, but did not yet register it to pip:
24-
25-
a. Navigate your command prompt into your pandapower folder (with the command cd <folder>).
26-
27-
b. Register pandapower to pip, to not install pandapower a second time, via typing:
28-
29-
:code:`pip install -e .`
30-
31-
3. Install simbench by running:
23+
2. Install simbench by running:
3224

3325
:code:`pip install simbench`
3426

3527

36-
Installing simbench without pip
28+
Installing simbench without internet connection
3729
--------------------------------------------------------
3830

39-
If you don't have internet access on your system or don't want to use pip for some other reason, simbench can also be installed without using pip:
31+
If you don't have internet access on your system and already downloaded the repository (step 1), simbench can also be installed without from local files:
4032

4133
1. Download and unzip the current simbench distribution from PyPi under "Download files".
4234

@@ -46,7 +38,9 @@ If you don't have internet access on your system or don't want to use pip for so
4638

4739
3. Install simbench by running :
4840

49-
:code:`python setup.py install`
41+
:code:`pip install -e .`
42+
43+
This registers your local pandapower installation with pip, the option -e ensures the edits in the files have a direct impact on the pandapower installation.
5044

5145

5246
Development Version
@@ -66,7 +60,7 @@ To install the latest version of simbench from github, simply follow these steps
6660

6761
:code:`pip install -e .`
6862

69-
This registers your local simbench installation with pip.
63+
This registers your local pandapower installation with pip, the option -e ensures the edits in the files have a direct impact on the pandapower installation.
7064

7165

7266
Test your installation

doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ More information about pandapower can be found on `www.pandapower.org <https://w
3131

3232
|br|
3333

34-
pandapower is a joint development of the research group Energy Management and Power System Operation (e2n), University of Kassel and the Department for Distribution System
34+
pandapower is a joint development of the Department for Sustainable Electrical Energy Systems (e2n), University of Kassel and the Department for Distribution System
3535
Operation at the Fraunhofer Institute for Energy Economics and Energy System Technology (IEE), Kassel.
3636

3737
.. image:: /pics/iee.png

doc/pics/e2n.png

15.5 KB
Loading

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "simbench"
7-
version = "1.5.3"
7+
version = "1.6.0"
88
authors = [
99
{ name = "Steffen Meinecke", email = "[email protected]" }
1010
]
@@ -14,7 +14,7 @@ maintainers = [
1414
description = "Electrical Power System Benchmark Models."
1515
readme = "README.rst"
1616
license = { file = "LICENSE" }
17-
requires-python = ">=3.8"
17+
requires-python = ">=3.9"
1818
classifiers = [
1919
"Development Status :: 5 - Production/Stable",
2020
"Environment :: Console",
@@ -27,14 +27,13 @@ classifiers = [
2727
"Programming Language :: Python",
2828
"Programming Language :: Python :: 3",
2929
# Add the specific Python versions supported here, e.g.:
30-
"Programming Language :: Python :: 3.8",
3130
"Programming Language :: Python :: 3.9",
3231
"Programming Language :: Python :: 3.10",
3332
"Programming Language :: Python :: 3.11",
3433
"Programming Language :: Python :: 3.12"
3534
]
3635
dependencies = [
37-
"pandapower>=2.12.1"
36+
"pandapower>=3.0.0"
3837
]
3938
keywords = [
4039
"benchmark grid", "power system", "network", "grid planning", "grid operation", "grid generation methodology", "comparability", "reproducibility", "electricity", "energy", "engineering", "simulation", "simbench", "time series", "future scenarios"
@@ -72,4 +71,4 @@ find = {}
7271
addopts = ["--strict-markers"]
7372
markers = [
7473
"slow: marks tests as slow (deselect with '-m \"not slow\"'), e.g. in run_fast_tests"
75-
]
74+
]

requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)