Skip to content

Commit ec34476

Browse files
Merge branch 'main' into feature/#73-Add-nox-target-for-auditing-workspaces-in-reagard-to-known-vunerabilities
2 parents 844c9ca + f1b47d8 commit ec34476

19 files changed

+96
-59
lines changed

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+
* [0.21.0](changes_0.21.0.md)
45
* [0.20.0](changes_0.20.0.md)
56
* [0.19.0](changes_0.19.0.md)
67
* [0.18.0](changes_0.18.0.md)
@@ -29,6 +30,7 @@
2930
hidden:
3031
---
3132
unreleased
33+
changes_0.21.0
3234
changes_0.20.0
3335
changes_0.19.0
3436
changes_0.18.0

doc/changes/changes_0.21.0.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# 0.21.0 - 2025-02-25
2+
3+
## ✨ Features
4+
5+
* Added tbx task for markdown formating of .lint.json
6+
* Added a Nox task for dependencies packages and their licenses with Markdown output
7+
* [#293](https://github.com/exasol/python-toolbox/issues/293): Added `py.typed` file
8+
9+
## 🐞 Fixed
10+
* Fixed an issue in the CI workflow that caused it to be executed twice on the initial push of a PR if the PR branch was on the repo itself.
11+
12+
🚨 Attention: Due to these changes, the workflows will no longer be executed if the PR comes from a branch not located in this repository.
13+
As third-party contributions from outside forks are rare to nearly non-existent, this downside was considered a reasonable trade-off at this time.
14+
15+
## 📚 Documentation
16+
* Updated design doc (Added known Issues)
17+
* Updated migration progress table
18+
* Updated the FAQ with an entry about the ``isort`` compatibility issue
19+
* [#351](https://github.com/exasol/python-toolbox/issues/351), [#352](https://github.com/exasol/python-toolbox/issues/352): updated user guide
20+
21+
## 🔧 Changed
22+
* Updated `actions/upload-artifacts` version to `4.6.0`
23+
24+
## 🔩 Internal
25+
* Relocked dependencies
26+
* Update referenced github actions
27+
28+
## ⚒️ Refactorings
29+
* [#339](https://github.com/exasol/python-toolbox/issues/339): Secret ALTERNATIVE_GITHUB_TOKEN removed from GitHub workflows

doc/changes/unreleased.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,4 @@
22

33
## ✨ Added
44

5-
* added tbx task for markdown formating of .lint.json
6-
* Added a Nox task for dependencies packages and their licenses with Markdown output
75
* [#73](https://github.com/exasol/python-toolbox/issues/73): Add nox target for auditing work spaces in regard to known vulnerabilities
8-
9-
## 🐞 Fixed
10-
* Fixed an issue in the CI workflow that caused it to be executed twice on the initial push of a PR if the PR branch was on the repo itself.
11-
12-
🚨 Attention: Due to these changes, the workflows will no longer be executed if the PR comes from a branch not located in this repository.
13-
As third-party contributions from outside forks are rare to nearly non-existent, this downside was considered a reasonable trade-off at this time.
14-
15-
## 📚 Documentation
16-
* Updated design doc (Added known Issues)
17-
* Updated migration progress table
18-
* Updated the FAQ with an entry about the ``isort`` compatibility issue
19-
20-
## 🔧 Changed
21-
* Updated `actions/upload-artifacts` version to `4.6.0`
22-
23-
## 🔩 Internal
24-
* Relocked dependencies
25-
* Update referenced github actions
26-
27-
## ⚒️ Refactorings
28-
* [#339](https://github.com/exasol/python-toolbox/issues/339): Secret ALTERNATIVE_GITHUB_TOKEN removed from GitHub workflows

doc/user_guide/features.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Features
2+
========
3+
4+
Uniform Project Layout
5+
----------------------
6+
7+
PTB expects a default project layout following "convention over configuration" when possible and reasonable.
8+
See the cookie-cutter project template for details, which is part of the python-toolbox workspace and can be found in directory `project-template`.
9+
You can also generate a project from the template to explore the default structure.
10+
For more details on this, please check out section `"getting started" <getting_started.html>`_ section.
11+
12+
Nox
13+
---
14+
15+
The most central tool when interacting with the toolbox is :code:`nox`, which is the task runner used across all of Exasol's Python-based projects.
16+
The toolbox itself provides various standard tasks and a plugin mechanism to extend these tasks if needed. For more information regarding nox, please visit the `nox homepage <http://nox.thea.codes/en/stable/>`_.
17+
18+
Central files in regards to nox and the toolbox are:
19+
20+
- noxfile.py: Standard nox configuration/setup file
21+
- noxconfig.py: Exasol-specific file containing additional information needed by the standard tasks of the toolbox
22+
23+
Important Nox Commands
24+
^^^^^^^^^^^^^^^^^^^^^^
25+
26+
* :code:`nox -l` shows a list of all available nox tasks
27+
* :code:`nox -s <tasks>` run the specified task(s)
28+
* :code:`nox -s test:typing` runs the type checker on the project
29+
* :code:`nox -s docs:clean docs:build docs:open`
30+
#. first task removes the documentation folder
31+
#. second one builds the documentation
32+
#. last one opens the documentation in the web browser
33+
* :code:`nox` without :code:`-s` runs the default task which is
34+
* :code:`nox -s project:fix` this command runs automated fixes on the code

doc/user_guide/how_to_release.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
How to Release?
2+
===============
3+
4+
#. Use :code:`nox -s release:prepare` to prepare the project for a new release.
5+
#. Merge your **Pull Request** to the **default branch**
6+
#. Use :code:`git remote show origin | sed -n '/HEAD branch/s/.*: //p'` to output the **default branch**
7+
#. Use :code:`git checkout <default branch>` Switch to the **default branch**
8+
#. Use :code:`git pull` to update branch
9+
#. Use :code:`TAG=<name>` to set a variable named **"TAG"**
10+
#. Use :code:`git tag "${TAG}"` to create a new tag in your repo
11+
#. Use :code:`git push origin "${TAG}"` to push it to remote
12+
#. GitHub workflow **CD** reacts on this tag and starts the release process

doc/user_guide/overview.rst

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

doc/user_guide/user_guide.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
.. toctree::
77
:maxdepth: 2
88

9-
overview
109
getting_started
10+
features
1111
workflows
1212
customization
1313
migrating
14+
how_to_release

exasol/toolbox/py.typed

Whitespace-only changes.

exasol/toolbox/templates/github/workflows/build-and-publish.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@0.20.0
20+
uses: exasol/python-toolbox/.github/actions/python-environment@0.21.0
2121

2222
- name: Build Artifacts
2323
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
@@ -14,7 +14,7 @@ jobs:
1414
uses: actions/checkout@v4
1515

1616
- name: Setup Python & Poetry Environment
17-
uses: exasol/python-toolbox/.github/actions/python-environment@0.20.0
17+
uses: exasol/python-toolbox/.github/actions/python-environment@0.21.0
1818

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

0 commit comments

Comments
 (0)