prefpicker 2.7.1__tar.gz → 2.9.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 (32) hide show
  1. prefpicker-2.9.1/.github/workflows/ci.yml +113 -0
  2. {prefpicker-2.7.1 → prefpicker-2.9.1}/.pre-commit-config.yaml +3 -11
  3. {prefpicker-2.7.1 → prefpicker-2.9.1}/PKG-INFO +2 -2
  4. {prefpicker-2.7.1 → prefpicker-2.9.1}/README.md +1 -1
  5. {prefpicker-2.7.1 → prefpicker-2.9.1}/pyproject.toml +2 -7
  6. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker/templates/browser-fuzzing.yml +8 -4
  7. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker/templates/schema.json +19 -6
  8. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker.egg-info/PKG-INFO +2 -2
  9. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker.egg-info/SOURCES.txt +1 -2
  10. {prefpicker-2.7.1 → prefpicker-2.9.1}/tox.ini +7 -19
  11. prefpicker-2.7.1/.codecov.yml +0 -3
  12. prefpicker-2.7.1/.taskcluster.yml +0 -132
  13. {prefpicker-2.7.1 → prefpicker-2.9.1}/.github/CODEOWNERS +0 -0
  14. {prefpicker-2.7.1 → prefpicker-2.9.1}/.github/workflows/prefmonitor.yml +0 -0
  15. {prefpicker-2.7.1 → prefpicker-2.9.1}/.gitignore +0 -0
  16. {prefpicker-2.7.1 → prefpicker-2.9.1}/CODE_OF_CONDUCT.md +0 -0
  17. {prefpicker-2.7.1 → prefpicker-2.9.1}/LICENSE +0 -0
  18. {prefpicker-2.7.1 → prefpicker-2.9.1}/MANIFEST.in +0 -0
  19. {prefpicker-2.7.1 → prefpicker-2.9.1}/setup.cfg +0 -0
  20. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker/__init__.py +0 -0
  21. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker/__main__.py +0 -0
  22. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker/main.py +0 -0
  23. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker/prefpicker.py +0 -0
  24. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker/py.typed +0 -0
  25. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker/test_main.py +0 -0
  26. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker/test_prefpicker.py +0 -0
  27. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker/test_templates.py +0 -0
  28. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker.egg-info/dependency_links.txt +0 -0
  29. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker.egg-info/entry_points.txt +0 -0
  30. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker.egg-info/not-zip-safe +0 -0
  31. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker.egg-info/requires.txt +0 -0
  32. {prefpicker-2.7.1 → prefpicker-2.9.1}/src/prefpicker.egg-info/top_level.txt +0 -0
