Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare release 0.9.0 #143

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ jobs:
run: >
gh release create ${GITHUB_REF_NAME}
--title ${GITHUB_REF_NAME}
--notes-file ./doc/changes/changes_${GITHUB_REF_NAME}.md
dist/*
140 changes: 0 additions & 140 deletions doc/changelog.rst

This file was deleted.

32 changes: 32 additions & 0 deletions doc/changes/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 📝 Changes

* [unreleased](unreleased.md)
* [0.9.0](changes_0.9.0.md)
* [0.8.0](changes_0.8.0.md)
* [0.7.0](changes_0.7.0.md)
* [0.6.2](changes_0.6.2.md)
* [0.6.1](changes_0.6.1.md)
* [0.6.0](changes_0.6.0.md)
* [0.5.0](changes_0.5.0.md)
* [0.4.0](changes_0.4.0.md)
* [0.3.0](changes_0.3.0.md)
* [0.2.0](changes_0.2.0.md)
* [0.1.0](changes_0.1.0.md)

```{toctree}
---
hidden:
---
unreleased
changes_0.9.0
changes_0.8.0
changes_0.7.0
changes_0.6.2
changes_0.6.1
changes_0.6.0
changes_0.5.0
changes_0.4.0
changes_0.3.0
changes_0.2.0
changes_0.1.0
```
5 changes: 5 additions & 0 deletions doc/changes/changes_0.1.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 0.1.0 - 2022-11-25

## Added

* ✨ Initial release
12 changes: 12 additions & 0 deletions doc/changes/changes_0.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 0.2.0 - 2022-12-20

## ✨ Added
* Added basic templates for workflow and config files
* Added additional Project metadata

## 🔧 Changed
* Updated dependencies
* Migrate project to exasol organization

## 📚 Documentation
* Updated workflow documentation
7 changes: 7 additions & 0 deletions doc/changes/changes_0.3.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 0.3.0 - 2022-12-21

## ✨ Added
* Added support for custom path filters to config object

## 🔧 Changed
* Updated dependencies
16 changes: 16 additions & 0 deletions doc/changes/changes_0.4.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 0.4.0 - 2023-04-19

## ✨ Added
* Added support for metrics
- Added nox metrics task :code:`nox -s report`
- Added GitHub workflow which generates and reports the metrics
- Added metrics workflow call invocation to standard workflows
* ci
* ci-cd
* pr-merge

## 🔧 Changed
* Updated dependencies

## 🗑 Removed
* Removed :code:`scriv` support
10 changes: 10 additions & 0 deletions doc/changes/changes_0.5.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 0.5.0 - 2023-10-12

## ✨ Added
* Added first version of the tbx cli tool with support for managing github workflows

## 🔧 Changed
* Changed autogenerated comment in version.py for better clarity
* Updated dependencies
* Updated github issue templates

6 changes: 6 additions & 0 deletions doc/changes/changes_0.6.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 0.6.0 - 2023-10-27

## ✨ Added
* Added security command
* Added security-issues action

5 changes: 5 additions & 0 deletions doc/changes/changes_0.6.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 0.6.1 - 2023-10-27

## 🐞 Fixed
* Fixed failing security-issues action in case of empty ignore list

9 changes: 9 additions & 0 deletions doc/changes/changes_0.6.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 0.6.2 - 2023-11-20

## 🐞 Fixed
* Fix failing vulnerability issue creator when Maven report does not contain "vulnerable" entry

## 🔧 Changed
* Update pylint dependency
* Update import-lib dependency

5 changes: 5 additions & 0 deletions doc/changes/changes_0.7.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 0.7.0 - 2024-01-26

## ✨ Added
* Added support for referencing projects in security-issues action.

5 changes: 5 additions & 0 deletions doc/changes/changes_0.8.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 0.8.0 - 2024-02-07

## ✨ Added
* Added output `created-issues` to `security-issues` action containing the found security issues including the created GitHub issues in JSONL format.

5 changes: 5 additions & 0 deletions doc/changes/changes_0.9.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 0.9.0 - 2024-03-11

## Added

* Added foo
1 change: 1 addition & 0 deletions doc/changes/unreleased.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Unreleased
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"sphinx.ext.autosummary",
"sphinx.ext.autosectionlabel",
"sphinx_copybutton",
"myst_parser",
]

intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
Expand Down
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
github_actions/github_actions
api
developer_guide/developer_guide
changelog
changes/changelog
11 changes: 11 additions & 0 deletions exasol/toolbox/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from argparse import ArgumentTypeError

from exasol.toolbox.release import Version


def version(arg):
try:
return Version.from_string(arg)
except Exception as ex:
msg = f"Expected format: <number>.<number>.<number>, e.g. 1.2.3, actual: {arg}"
raise ArgumentTypeError(msg) from ex
2 changes: 2 additions & 0 deletions exasol/toolbox/error.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class ToolboxError(Exception):
"""Base Toolbox Exception"""
15 changes: 15 additions & 0 deletions exasol/toolbox/git.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from subprocess import run
from typing import Iterable


def tags() -> Iterable[str]:
"""
Returns a list of all tags, sorted from [0] oldest to [-1] newest.
PreConditions:
- the git cli tool needs to be installed
- the git cli tool can be found via $PATH
- the code is executed where the working directory is within a git repository
"""
command = ["git", "tag", "--sort=committerdate"]
result = run(command, capture_output=True, check=True)
return [tag.strip() for tag in result.stdout.decode("utf-8").splitlines()]
Loading
Loading