python-discovery 1.9.2__tar.gz → 1.9.4__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.
- python_discovery-1.9.4/.github/workflows/check.yaml +76 -0
- python_discovery-1.9.4/.github/workflows/codeql.yaml +22 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/.github/workflows/news.yaml +3 -3
- {python_discovery-1.9.2 → python_discovery-1.9.4}/.github/workflows/prepare-release.yaml +1 -1
- python_discovery-1.9.4/.github/workflows/release.yaml +56 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/.github/workflows/scorecard.yaml +1 -1
- {python_discovery-1.9.2 → python_discovery-1.9.4}/.github/workflows/upgrade-release-tools.yaml +1 -1
- {python_discovery-1.9.2 → python_discovery-1.9.4}/.pre-commit-config.yaml +3 -3
- {python_discovery-1.9.2 → python_discovery-1.9.4}/PKG-INFO +1 -1
- {python_discovery-1.9.2 → python_discovery-1.9.4}/docs/changelog.rst +20 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/pylock.toml +149 -148
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/_discovery.py +2 -2
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/test_discovery.py +7 -0
- python_discovery-1.9.2/.github/workflows/check.yaml +0 -99
- python_discovery-1.9.2/.github/workflows/codeql.yaml +0 -41
- python_discovery-1.9.2/.github/workflows/release.yaml +0 -117
- {python_discovery-1.9.2 → python_discovery-1.9.4}/.github/FUNDING.yaml +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/.github/SECURITY.md +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/.github/THREAT_MODEL.md +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/.github/dependabot.yaml +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/.github/release.yaml +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/.gitignore +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/.readthedocs.yaml +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/.readthedocs.yml +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/CODE_OF_CONDUCT.md +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/LICENSE +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/README.md +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/docs/_static/custom.css +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/docs/_static/github.svg +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/docs/_static/logo.svg +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/docs/changelog/template.jinja2 +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/docs/conf.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/docs/contributing.rst +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/docs/explanation.rst +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/docs/how-to/standalone-usage.rst +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/docs/index.rst +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/docs/reference/api.rst +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/docs/reference/environment-variables.rst +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/docs/tutorial/getting-started.rst +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/pyproject.toml +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/__init__.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/_cache.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/_cached_py_info.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/_compat.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/_py_info.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/_py_info_collect.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/_py_spec.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/_specifier.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/_windows/__init__.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/_windows/_cancel_io.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/_windows/_pep514.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/_windows/_propose.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/src/python_discovery/py.typed +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tasks/old_target_check.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tasks/old_target_check.sh +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/conftest.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/py_info/test_py_info.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/py_info/test_py_info_exe_based_of.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/test_cache.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/test_cache_recovery.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/test_cached_py_info.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/test_discovery_extra.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/test_iter_interpreters.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/test_py_info_collect.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/test_py_info_extra.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/test_py_spec.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/test_py_spec_extra.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/test_query_timeout.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/test_specifier.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/windows/conftest.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/windows/test_windows.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/windows/test_windows_pep514.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tests/windows/winreg_mock_values.py +0 -0
- {python_discovery-1.9.2 → python_discovery-1.9.4}/tox.toml +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
name: 🧪 check
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
push:
|
|
5
|
+
branches: ["main"]
|
|
6
|
+
tags-ignore: ["**"]
|
|
7
|
+
pull_request:
|
|
8
|
+
types: [opened, synchronize, reopened]
|
|
9
|
+
schedule:
|
|
10
|
+
- cron: "0 8 * * *"
|
|
11
|
+
concurrency:
|
|
12
|
+
group: check-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
jobs:
|
|
17
|
+
test:
|
|
18
|
+
name: 🧪 Test
|
|
19
|
+
uses: tox-dev/github-workflows/.github/workflows/check.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
|
|
20
|
+
permissions:
|
|
21
|
+
contents: read
|
|
22
|
+
with:
|
|
23
|
+
include: |
|
|
24
|
+
[
|
|
25
|
+
{"env": "3.15"},
|
|
26
|
+
{"env": "3.15t", "python": "3.15t"},
|
|
27
|
+
{"env": "3.14", "python": "3.14"},
|
|
28
|
+
{"env": "3.13", "python": "3.13"},
|
|
29
|
+
{"env": "3.12", "python": "3.12"},
|
|
30
|
+
{"env": "3.11", "python": "3.11"},
|
|
31
|
+
{"env": "3.10", "python": "3.10"},
|
|
32
|
+
{"env": "3.9", "python": "3.9"},
|
|
33
|
+
{"env": "type-3.9"},
|
|
34
|
+
{"env": "type-3.15"},
|
|
35
|
+
{"env": "dev"},
|
|
36
|
+
{"env": "pkg_meta"}
|
|
37
|
+
]
|
|
38
|
+
old-target:
|
|
39
|
+
name: 🧪 Test on old target
|
|
40
|
+
runs-on: ubuntu-26.04
|
|
41
|
+
steps:
|
|
42
|
+
- name: 📥 Check out code
|
|
43
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
44
|
+
with:
|
|
45
|
+
fetch-depth: 0
|
|
46
|
+
persist-credentials: false
|
|
47
|
+
- name: 🐍 Install uv
|
|
48
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
49
|
+
with:
|
|
50
|
+
version: latest-known
|
|
51
|
+
python-version: "3.15"
|
|
52
|
+
enable-cache: false
|
|
53
|
+
cache-dependency-glob: "pyproject.toml"
|
|
54
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
55
|
+
- name: 🏗️ Build the wheel
|
|
56
|
+
run: uv build --wheel --out-dir dist .
|
|
57
|
+
- parallel:
|
|
58
|
+
- name: 🧪 Discover Python 3.6
|
|
59
|
+
run: tasks/old_target_check.sh 3.6 discover
|
|
60
|
+
- name: 🧪 Discover Python 3.7
|
|
61
|
+
run: tasks/old_target_check.sh 3.7 discover
|
|
62
|
+
- name: 🧪 Reject Python 3.5
|
|
63
|
+
run: tasks/old_target_check.sh 3.5 rejected
|
|
64
|
+
- name: 🧪 Reject Python 2.7
|
|
65
|
+
run: tasks/old_target_check.sh 2.7 rejected
|
|
66
|
+
gate:
|
|
67
|
+
name: 🚦 ${{ github.event_name == 'pull_request' && 'Required checks pass' || 'Non-PR checks pass' }}
|
|
68
|
+
if: ${{ !cancelled() }} # codespell:ignore cancelled
|
|
69
|
+
needs: [test, old-target]
|
|
70
|
+
runs-on: ubuntu-26.04
|
|
71
|
+
permissions: {}
|
|
72
|
+
steps:
|
|
73
|
+
- name: 🚦 Require all needed jobs to pass
|
|
74
|
+
uses: tox-dev/github-workflows/required-checks@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
|
|
75
|
+
with:
|
|
76
|
+
needs: ${{ toJSON(needs) }}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: 🛡️ CodeQL
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
push:
|
|
5
|
+
branches: ["main"]
|
|
6
|
+
pull_request:
|
|
7
|
+
schedule:
|
|
8
|
+
- cron: "0 8 * * 2"
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
permissions: {}
|
|
13
|
+
jobs:
|
|
14
|
+
analyze:
|
|
15
|
+
name: 🛡️ Analyze
|
|
16
|
+
uses: tox-dev/github-workflows/.github/workflows/codeql.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
|
|
17
|
+
permissions:
|
|
18
|
+
contents: read
|
|
19
|
+
security-events: write
|
|
20
|
+
with:
|
|
21
|
+
languages: '["actions","python"]'
|
|
22
|
+
paths-ignore: '["tests"]'
|
|
@@ -16,15 +16,15 @@ jobs:
|
|
|
16
16
|
fetch-depth: 0
|
|
17
17
|
persist-credentials: false
|
|
18
18
|
- name: 🐍 Install uv
|
|
19
|
-
uses: astral-sh/setup-uv@
|
|
19
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
20
20
|
with:
|
|
21
21
|
version: latest-known
|
|
22
22
|
python-version: "3.15"
|
|
23
23
|
enable-cache: false
|
|
24
24
|
- name: 📦 Install locked release tools
|
|
25
|
-
uses: tox-dev/github-workflows/install-locked-tools@
|
|
25
|
+
uses: tox-dev/github-workflows/install-locked-tools@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
|
|
26
26
|
with:
|
|
27
27
|
groups: release-news
|
|
28
28
|
venv: ${{ runner.temp }}/release-tools
|
|
29
29
|
- name: 🔍 Validate news fragments
|
|
30
|
-
uses: tox-dev/github-workflows/validate-news@
|
|
30
|
+
uses: tox-dev/github-workflows/validate-news@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
|
|
@@ -12,7 +12,7 @@ permissions: {}
|
|
|
12
12
|
jobs:
|
|
13
13
|
prepare:
|
|
14
14
|
name: 🏷️ Prepare Towncrier release
|
|
15
|
-
uses: tox-dev/github-workflows/.github/workflows/prepare-towncrier-release.yaml@
|
|
15
|
+
uses: tox-dev/github-workflows/.github/workflows/prepare-towncrier-release.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
|
|
16
16
|
permissions:
|
|
17
17
|
contents: read
|
|
18
18
|
pull-requests: read
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: 🚀 Release to PyPI
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags: ["*"]
|
|
5
|
+
permissions:
|
|
6
|
+
contents: read
|
|
7
|
+
concurrency:
|
|
8
|
+
group: release-${{ github.ref }}
|
|
9
|
+
cancel-in-progress: false
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
name: 🏗️ Build
|
|
13
|
+
uses: tox-dev/github-workflows/.github/workflows/validate-python-release.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
notes:
|
|
17
|
+
name: 📝 Render GitHub Release notes
|
|
18
|
+
uses: tox-dev/github-workflows/.github/workflows/release-notes.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
|
|
19
|
+
permissions:
|
|
20
|
+
contents: read
|
|
21
|
+
with:
|
|
22
|
+
tag: ${{ github.ref_name }}
|
|
23
|
+
changelog: docs/changelog.rst
|
|
24
|
+
artifact-url: https://pypi.org/project/python-discovery/${{ github.ref_name }}/
|
|
25
|
+
release:
|
|
26
|
+
name: 🚀 Publish to PyPI
|
|
27
|
+
needs: [build, notes]
|
|
28
|
+
runs-on: ubuntu-26.04
|
|
29
|
+
environment:
|
|
30
|
+
name: release
|
|
31
|
+
url: https://pypi.org/project/python-discovery/${{ github.ref_name }}
|
|
32
|
+
permissions:
|
|
33
|
+
id-token: write
|
|
34
|
+
steps:
|
|
35
|
+
- name: 📩 Download distributions
|
|
36
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
37
|
+
with:
|
|
38
|
+
artifact-ids: ${{ needs.build.outputs.distributions-artifact-id }}
|
|
39
|
+
path: dist/
|
|
40
|
+
- name: 🚀 Publish to PyPI
|
|
41
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
42
|
+
with:
|
|
43
|
+
packages-dir: dist
|
|
44
|
+
github-release:
|
|
45
|
+
name: 🚀 Publish GitHub Release
|
|
46
|
+
needs: [build, notes, release]
|
|
47
|
+
uses: tox-dev/github-workflows/.github/workflows/github-release.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
|
|
48
|
+
permissions:
|
|
49
|
+
contents: write
|
|
50
|
+
with:
|
|
51
|
+
project: python-discovery
|
|
52
|
+
version: ${{ github.ref_name }}
|
|
53
|
+
tag: ${{ github.ref_name }}
|
|
54
|
+
artifact-pattern: python-package-distributions
|
|
55
|
+
notes-artifact-id: ${{ needs.notes.outputs.artifact-id }}
|
|
56
|
+
title-prefix: v
|
|
@@ -23,4 +23,4 @@ jobs:
|
|
|
23
23
|
pull-requests: read # read reviews for the Code-Review check
|
|
24
24
|
security-events: write # upload the SARIF results to code scanning
|
|
25
25
|
statuses: read # read commit statuses for the CI-Tests check
|
|
26
|
-
uses: tox-dev/github-workflows/.github/workflows/scorecard.yaml@
|
|
26
|
+
uses: tox-dev/github-workflows/.github/workflows/scorecard.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
|
{python_discovery-1.9.2 → python_discovery-1.9.4}/.github/workflows/upgrade-release-tools.yaml
RENAMED
|
@@ -10,7 +10,7 @@ concurrency:
|
|
|
10
10
|
jobs:
|
|
11
11
|
upgrade:
|
|
12
12
|
name: 🔀 Upgrade release tools
|
|
13
|
-
uses: tox-dev/github-workflows/.github/workflows/upgrade-release-tools.yaml@
|
|
13
|
+
uses: tox-dev/github-workflows/.github/workflows/upgrade-release-tools.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
|
|
14
14
|
permissions:
|
|
15
15
|
contents: read
|
|
16
16
|
secrets:
|
|
@@ -9,7 +9,7 @@ repos:
|
|
|
9
9
|
- id: end-of-file-fixer
|
|
10
10
|
- id: trailing-whitespace
|
|
11
11
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
12
|
-
rev:
|
|
12
|
+
rev: a76b92851fc9eede9f9bc4073eb55202f34eb0df # frozen: 0.39.0
|
|
13
13
|
hooks:
|
|
14
14
|
- id: check-github-workflows
|
|
15
15
|
args: ["--verbose"]
|
|
@@ -22,7 +22,7 @@ repos:
|
|
|
22
22
|
hooks:
|
|
23
23
|
- id: pyproject-fmt
|
|
24
24
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
25
|
-
rev: "
|
|
25
|
+
rev: "25bcf95026b96e2dd3c0aec3090c3d6ef6ca2e6c" # frozen: v0.17.3
|
|
26
26
|
hooks:
|
|
27
27
|
- id: ruff-format
|
|
28
28
|
- id: ruff
|
|
@@ -57,7 +57,7 @@ repos:
|
|
|
57
57
|
^docs/changelog[.]rst$ # Only the generated release history.
|
|
58
58
|
args: ["-l", "120", "--preserve-adornments"]
|
|
59
59
|
additional_dependencies:
|
|
60
|
-
- "sphinx==9.
|
|
60
|
+
- "sphinx==9.2.0"
|
|
61
61
|
- repo: https://github.com/zizmorcore/zizmor-pre-commit
|
|
62
62
|
rev: c92afdf2c6ca336aaa8f39e2bd8d48f62dbd8e1f # frozen: v1.31.1
|
|
63
63
|
hooks:
|
|
@@ -6,6 +6,26 @@
|
|
|
6
6
|
|
|
7
7
|
.. towncrier release notes start
|
|
8
8
|
|
|
9
|
+
.. _release-1-9-4:
|
|
10
|
+
|
|
11
|
+
*********************
|
|
12
|
+
v1.9.4 (2026-11-04)
|
|
13
|
+
*********************
|
|
14
|
+
|
|
15
|
+
.. _release-1-9-3:
|
|
16
|
+
|
|
17
|
+
*********************
|
|
18
|
+
v1.9.3 (2026-11-03)
|
|
19
|
+
*********************
|
|
20
|
+
|
|
21
|
+
.. _release-1-9-3-fixed:
|
|
22
|
+
|
|
23
|
+
Fixed
|
|
24
|
+
-----
|
|
25
|
+
|
|
26
|
+
- Reject generic Python executables when a requested implementation is unavailable (:pr:`239`) by :user:`gaborbernat`.
|
|
27
|
+
(:issue:`238`)
|
|
28
|
+
|
|
9
29
|
.. _release-1-9-2:
|
|
10
30
|
|
|
11
31
|
*********************
|