From 188f829a6f8eda65de7788dc87222b3032661d0e Mon Sep 17 00:00:00 2001 From: Freddy Ewald Date: Fri, 1 Nov 2024 18:20:31 +0000 Subject: [PATCH 1/2] Run CI pipeline on pull requests --- .github/workflows/tox.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 7d8e6c7..85a7073 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -1,6 +1,8 @@ name: ci -on: [push] +on: + - push + - pull_request jobs: build: From 6f4b8dc099c32512fc1a3d4bc1ee1d13136d8ef2 Mon Sep 17 00:00:00 2001 From: Freddy Ewald Date: Fri, 1 Nov 2024 19:02:01 +0000 Subject: [PATCH 2/2] Change type to dict --- src/shiv/bootstrap/environment.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shiv/bootstrap/environment.py b/src/shiv/bootstrap/environment.py index 75625b7..a8a1404 100644 --- a/src/shiv/bootstrap/environment.py +++ b/src/shiv/bootstrap/environment.py @@ -4,7 +4,7 @@ """ import json import os -from typing import Any, Optional +from typing import Any, Dict, Optional def str_bool(v) -> bool: @@ -35,7 +35,7 @@ def __init__( entry_point: Optional[str] = None, extend_pythonpath: bool = False, prepend_pythonpath: Optional[str] = None, - hashes: Optional[dict[str, Any]] = None, + hashes: Optional[Dict[str, Any]] = None, no_modify: bool = False, reproducible: bool = False, script: Optional[str] = None, @@ -46,7 +46,7 @@ def __init__( self.always_write_cache: bool = always_write_cache self.build_id: Optional[str] = build_id self.built_at: str = built_at - self.hashes: Optional[dict[str, Any]] = hashes or {} + self.hashes: Optional[Dict[str, Any]] = hashes or {} self.no_modify: bool = no_modify self.reproducible: bool = reproducible self.preamble: Optional[str] = preamble