prefpicker 2.7.1__tar.gz → 2.9.0__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.
- prefpicker-2.9.0/.github/workflows/ci.yml +113 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/.pre-commit-config.yaml +0 -8
- {prefpicker-2.7.1 → prefpicker-2.9.0}/PKG-INFO +2 -2
- {prefpicker-2.7.1 → prefpicker-2.9.0}/README.md +1 -1
- {prefpicker-2.7.1 → prefpicker-2.9.0}/pyproject.toml +2 -7
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker/templates/browser-fuzzing.yml +6 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker/templates/schema.json +19 -6
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker.egg-info/PKG-INFO +2 -2
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker.egg-info/SOURCES.txt +1 -2
- {prefpicker-2.7.1 → prefpicker-2.9.0}/tox.ini +2 -13
- prefpicker-2.7.1/.codecov.yml +0 -3
- prefpicker-2.7.1/.taskcluster.yml +0 -132
- {prefpicker-2.7.1 → prefpicker-2.9.0}/.github/CODEOWNERS +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/.github/workflows/prefmonitor.yml +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/.gitignore +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/CODE_OF_CONDUCT.md +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/LICENSE +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/MANIFEST.in +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/setup.cfg +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker/__init__.py +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker/__main__.py +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker/main.py +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker/prefpicker.py +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker/py.typed +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker/test_main.py +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker/test_prefpicker.py +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker/test_templates.py +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker.egg-info/dependency_links.txt +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker.egg-info/entry_points.txt +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker.egg-info/not-zip-safe +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/src/prefpicker.egg-info/requires.txt +0 -0
- {prefpicker-2.7.1 → prefpicker-2.9.0}/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
|
|
@@ -30,14 +30,6 @@ repos:
|
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: prefpicker
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.9.0
|
|
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
|
-
[](https://github.com/MozillaSecurity/prefpicker/actions/workflows/ci.yml)
|
|
27
27
|
[](https://codecov.io/gh/MozillaSecurity/prefpicker)
|
|
28
28
|
[](https://matrix.to/#/#fuzzing:mozilla.org)
|
|
29
29
|
[](https://pypi.org/project/prefpicker)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
PrefPicker
|
|
2
2
|
==========
|
|
3
|
-
[](https://github.com/MozillaSecurity/prefpicker/actions/workflows/ci.yml)
|
|
4
4
|
[](https://codecov.io/gh/MozillaSecurity/prefpicker)
|
|
5
5
|
[](https://matrix.to/#/#fuzzing:mozilla.org)
|
|
6
6
|
[](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
|
|
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]
|
|
@@ -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": "
|
|
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.
|
|
3
|
+
Version: 2.9.0
|
|
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
|
-
[](https://github.com/MozillaSecurity/prefpicker/actions/workflows/ci.yml)
|
|
27
27
|
[](https://codecov.io/gh/MozillaSecurity/prefpicker)
|
|
28
28
|
[](https://matrix.to/#/#fuzzing:mozilla.org)
|
|
29
29
|
[](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
|
|
@@ -22,19 +22,17 @@ usedevelop = true
|
|
|
22
22
|
|
|
23
23
|
[testenv:codecov]
|
|
24
24
|
commands =
|
|
25
|
-
codecov
|
|
25
|
+
codecov upload-process
|
|
26
26
|
deps =
|
|
27
|
+
codecov-cli
|
|
27
28
|
coverage[toml]
|
|
28
29
|
skip_install = true
|
|
29
|
-
allowlist_externals =
|
|
30
|
-
codecov
|
|
31
30
|
|
|
32
31
|
[testenv:lint]
|
|
33
32
|
commands =
|
|
34
33
|
pre-commit run -a {posargs}
|
|
35
34
|
deps =
|
|
36
35
|
pre-commit
|
|
37
|
-
skip_install = true
|
|
38
36
|
|
|
39
37
|
[testenv:mypy]
|
|
40
38
|
commands =
|
|
@@ -49,12 +47,3 @@ commands =
|
|
|
49
47
|
deps =
|
|
50
48
|
pylint==3.3.3
|
|
51
49
|
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
|
prefpicker-2.7.1/.codecov.yml
DELETED
|
@@ -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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|