Skip to content

Commit 12b2fc8

Browse files
authored
Release/prepare 1.5.0 (#472)
* Update Sonar setup for private projects * Remove mypy.xml as was only needed when testing Sonar; it is not needed yet * Update locked dependencies * Prepare release 1.5.0 * Fix rst spacing * Update release date to today
1 parent a2ad1e2 commit 12b2fc8

File tree

17 files changed

+261
-230
lines changed

17 files changed

+261
-230
lines changed

.github/actions/security-issues/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ runs:
3939
- name: Install Python Toolbox / Security tool
4040
shell: bash
4141
run: |
42-
pip install exasol-toolbox==1.4.0
42+
pip install exasol-toolbox==1.5.0
4343
4444
- name: Create Security Issue Report
4545
shell: bash

doc/changes/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
* [unreleased](unreleased.md)
4+
* [1.5.0](changes_1.5.0.md)
45
* [1.4.0](changes_1.4.0.md)
56
* [1.3.0](changes_1.3.0.md)
67
* [1.2.0](changes_1.2.0.md)
@@ -36,6 +37,7 @@
3637
hidden:
3738
---
3839
unreleased
40+
changes_1.5.0
3941
changes_1.4.0
4042
changes_1.3.0
4143
changes_1.2.0

doc/changes/changes_1.5.0.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# 1.5.0 - 2025-06-18
2+
3+
## Summary
4+
This version of the PTB adds nox task `sonar:check`, see #451. This allows us to
5+
use SonarQube Cloud to analyze, visualize, & track linting, security, & coverage. To
6+
set it up, you'll need to execute the following instructions.
7+
8+
### For a public project
9+
1. Specify in the `noxconfig.py` the relative path to the project's source code in `Config.source`
10+
```python
11+
source: Path = Path("exasol/<project-source-folder>")
12+
```
13+
2. Add the 'SONAR_TOKEN' to the 'Organization secrets' in GitHub (this requires a person being a GitHub organization owner)
14+
3. Activate the [SonarQubeCloud App](https://github.com/apps/sonarqubecloud)
15+
4. Create a project on SonarCloud
16+
5. Add the following information to the project's file `pyproject.toml`
17+
```toml
18+
19+
[tool.sonar]
20+
projectKey = "com.exasol:<project-key>"
21+
hostUrl = "https://sonarcloud.io"
22+
organization = "exasol"
23+
```
24+
6. Post-merge, update the branch protections to include SonarQube analysis
25+
26+
### For a private project
27+
1. Specify in the `noxconfig.py` the relative path to the project's source code in `Config.source`
28+
```python
29+
source: Path = Path("exasol/<project-source-folder>")
30+
```
31+
2. Add the 'PRIVATE_SONAR_TOKEN' to the 'Organization secrets' in GitHub (this requires a person being a GitHub organization owner)
32+
3. Activate the [exasonarqubeprchecks App](https://github.com/apps/exasonarqubeprchecks)
33+
4. Create a project on https://sonar.exasol.com
34+
5. Add the following information to the project's file `pyproject.toml`
35+
```toml
36+
[tool.sonar]
37+
projectKey = "com.exasol:<project-key>"
38+
hostUrl = "https://sonar.exasol.com"
39+
organization = "exasol"
40+
```
41+
6. Post-merge, update the branch protections to include SonarQube analysis from exasonarqubeprchecks
42+
43+
## ✨ Features
44+
* #451: Added nox task to execute pysonar & added Sonar to the CI
45+
46+
## ⚒️ Refactorings
47+
* #451: Reduced scope of nox tasks `lint:code` (pylint) and `lint:security` (bandit) to analyze only the package code

doc/changes/unreleased.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1 @@
11
# Unreleased
2-
3-
## Summary
4-
This version of the PTB adds nox task `sonar:check`, see #451. This allows us to
5-
use SonarQube Cloud to analyze, visualize, & track linting, security, & coverage. In
6-
order to properly set it up, you'll need to do the following instruction for each **public** project.
7-
At this time, PTB currently does not support setting up SonarQube for a **private** project.
8-
9-
1. Specify in the `noxconfig.py` the relative path to the project's source code in `Config.source`
10-
```python
11-
source: Path = Path("exasol/toolbox")
12-
```
13-
2. Add the 'SONAR_TOKEN' to the 'Organization secrets' in GitHub (this requires a person being a GitHub organization owner).
14-
3. Activate the SonarQubeCloud App
15-
4. Create a project on SonarCloud
16-
5. Add the following information to the project's file `pyproject.toml`
17-
```toml
18-
[tool.sonar]
19-
projectKey = "com.exasol:<project-key>"
20-
hostUrl = "https://sonarcloud.io"
21-
organization = "exasol"
22-
```
23-
6. Post-merge, update the branch protections to include SonarQube analysis
24-
25-
## ✨ Features
26-
* #451: Added nox task to execute pysonar & added Sonar to the CI
27-
28-
## ⚒️ Refactorings
29-
* #451: Reduced scope of nox tasks `lint:code` (pylint) and `lint:security` (bandit) to analyze only the package code

doc/user_guide/getting_started.rst

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,16 +202,16 @@ We also need to configure settings for github-pages environment:
202202
8. Set up for Sonar
203203
+++++++++++++++++++
204204
PTB supports using SonarQube Cloud to analyze, visualize, & track linting, security, &
205-
coverage. In order to properly set it up, you'll need to do the following instructions
206-
for each **public** project. At this time, PTB currently does not support setting up
207-
SonarQube for a **private** project.
205+
coverage. In order to set it up, you'll need to do the following instructions.
208206

207+
For a **public** project
208+
^^^^^^^^^^^^^^^^^^^^^^^^
209209
1. Specify in the `noxconfig.py` the relative path to the project's source code in `Config.source`
210210
.. code-block:: python
211211
212-
source: Path = Path("exasol/toolbox")
213-
2. Add the 'SONAR_TOKEN' to the 'Organization secrets' in GitHub (this requires a person being a GitHub organization owner).
214-
3. Activate the SonarQubeCloud App
212+
source: Path = Path("exasol/<project-source-folder>")
213+
2. Add the 'SONAR_TOKEN' to the 'Organization secrets' in GitHub (this requires a person being a GitHub organization owner)
214+
3. Activate the `SonarQubeCloud App <https://github.com/apps/sonarqubecloud>`_
215215
4. Create a project on SonarCloud
216216
5. Add the following information to the project's file `pyproject.toml`
217217
.. code-block:: toml
@@ -222,7 +222,23 @@ SonarQube for a **private** project.
222222
organization = "exasol"
223223
6. Post-merge, update the branch protections to include SonarQube analysis
224224

225+
For a **private** project
226+
^^^^^^^^^^^^^^^^^^^^^^^^^
227+
1. Specify in the `noxconfig.py` the relative path to the project's source code in `Config.source`
228+
.. code-block:: python
229+
230+
source: Path = Path("exasol/<project-source-folder>")
231+
2. Add the 'PRIVATE_SONAR_TOKEN' to the 'Organization secrets' in GitHub (this requires a person being a GitHub organization owner)
232+
3. Activate the `exasonarqubeprchecks App <https://github.com/apps/exasonarqubeprchecks>`_
233+
4. Create a project on https://sonar.exasol.com
234+
5. Add the following information to the project's file `pyproject.toml`
235+
.. code-block:: toml
225236
237+
[tool.sonar]
238+
projectKey = "com.exasol:<project-key>"
239+
hostUrl = "https://sonar.exasol.com"
240+
organization = "exasol"
241+
6. Post-merge, update the branch protections to include SonarQube analysis from exasonarqubeprchecks
226242

227243
9. Go 🥜
228244
+++++++++++++

exasol/toolbox/templates/github/workflows/build-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Setup Python & Poetry Environment
21-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
21+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
2222

2323
- name: Build Artifacts
2424
run: poetry build

exasol/toolbox/templates/github/workflows/check-release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Setup Python & Poetry Environment
18-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
18+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
1919

2020
- name: Check Tag Version
2121
# make sure the pushed/created tag matched the project version

exasol/toolbox/templates/github/workflows/checks.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fetch-depth: 0
1717

1818
- name: Setup Python & Poetry Environment
19-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
19+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
2020

2121
- name: Check Version(s)
2222
run: poetry run -- nox -s version:check
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/checkout@v4
3333

3434
- name: Setup Python & Poetry Environment
35-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
35+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
3636

3737
- name: Build Documentation
3838
run: |
@@ -55,7 +55,7 @@ jobs:
5555
uses: actions/checkout@v4
5656

5757
- name: Setup Python & Poetry Environment
58-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
58+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
5959

6060
- name: Run changelog update check
6161
run: poetry run -- nox -s changelog:updated
@@ -74,7 +74,7 @@ jobs:
7474
uses: actions/checkout@v4
7575

7676
- name: Setup Python & Poetry Environment
77-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
77+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
7878
with:
7979
python-version: ${{ matrix.python-version }}
8080

@@ -105,7 +105,7 @@ jobs:
105105
uses: actions/checkout@v4
106106

107107
- name: Setup Python & Poetry Environment
108-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
108+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
109109
with:
110110
python-version: ${{ matrix.python-version }}
111111

@@ -127,7 +127,7 @@ jobs:
127127
uses: actions/checkout@v4
128128

129129
- name: Setup Python & Poetry Environment
130-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
130+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
131131
with:
132132
python-version: ${{ matrix.python-version }}
133133

@@ -151,7 +151,7 @@ jobs:
151151
uses: actions/checkout@v4
152152

153153
- name: Setup Python & Poetry Environment
154-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
154+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
155155

156156
- name: Run format check
157157
run: poetry run -- nox -s project:format
@@ -173,7 +173,7 @@ jobs:
173173
uses: actions/checkout@v4
174174

175175
- name: Setup Python & Poetry Environment
176-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
176+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
177177
with:
178178
python-version: ${{ matrix.python-version }}
179179

exasol/toolbox/templates/github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fetch-depth: 0
1818

1919
- name: Setup Python & Poetry Environment
20-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
20+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
2121

2222
- name: Build Documentation
2323
run: |

exasol/toolbox/templates/github/workflows/matrix-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/checkout@v4
1818

1919
- name: Setup Python & Poetry Environment
20-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
20+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
2121

2222
- name: Generate matrix
2323
run: poetry run -- nox -s matrix:all

0 commit comments

Comments
 (0)