From 692e8a162c59735157366338afa9c2ad9bfd47a7 Mon Sep 17 00:00:00 2001 From: daijro Date: Thu, 31 Oct 2024 05:09:17 -0500 Subject: [PATCH] pythonlib: Support Python 3.8 #61 0.3.5 --- pythonlib/camoufox/pkgman.py | 6 +++--- pythonlib/pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pythonlib/camoufox/pkgman.py b/pythonlib/camoufox/pkgman.py index 02c2b90..3effb63 100644 --- a/pythonlib/camoufox/pkgman.py +++ b/pythonlib/camoufox/pkgman.py @@ -9,7 +9,7 @@ from dataclasses import dataclass from functools import total_ordering from io import BufferedWriter, BytesIO from pathlib import Path -from typing import List, Literal, Optional, Tuple, Union +from typing import Dict, List, Literal, Optional, Tuple, Union from zipfile import ZipFile import click @@ -38,7 +38,7 @@ ARCH_MAP: dict[str, str] = { 'armv6l': 'arm64', 'armv7l': 'arm64', } -OS_MAP: dict[str, Literal['mac', 'win', 'lin']] = {'darwin': 'mac', 'linux': 'lin', 'win32': 'win'} +OS_MAP: Dict[str, Literal['mac', 'win', 'lin']] = {'darwin': 'mac', 'linux': 'lin', 'win32': 'win'} if sys.platform not in OS_MAP: raise UnsupportedOS(f"OS {sys.platform} is not supported") @@ -49,7 +49,7 @@ INSTALL_DIR: Path = Path(user_cache_dir("camoufox")) LOCAL_DATA: Path = Path(os.path.abspath(__file__)).parent # The supported architectures for each OS -OS_ARCH_MATRIX: dict[str, List[str]] = { +OS_ARCH_MATRIX: Dict[str, List[str]] = { 'mac': ['x86_64', 'arm64'], 'win': ['x86_64', 'i686'], 'lin': ['x86_64', 'arm64', 'i686'], diff --git a/pythonlib/pyproject.toml b/pythonlib/pyproject.toml index 277178f..31eeb7d 100644 --- a/pythonlib/pyproject.toml +++ b/pythonlib/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "camoufox" -version = "0.3.4" +version = "0.3.5" description = "Wrapper around Playwright to help launch Camoufox" authors = ["daijro "] license = "MIT"