Skip to content

Commit

Permalink
Dependencies rollup: 2023-10-09 (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
Radek Lát authored Oct 12, 2023
1 parent a365d68 commit 9445b14
Show file tree
Hide file tree
Showing 7 changed files with 290 additions and 401 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/auto-approve-for-owners.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Auto Approve for Owners

on:
pull_request:
types:
- opened
- synchronize
- auto_merge_enabled

jobs:
auto-approve:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == github.repository_owner && github.event.pull_request.auto_merge != null

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Auto-approve pull request
run: |
curl -s -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews" \
-d '{"event": "APPROVE", "body": "Auto-approved because this PR was opened by the repository owner and auto-merge is enabled."}'
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ Types of changes are:

## [Unreleased]

## [3.0.1] - 2023-10-12

### Fixes

- Dependencies update
- Removal of Python 3.7 compatibility code

## [3.0.0] - 2023-09-14

### Breaking changes
Expand Down Expand Up @@ -473,7 +480,8 @@ Commands can raise `AssertionError` exceptions to tell `delfino` some pre-condit

- Initial copy of source codes.

[Unreleased]: https://github.com/radeklat/delfino/compare/3.0.0...HEAD
[Unreleased]: https://github.com/radeklat/delfino/compare/3.0.1...HEAD
[3.0.1]: https://github.com/radeklat/delfino/compare/3.0.0...3.0.1
[3.0.0]: https://github.com/radeklat/delfino/compare/2.0.0...3.0.0
[2.0.0]: https://github.com/radeklat/delfino/compare/1.3.0...2.0.0
[1.3.0]: https://github.com/radeklat/delfino/compare/1.2.0...1.3.0
Expand Down
631 changes: 249 additions & 382 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "delfino"
version = "3.0.0"
version = "3.0.1"
description = "A collection of command line helper scripts wrapping tools used during Python development."
authors = ["Radek Lát <radek.lat@gmail.com>"]
license = "MIT License"
Expand All @@ -27,7 +27,7 @@ delfino = "delfino.main:main"
mike = "delfino.main:main"

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.8.1"
toml = "^0.10"
click = "^8.0"
pydantic = "^2.0"
Expand All @@ -40,8 +40,8 @@ completion = ["shellingham"]
[tool.poetry.group.dev.dependencies]
shellingham = "^1.4"
types-toml = "*"
delfino-core = {extras = ["verify-all", "dependencies-update"], version = "^5.1"}
pylint-pydantic = "^0.2.4"
delfino-core = {extras = ["verify-all", "dependencies-update"], version = "^6.0"}
pylint-pydantic = "^0.3.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
10 changes: 0 additions & 10 deletions src/delfino/backports.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/delfino/decorators/pass_app_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def new_func(*args, **kwargs):
raise RuntimeError(
f"Managed to invoke callback without a context object of type {AppContext.__name__!r} existing."
)
obj.plugin_config = plugin_config_type(**obj.plugin_config.dict())
obj.plugin_config = plugin_config_type(**obj.plugin_config.model_dump())
return ctx.invoke(func, *args, **kwargs, **{kwargs_name: obj})

return functools.update_wrapper(cast(_Func, new_func), func)
Expand Down
5 changes: 2 additions & 3 deletions src/delfino/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import click

from delfino.backports import shlex_join
from delfino.utils import ArgsType

_LOG = getLogger(__name__)
Expand Down Expand Up @@ -35,7 +34,7 @@ def _normalize_args(args: ArgsType, shell: bool) -> Tuple[ArgsType, str]:
args_decoded = args.decode()
return args_decoded, args_decoded

args_str = shlex_join(map(str, args))
args_str = shlex.join(map(str, args))
return args_str, args_str

# when not `shell`, `args` must be a `Sequence`
Expand All @@ -47,7 +46,7 @@ def _normalize_args(args: ArgsType, shell: bool) -> Tuple[ArgsType, str]:
return shlex.split(args_decoded), args_decoded

args_list = [str(arg) for arg in args]
return args_list, shlex_join(args_list)
return args_list, shlex.join(args_list)


def _patch_env(
Expand Down

0 comments on commit 9445b14

Please sign in to comment.