diff --git a/setup.cfg b/setup.cfg index 3101036..b9d0f08 100644 --- a/setup.cfg +++ b/setup.cfg @@ -50,8 +50,7 @@ install_requires = click>=6.7,!=7.0 pip>=9.0.3 setuptools - importlib_resources; python_version < "3.7" -python_requires = >=3.6 +python_requires = >=3.7 include_package_data = True [options.extras_require] diff --git a/src/shiv/__version__.py b/src/shiv/__version__.py index 9e604c0..6849410 100644 --- a/src/shiv/__version__.py +++ b/src/shiv/__version__.py @@ -1 +1 @@ -__version__ = "1.0.7" +__version__ = "1.1.0" diff --git a/src/shiv/bootstrap/environment.py b/src/shiv/bootstrap/environment.py index 75625b7..fdc80ec 100644 --- a/src/shiv/bootstrap/environment.py +++ b/src/shiv/bootstrap/environment.py @@ -2,9 +2,10 @@ This module contains the ``Environment`` object, which combines settings decided at build time with overrides defined at runtime (via environment variables). """ +from __future__ import annotations import json import os -from typing import Any, Optional +from typing import Any, Dict, Optional def str_bool(v) -> bool: @@ -35,7 +36,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 +47,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