prefpicker 2.6.1__tar.gz → 2.7.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of prefpicker might be problematic. Click here for more details.

Files changed (31) hide show
  1. {prefpicker-2.6.1 → prefpicker-2.7.1}/.pre-commit-config.yaml +1 -4
  2. {prefpicker-2.6.1 → prefpicker-2.7.1}/PKG-INFO +3 -2
  3. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker/main.py +1 -0
  4. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker/prefpicker.py +6 -5
  5. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker/templates/browser-fuzzing.yml +5 -0
  6. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker.egg-info/PKG-INFO +3 -2
  7. {prefpicker-2.6.1 → prefpicker-2.7.1}/.codecov.yml +0 -0
  8. {prefpicker-2.6.1 → prefpicker-2.7.1}/.github/CODEOWNERS +0 -0
  9. {prefpicker-2.6.1 → prefpicker-2.7.1}/.github/workflows/prefmonitor.yml +0 -0
  10. {prefpicker-2.6.1 → prefpicker-2.7.1}/.gitignore +0 -0
  11. {prefpicker-2.6.1 → prefpicker-2.7.1}/.taskcluster.yml +0 -0
  12. {prefpicker-2.6.1 → prefpicker-2.7.1}/CODE_OF_CONDUCT.md +0 -0
  13. {prefpicker-2.6.1 → prefpicker-2.7.1}/LICENSE +0 -0
  14. {prefpicker-2.6.1 → prefpicker-2.7.1}/MANIFEST.in +0 -0
  15. {prefpicker-2.6.1 → prefpicker-2.7.1}/README.md +0 -0
  16. {prefpicker-2.6.1 → prefpicker-2.7.1}/pyproject.toml +0 -0
  17. {prefpicker-2.6.1 → prefpicker-2.7.1}/setup.cfg +0 -0
  18. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker/__init__.py +0 -0
  19. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker/__main__.py +0 -0
  20. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker/py.typed +0 -0
  21. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker/templates/schema.json +0 -0
  22. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker/test_main.py +0 -0
  23. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker/test_prefpicker.py +0 -0
  24. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker/test_templates.py +0 -0
  25. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker.egg-info/SOURCES.txt +0 -0
  26. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker.egg-info/dependency_links.txt +0 -0
  27. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker.egg-info/entry_points.txt +0 -0
  28. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker.egg-info/not-zip-safe +0 -0
  29. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker.egg-info/requires.txt +0 -0
  30. {prefpicker-2.6.1 → prefpicker-2.7.1}/src/prefpicker.egg-info/top_level.txt +0 -0
  31. {prefpicker-2.6.1 → prefpicker-2.7.1}/tox.ini +0 -0
@@ -4,10 +4,7 @@ repos:
4
4
  hooks:
5
5
  - id: ruff
6
6
  args: [--fix]
7
- - repo: https://github.com/ambv/black
8
- rev: 24.10.0
9
- hooks:
10
- - id: black
7
+ - id: ruff-format
11
8
  - repo: https://github.com/pre-commit/pre-commit-hooks
12
9
  rev: v5.0.0
13
10
  hooks:
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: prefpicker
3
- Version: 2.6.1
3
+ Version: 2.7.1
4
4
  Summary: PrefPicker - Manage & generate prefs.js files
5
5
  Home-page: https://github.com/MozillaSecurity/prefpicker
6
6
  Author: Tyson Smith
@@ -19,6 +19,7 @@ Requires-Dist: PyYAML
19
19
  Provides-Extra: dev
20
20
  Requires-Dist: pre-commit; extra == "dev"
21
21
  Requires-Dist: tox; extra == "dev"
22
+ Dynamic: license-file
22
23
 
23
24
  PrefPicker
24
25
  ==========
@@ -2,6 +2,7 @@
2
2
  # License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
4
  """prefpicker module main"""
5
+
5
6
  from __future__ import annotations
6
7
 
7
8
  from argparse import ArgumentParser, Namespace
@@ -2,6 +2,7 @@
2
2
  # License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
4
  """prefpicker module"""
5
+
5
6
  from __future__ import annotations
6
7
 
7
8
  from datetime import datetime, timezone
@@ -16,7 +17,7 @@ from yaml.parser import ParserError
16
17
  from yaml.scanner import ScannerError
17
18
 
18
19
  if TYPE_CHECKING:
19
- from collections.abc import Iterator
20
+ from collections.abc import Generator
20
21
 
21
22
  __author__ = "Tyson Smith"
22
23
  __credits__ = ["Tyson Smith"]
@@ -43,7 +44,7 @@ class PrefPicker: # pylint: disable=missing-docstring
43
44
  self.prefs: dict[str, dict[str, PrefVariant]] = {}
44
45
  self.variants: set[str] = {"default"}
45
46
 
46
- def check_combinations(self) -> Iterator[tuple[str, int]]:
47
+ def check_combinations(self) -> Generator[tuple[str, int]]:
47
48
  """Count the number of combinations for each variation. Only return
48
49
  variants that have more than one combination.
49
50
 
@@ -65,7 +66,7 @@ class PrefPicker: # pylint: disable=missing-docstring
65
66
  if count > 1:
66
67
  yield (variant, count)
67
68
 
68
- def check_duplicates(self) -> Iterator[tuple[str, str]]:
69
+ def check_duplicates(self) -> Generator[tuple[str, str]]:
69
70
  """Look for variants with values that appear more than once per variant.
70
71
 
71
72
  Args:
@@ -80,7 +81,7 @@ class PrefPicker: # pylint: disable=missing-docstring
80
81
  if len(variants[variant]) != len(set(variants[variant])):
81
82
  yield (pref, variant)
82
83
 
83
- def check_overwrites(self) -> Iterator[tuple[str, str, PrefValue]]:
84
+ def check_overwrites(self) -> Generator[tuple[str, str, PrefValue]]:
84
85
  """Look for variants that overwrite the default with the same value.
85
86
 
86
87
  Args:
@@ -187,7 +188,7 @@ class PrefPicker: # pylint: disable=missing-docstring
187
188
  return picker
188
189
 
189
190
  @staticmethod
190
- def templates() -> Iterator[Path]:
191
+ def templates() -> Generator[Path]:
191
192
  """Available YAML template files.
192
193
 
193
194
  Args:
@@ -938,6 +938,11 @@ pref:
938
938
  variants:
939
939
  default:
940
940
  - false
941
+ # required for local testing of webtransport
942
+ network.http.http3.disable_when_third_party_roots_found:
943
+ variants:
944
+ default:
945
+ - false
941
946
  # max time to wait for connection (default is 300)
942
947
  network.http.response.timeout:
943
948
  variants:
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: prefpicker
3
- Version: 2.6.1
3
+ Version: 2.7.1
4
4
  Summary: PrefPicker - Manage & generate prefs.js files
5
5
  Home-page: https://github.com/MozillaSecurity/prefpicker
6
6
  Author: Tyson Smith
@@ -19,6 +19,7 @@ Requires-Dist: PyYAML
19
19
  Provides-Extra: dev
20
20
  Requires-Dist: pre-commit; extra == "dev"
21
21
  Requires-Dist: tox; extra == "dev"
22
+ Dynamic: license-file
22
23
 
23
24
  PrefPicker
24
25
  ==========
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes