pythonlib: Support Python 3.8 #61 0.3.5

This commit is contained in:
daijro 2024-10-31 05:09:17 -05:00
parent 347885e9cb
commit 692e8a162c
2 changed files with 4 additions and 4 deletions

View file

@ -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'],

View file

@ -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 <daijro.dev@gmail.com>"]
license = "MIT"