@@ -0,0 +1,113 @@
1
+ name: Python CI
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [ main, master ]
6
+ push:
7
+ branches: [ main, master ]
8
+ release:
9
+ types: [ released ]
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ lint:
14
+ runs-on: ubuntu-latest
15
+ name: Lint
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Install python
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: "3.12"
23
+
24
+ - name: Install tox
25
+ run: pipx install tox
26
+
27
+ - name: Run linters
28
+ run: tox -e lint
29
+
30
+ test:
31
+ name: Python ${{ matrix.python-version }} (${{ matrix.platform }})
32
+ needs: lint
33
+ runs-on: ${{ matrix.platform }}
34
+
35
+ strategy:
36
+ fail-fast: false
37
+ matrix:
38
+ include:
39
+ - python-version: "3.9"
40
+ platform: ubuntu-latest
41
+ toxenv: py39
42
+ - python-version: "3.10"
43
+ platform: ubuntu-latest
44
+ toxenv: py310
45
+ - python-version: "3.11"
46
+ platform: ubuntu-latest
47
+ toxenv: py311
48
+ - python-version: "3.12"
49
+ platform: ubuntu-latest
50
+ toxenv: py312
51
+ - python-version: "3.13"
52
+ platform: ubuntu-latest
53
+ toxenv: py313
54
+ - python-version: "3.12"
55
+ platform: macos-latest
56
+ toxenv: py312
57
+ - python-version: "3.12"
58
+ platform: windows-latest
59
+ toxenv: py312
60
+
61
+ steps:
62
+ - uses: actions/checkout@v4
63
+
64
+ - name: Install python ${{ matrix.python-version }}
65
+ uses: actions/setup-python@v5
66
+ with:
67
+ python-version: ${{ matrix.python-version }}
68
+
69
+ - name: Run tests
70
+ run: pipx run tox -e ${{ matrix.toxenv }}
71
+
72
+ - name: Run codecov
73
+ env:
74
+ CODECOV_TOKEN:
75
+ ${{ secrets.CODECOV_TOKEN }}
76
+ run: pipx run tox -e codecov
77
+
78
+ release:
79
+ runs-on: ubuntu-latest
80
+ needs: test
81
+ if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')
82
+
83
+ steps:
84
+ - uses: actions/checkout@v4
85
+ with:
86
+ fetch-depth: 0
87
+
88
+ - name: Install python
89
+ uses: actions/setup-python@v5
90
+ with:
91
+ python-version: "3.12"
92
+
93
+ - name: Run release
94
+ env:
95
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96
+
97
+ run: |
98
+ pipx run 'python-semantic-release~=10.0' -v version --no-changelog
99
+ pipx run 'python-semantic-release~=10.0' -v publish
100
+
101
+ - name: Upload to PyPI
102
+ env:
103
+ TWINE_USERNAME: __token__
104
+ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
105
+ run: |
106
+ shopt -s nullglob
107
+ files=(dist/*)
108
+ if [[ ${#files[@]} -gt 0 ]]; then
109
+ echo "Uploading ${#files[@]} files to PyPI..."
110
+ pipx run twine upload --skip-existing "${files[@]}"
111
+ else
112
+ echo "No distribution files found. Skipping upload."
113
+ fi
@@ -1,6 +1,6 @@
1
1
  repos:
2
2
  - repo: https://github.com/astral-sh/ruff-pre-commit
3
- rev: v0.9.3
3
+ rev: v0.12.7
4
4
  hooks:
5
5
  - id: ruff
6
6
  args: [--fix]
@@ -26,23 +26,15 @@ repos:
26
26
  - id: requirements-txt-fixer
27
27
  - id: trailing-whitespace
28
28
  - repo: https://github.com/codespell-project/codespell
29
- rev: v2.4.0
29
+ rev: v2.4.1
30
30
  hooks:
31
31
  - id: codespell
32
32
  exclude_types: [json]
33
- - repo: https://github.com/marco-c/taskcluster_yml_validator
34
- rev: v0.0.12
35
- hooks:
36
- - id: taskcluster_yml
37
- - repo: https://github.com/MozillaSecurity/orion-ci
38
- rev: v0.0.10
39
- hooks:
40
- - id: orion_ci
41
33
  - repo: meta
42
34
  hooks:
43
35
  - id: check-useless-excludes
44
36
  - repo: https://github.com/python-jsonschema/check-jsonschema
45
- rev: 0.31.0
37
+ rev: 0.33.2
46
38
  hooks:
47
39
  - id: check-jsonschema
48
40
  name: "Check prefpicker template schema"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prefpicker
3
- Version: 2.7.1
3
+ Version: 2.9.1
4
4
  Summary: PrefPicker - Manage & generate prefs.js files
5
5
  Home-page: https://github.com/MozillaSecurity/prefpicker
6
6
  Author: Tyson Smith
@@ -23,7 +23,7 @@ Dynamic: license-file
23
23
 
24
24
  PrefPicker
25
25
  ==========
26
- [![Task Status](https://community-tc.services.mozilla.com/api/github/v1/repository/MozillaSecurity/prefpicker/master/badge.svg)](https://community-tc.services.mozilla.com/api/github/v1/repository/MozillaSecurity/prefpicker/master/latest)
26
+ [![CI](https://github.com/MozillaSecurity/prefpicker/actions/workflows/ci.yml/badge.svg)](https://github.com/MozillaSecurity/prefpicker/actions/workflows/ci.yml)
27
27
  [![codecov](https://codecov.io/gh/MozillaSecurity/prefpicker/branch/master/graph/badge.svg)](https://codecov.io/gh/MozillaSecurity/prefpicker)
28
28
  [![Matrix](https://img.shields.io/badge/chat-%23fuzzing-green?logo=matrix)](https://matrix.to/#/#fuzzing:mozilla.org)
29
29
  [![PyPI](https://img.shields.io/pypi/v/prefpicker)](https://pypi.org/project/prefpicker)
@@ -1,6 +1,6 @@
1
1
  PrefPicker
2
2
  ==========
3
- [![Task Status](https://community-tc.services.mozilla.com/api/github/v1/repository/MozillaSecurity/prefpicker/master/badge.svg)](https://community-tc.services.mozilla.com/api/github/v1/repository/MozillaSecurity/prefpicker/master/latest)
3
+ [![CI](https://github.com/MozillaSecurity/prefpicker/actions/workflows/ci.yml/badge.svg)](https://github.com/MozillaSecurity/prefpicker/actions/workflows/ci.yml)
4
4
  [![codecov](https://codecov.io/gh/MozillaSecurity/prefpicker/branch/master/graph/badge.svg)](https://codecov.io/gh/MozillaSecurity/prefpicker)
5
5
  [![Matrix](https://img.shields.io/badge/chat-%23fuzzing-green?logo=matrix)](https://matrix.to/#/#fuzzing:mozilla.org)
6
6
  [![PyPI](https://img.shields.io/pypi/v/prefpicker)](https://pypi.org/project/prefpicker)
@@ -79,13 +79,8 @@ select = [
79
79
  "W",
80
80
  ]
81
81
 
82
- [semantic_release]
82
+ [tool.semantic_release]
83
83
  tag_format = "{version}"
84
- build_command = "SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PREFPICKER=$NEW_VERSION python -m build -v && twine upload --skip-existing dist/*"
85
- build_command_env = ["TWINE_USERNAME", "TWINE_PASSWORD"]
86
-
87
- [semantic_release.commit_author]
88
- env = "GIT_COMMIT_AUTHOR"
89
- default = "semantic-release <prefpicker@mozilla.com>"
84
+ build_command = "SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PREFPICKER=$NEW_VERSION pipx run build -v"
90
85
 
91
86
  [tool.setuptools_scm]
@@ -360,6 +360,12 @@ pref:
360
360
  variants:
361
361
  default:
362
362
  - 0
363
+ dom.navigation.webidl.enabled:
364
+ review_on_close:
365
+ - 1777171
366
+ variants:
367
+ default:
368
+ - false
363
369
  dom.paintWorklet.enabled:
364
370
  review_on_close:
365
371
  - 1685228
@@ -432,10 +438,6 @@ pref:
432
438
  variants:
433
439
  default:
434
440
  - true
435
- dom.visualviewport.enabled:
436
- variants:
437
- default:
438
- - true
439
441
  dom.vr.enabled:
440
442
  variants:
441
443
  default:
@@ -590,11 +592,13 @@ pref:
590
592
  default:
591
593
  - null
592
594
  - true
595
+ # tnikkel: 50/50 between 1 and 2 (2 is what we ship)
593
596
  # 0=off, 1=full, 2=tagged images only
594
597
  gfx.color_management.mode:
595
598
  variants:
596
599
  default:
597
600
  - 1
601
+ - 2
598
602
  gfx.downloadable_fonts.disable_cache:
599
603
  variants:
600
604
  default:
@@ -6,26 +6,39 @@
6
6
  "properties": {
7
7
  "pref": {
8
8
  "type": "object",
9
+ "additionalProperties": false,
9
10
  "patternProperties": {
10
- "^.*$": {
11
+ "^.+$": {
11
12
  "additionalProperties": false,
12
13
  "type": "object",
13
14
  "properties": {
14
15
  "variants": {
15
16
  "type": "object",
17
+ "additionalProperties": false,
16
18
  "patternProperties": {
17
- "^.*$": {
18
- "type": "array"
19
+ "^.+$": {
20
+ "type": "array",
21
+ "minItems": 1,
22
+ "items": {
23
+ "type": ["boolean", "integer", "null", "string"]
24
+ }
19
25
  }
20
- }
26
+ },
27
+ "required": [
28
+ "default"
29
+ ]
21
30
  },
22
31
  "review_on_close": {
23
32
  "type": "array",
33
+ "minItems": 1,
24
34
  "items": {
25
- "type": "number"
35
+ "type": "integer"
26
36
  }
27
37
  }
28
- }
38
+ },
39
+ "required": [
40
+ "variants"
41
+ ]
29
42
  }
30
43
  }
31
44
  },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prefpicker
3
- Version: 2.7.1
3
+ Version: 2.9.1
4
4
  Summary: PrefPicker - Manage & generate prefs.js files
5
5
  Home-page: https://github.com/MozillaSecurity/prefpicker
6
6
  Author: Tyson Smith
@@ -23,7 +23,7 @@ Dynamic: license-file
23
23
 
24
24
  PrefPicker
25
25
  ==========
26
- [![Task Status](https://community-tc.services.mozilla.com/api/github/v1/repository/MozillaSecurity/prefpicker/master/badge.svg)](https://community-tc.services.mozilla.com/api/github/v1/repository/MozillaSecurity/prefpicker/master/latest)
26
+ [![CI](https://github.com/MozillaSecurity/prefpicker/actions/workflows/ci.yml/badge.svg)](https://github.com/MozillaSecurity/prefpicker/actions/workflows/ci.yml)
27
27
  [![codecov](https://codecov.io/gh/MozillaSecurity/prefpicker/branch/master/graph/badge.svg)](https://codecov.io/gh/MozillaSecurity/prefpicker)
28
28
  [![Matrix](https://img.shields.io/badge/chat-%23fuzzing-green?logo=matrix)](https://matrix.to/#/#fuzzing:mozilla.org)
29
29
  [![PyPI](https://img.shields.io/pypi/v/prefpicker)](https://pypi.org/project/prefpicker)
@@ -1,7 +1,5 @@
1
- .codecov.yml
2
1
  .gitignore
3
2
  .pre-commit-config.yaml
4
- .taskcluster.yml
5
3
  CODE_OF_CONDUCT.md
6
4
  LICENSE
7
5
  MANIFEST.in
@@ -10,6 +8,7 @@ pyproject.toml
10
8
  setup.cfg
11
9
  tox.ini
12
10
  .github/CODEOWNERS
11
+ .github/workflows/ci.yml
13
12
  .github/workflows/prefmonitor.yml
14
13
  src/prefpicker/__init__.py
15
14
  src/prefpicker/__main__.py
@@ -1,5 +1,5 @@
1
1
  [tox]
2
- envlist = py{39,310,311,312},lint
2
+ envlist = py{39,310,311,312,313},lint
3
3
  skip_missing_interpreters = true
4
4
  tox_pip_extensions_ext_venv_update = true
5
5
 
@@ -13,48 +13,36 @@ passenv =
13
13
  CI
14
14
  CI_*
15
15
  CODECOV_*
16
+ GITHUB_*
17
+ RUNNER_*
16
18
  TOXENV
17
- TRAVIS
18
- TRAVIS_*
19
- TWINE_*
20
19
  VCS_*
21
20
  usedevelop = true
22
21
 
23
22
  [testenv:codecov]
24
23
  commands =
25
- codecov
24
+ codecov upload-process
26
25
  deps =
26
+ codecov-cli
27
27
  coverage[toml]
28
28
  skip_install = true
29
- allowlist_externals =
30
- codecov
31
29
 
32
30
  [testenv:lint]
33
31
  commands =
34
32
  pre-commit run -a {posargs}
35
33
  deps =
36
34
  pre-commit
37
- skip_install = true
38
35
 
39
36
  [testenv:mypy]
40
37
  commands =
41
38
  mypy --install-types --non-interactive {posargs}
42
39
  deps =
43
- mypy==v1.14.1
40
+ mypy==v1.17.1
44
41
  usedevelop = true
45
42
 
46
43
  [testenv:pylint]
47
44
  commands =
48
45
  pylint {posargs}
49
46
  deps =
50
- pylint==3.3.3
47
+ pylint==3.3.7
51
48
  usedevelop = true
52
-
53
- [testenv:release]
54
- skip_install = true
55
- commands =
56
- semantic-release -v version --no-changelog --no-commit --no-vcs-release
57
- deps =
58
- build
59
- python-semantic-release>=8.0.0
60
- twine
@@ -1,3 +0,0 @@
1
- codecov:
2
- ci:
3
- - community-tc.services.mozilla.com
@@ -1,132 +0,0 @@
1
- version: 1
2
- policy:
3
- pullRequests: collaborators
4
- tasks:
5
- $let:
6
- user: ${event.sender.login}
7
-
8
- fetch_rev:
9
- $if: 'tasks_for == "github-pull-request"'
10
- then: ${event.pull_request.head.sha}
11
- else:
12
- $if: 'tasks_for == "github-push"'
13
- then: ${event.after}
14
- else: ${event.release.tag_name}
15
-
16
- fetch_ref:
17
- $if: 'tasks_for == "github-pull-request"'
18
- then: ${event.pull_request.head.sha}
19
- else:
20
- $if: 'tasks_for == "github-push"'
21
- then: ${event.after}
22
- else: "refs/tags/${event.release.tag_name}:refs/tags/${event.release.tag_name}"
23
-
24
- http_repo:
25
- $if: 'tasks_for == "github-pull-request"'
26
- then: ${event.pull_request.base.repo.clone_url}
27
- else: ${event.repository.clone_url}
28
-
29
- codecov_secret:
30
- codecov-prefpicker
31
-
32
- pypi_secret:
33
- pypi-prefpicker
34
-
35
- project_name:
36
- PrefPicker
37
-
38
- matrix:
39
- language: python
40
- secrets:
41
- - type: env
42
- secret: project/fuzzing/codecov-prefpicker
43
- name: CODECOV_TOKEN
44
- key: token
45
- script:
46
- - bash
47
- - '-xec'
48
- - tox; tox -e codecov
49
- jobs:
50
- include:
51
- - name: tests python 3.9
52
- version: "3.9"
53
- env:
54
- TOXENV: py39,lint
55
- - name: tests python 3.10
56
- version: "3.10"
57
- env:
58
- TOXENV: py310,lint
59
- - name: tests python 3.10 (windows)
60
- version: "3.10"
61
- platform: windows
62
- env:
63
- TOXENV: py310
64
- - name: tests python 3.11
65
- version: "3.11"
66
- env:
67
- TOXENV: py311,lint
68
- - name: tests python 3.12
69
- version: "3.12"
70
- env:
71
- TOXENV: py312,lint
72
- - name: semantic-release
73
- version: "3.9"
74
- script:
75
- - bash
76
- - '-xec'
77
- - >-
78
- git fetch origin master --tags;
79
- git checkout -b master;
80
- tox -e release
81
- when:
82
- branch: master
83
- all_passed: true
84
- secrets:
85
- - type: env
86
- secret: project/fuzzing/pypi-prefpicker
87
- name: TWINE_USERNAME
88
- key: username
89
- - type: env
90
- secret: project/fuzzing/pypi-prefpicker
91
- name: TWINE_PASSWORD
92
- key: password
93
- - type: key
94
- secret: project/fuzzing/deploy-prefpicker
95
- key: key
96
-
97
- in:
98
- $if: 'tasks_for in ["github-push", "github-release"] || (tasks_for == "github-pull-request" && event["action"] in ["opened", "reopened", "synchronize"])'
99
- then:
100
- - created: {$fromNow: ''}
101
- deadline: {$fromNow: '1 hour'}
102
- provisionerId: proj-fuzzing
103
- workerType: decision
104
- payload:
105
- features:
106
- taskclusterProxy: true
107
- maxRunTime: 3600
108
- image:
109
- type: indexed-image
110
- path: public/orion-decision.tar.zst
111
- namespace: project.fuzzing.orion.orion-decision.master
112
- env:
113
- PROJECT_NAME: ${project_name}
114
- CI_MATRIX: {$json: {$eval: matrix}}
115
- GITHUB_EVENT: {$json: {$eval: event}}
116
- GITHUB_ACTION: ${tasks_for}
117
- TASKCLUSTER_NOW: ${now}
118
- command:
119
- - ci-decision
120
- - -v
121
- scopes:
122
- - queue:create-task:highest:proj-fuzzing/ci
123
- - queue:create-task:highest:proj-fuzzing/ci-*
124
- - queue:scheduler-id:taskcluster-github
125
- - secrets:get:project/fuzzing/codecov-prefpicker
126
- - secrets:get:project/fuzzing/deploy-prefpicker
127
- - secrets:get:project/fuzzing/pypi-prefpicker
128
- metadata:
129
- name: ${project_name} CI decision
130
- description: Schedule CI tasks for ${project_name}
131
- owner: ${user}@users.noreply.github.com
132
- source: https://github.com/MozillaSecurity/prefpicker
File without changes
File without changes
File without changes
File without changes