mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 17:42:04 -08:00
pythonlib: Fully fix #61 0.3.6
This commit is contained in:
parent
a75a20bcdc
commit
33189cd5b4
4 changed files with 9 additions and 4 deletions
|
|
@ -27,7 +27,10 @@ class ExtendedScreen(ScreenFingerprint):
|
||||||
|
|
||||||
|
|
||||||
def _cast_to_properties(
|
def _cast_to_properties(
|
||||||
camoufox_data: dict, cast_enum: dict, bf_dict: dict, ff_version: Optional[str] = None
|
camoufox_data: Dict[str, Any],
|
||||||
|
cast_enum: Dict[str, Any],
|
||||||
|
bf_dict: Dict[str, Any],
|
||||||
|
ff_version: Optional[str] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Casts Browserforge fingerprints to Camoufox config properties.
|
Casts Browserforge fingerprints to Camoufox config properties.
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ from dataclasses import dataclass
|
||||||
from functools import total_ordering
|
from functools import total_ordering
|
||||||
from io import BufferedWriter, BytesIO
|
from io import BufferedWriter, BytesIO
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Dict, List, Literal, Optional, Tuple, Union
|
from typing import Any, Dict, List, Literal, Optional, Tuple, Union
|
||||||
from zipfile import ZipFile
|
from zipfile import ZipFile
|
||||||
|
|
||||||
import click
|
import click
|
||||||
|
|
@ -440,7 +440,7 @@ def unzip(
|
||||||
zf.extract(member, extract_path)
|
zf.extract(member, extract_path)
|
||||||
|
|
||||||
|
|
||||||
def load_yaml(file: str) -> Dict:
|
def load_yaml(file: str) -> Dict[str, Any]:
|
||||||
"""
|
"""
|
||||||
Loads a local YAML file and returns it as a dictionary.
|
Loads a local YAML file and returns it as a dictionary.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ rm -rf ./dist
|
||||||
rm -rf ./camoufox/*.mmdb
|
rm -rf ./camoufox/*.mmdb
|
||||||
rm -rf ./camoufox/*.png
|
rm -rf ./camoufox/*.png
|
||||||
|
|
||||||
|
vermin . --eval-annotations --target=3.8 --violations camoufox/ || exit 1
|
||||||
|
|
||||||
python -m build
|
python -m build
|
||||||
twine check dist/*
|
twine check dist/*
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "camoufox"
|
name = "camoufox"
|
||||||
version = "0.3.5"
|
version = "0.3.6"
|
||||||
description = "Wrapper around Playwright to help launch Camoufox"
|
description = "Wrapper around Playwright to help launch Camoufox"
|
||||||
authors = ["daijro <daijro.dev@gmail.com>"]
|
authors = ["daijro <daijro.dev@gmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue