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

chore(python): Add support for python 3.13 #129

Merged
merged 4 commits into from
Nov 29, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
# - "3.13"
- "3.13"
os:
- "ubuntu"
- "macos"
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
default_stages:
- commit
- pre-commit

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
2,793 changes: 1,433 additions & 1,360 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/makim/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def _run_command(self, args: dict[str, Any]) -> None:
env, variables = self._load_scoped_data('task')
self.env_scoped = deepcopy(env)

args_input = {'file': self.file}
args_input: dict[str, str | bool | float | int] = {'file': self.file}
for k, v in self.task_data.get('args', {}).items():
if not isinstance(v, dict):
raise Exception('`args` attribute should be a dictionary.')
Expand Down
10 changes: 5 additions & 5 deletions tests/smoke/.makim-sugar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ groups:
help: build necessary docker image
run: |
pwd
sugar pull --all
sugar build --all
sugar ext restart --all --options -d
sugar compose pull --all
sugar compose build --all
sugar compose-ext restart --all --options "-d"
run:
help: test running a docker service using containers-sugar
hooks:
pre-run:
- task: containers.setup
backend: bash
run: |
sugar exec --service service1 --options -T --cmd python -c "print(1)"
sugar stop --all
sugar compose exec --service service1 --options "-T" --cmd "python -c 'print(1)'"
sugar compose stop --all
6 changes: 3 additions & 3 deletions tests/smoke/.sugar.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
compose-app: docker-compose
backend: compose
env-file: .env
services:
project-name: makim-tests
compose-path: containers/compose.yaml
env-file: .env
config-path: containers/compose.yaml
default: service1
available:
- name: service1
2 changes: 1 addition & 1 deletion tests/test_failure.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ def test_failure(task, args, error_code):
os._exit = sys.exit
with pytest.raises(SystemExit) as pytest_wrapped_e:
m.run(args)
assert pytest_wrapped_e.type == SystemExit
assert pytest_wrapped_e.type is SystemExit
assert pytest_wrapped_e.value.code == error_code
Loading