python-discovery 1.6.4__tar.gz → 1.6.6__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.6.6/.github/dependabot.yaml +30 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/.github/release.yaml +1 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/.github/workflows/check.yaml +30 -43
- python_discovery-1.6.6/.github/workflows/codeql.yaml +41 -0
- python_discovery-1.6.6/.github/workflows/news.yaml +32 -0
- python_discovery-1.6.6/.github/workflows/prepare-release.yaml +23 -0
- python_discovery-1.6.6/.github/workflows/release.yaml +117 -0
- python_discovery-1.6.6/.github/workflows/upgrade-release-tools.yaml +22 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/.gitignore +1 -0
- python_discovery-1.6.6/.pre-commit-config.yaml +68 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/PKG-INFO +4 -21
- {python_discovery-1.6.4 → python_discovery-1.6.6}/docs/changelog/template.jinja2 +10 -13
- python_discovery-1.6.6/docs/changelog.rst +448 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/docs/conf.py +2 -0
- python_discovery-1.6.6/docs/contributing.rst +22 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/docs/explanation.rst +4 -1
- {python_discovery-1.6.4 → python_discovery-1.6.6}/docs/index.rst +1 -0
- python_discovery-1.6.6/pylock.toml +2539 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/pyproject.toml +59 -16
- {python_discovery-1.6.4 → python_discovery-1.6.6}/src/python_discovery/_discovery.py +2 -1
- {python_discovery-1.6.4 → python_discovery-1.6.6}/src/python_discovery/_py_info.py +2 -1
- {python_discovery-1.6.4 → python_discovery-1.6.6}/src/python_discovery/_py_spec.py +5 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/src/python_discovery/_specifier.py +4 -6
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/test_discovery.py +20 -1
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/test_iter_interpreters.py +27 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/test_py_info_extra.py +10 -1
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/test_py_spec.py +21 -1
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/test_specifier.py +8 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tox.toml +1 -8
- python_discovery-1.6.4/.github/dependabot.yaml +0 -17
- python_discovery-1.6.4/.github/workflows/prepare-release.yaml +0 -156
- python_discovery-1.6.4/.github/workflows/release.yaml +0 -105
- python_discovery-1.6.4/.pre-commit-config.yaml +0 -49
- python_discovery-1.6.4/docs/changelog.rst +0 -291
- python_discovery-1.6.4/tasks/release.py +0 -82
- {python_discovery-1.6.4 → python_discovery-1.6.6}/.github/FUNDING.yaml +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/.github/SECURITY.md +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/.readthedocs.yaml +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/.readthedocs.yml +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/CODE_OF_CONDUCT.md +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/LICENSE +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/README.md +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/docs/_static/custom.css +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/docs/_static/logo.svg +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/docs/how-to/standalone-usage.rst +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/docs/reference/api.rst +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/docs/reference/environment-variables.rst +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/docs/tutorial/getting-started.rst +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/src/python_discovery/__init__.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/src/python_discovery/_cache.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/src/python_discovery/_cached_py_info.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/src/python_discovery/_compat.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/src/python_discovery/_py_info_collect.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/src/python_discovery/_windows/__init__.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/src/python_discovery/_windows/_pep514.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/src/python_discovery/_windows/_propose.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/src/python_discovery/py.typed +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tasks/old_target_check.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tasks/old_target_check.sh +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/conftest.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/py_info/test_py_info.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/py_info/test_py_info_exe_based_of.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/test_cache.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/test_cache_recovery.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/test_cached_py_info.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/test_discovery_extra.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/test_py_info_collect.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/test_py_spec_extra.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/test_query_timeout.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/windows/conftest.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/windows/test_windows.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/windows/test_windows_pep514.py +0 -0
- {python_discovery-1.6.4 → python_discovery-1.6.6}/tests/windows/winreg_mock_values.py +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
multi-ecosystem-groups:
|
|
3
|
+
dependencies:
|
|
4
|
+
schedule:
|
|
5
|
+
interval: weekly
|
|
6
|
+
day: tuesday
|
|
7
|
+
labels:
|
|
8
|
+
- dependencies
|
|
9
|
+
- skip news
|
|
10
|
+
updates:
|
|
11
|
+
- package-ecosystem: github-actions
|
|
12
|
+
directory: /
|
|
13
|
+
patterns:
|
|
14
|
+
- '*'
|
|
15
|
+
multi-ecosystem-group: dependencies
|
|
16
|
+
labels:
|
|
17
|
+
- dependencies
|
|
18
|
+
- skip news
|
|
19
|
+
cooldown:
|
|
20
|
+
default-days: 7
|
|
21
|
+
- package-ecosystem: pre-commit
|
|
22
|
+
directory: /
|
|
23
|
+
patterns:
|
|
24
|
+
- '*'
|
|
25
|
+
multi-ecosystem-group: dependencies
|
|
26
|
+
labels:
|
|
27
|
+
- dependencies
|
|
28
|
+
- skip news
|
|
29
|
+
cooldown:
|
|
30
|
+
default-days: 7
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
name: check
|
|
1
|
+
name: 🧪 check
|
|
2
2
|
on:
|
|
3
3
|
workflow_dispatch:
|
|
4
4
|
push:
|
|
5
5
|
branches: ["main"]
|
|
6
6
|
tags-ignore: ["**"]
|
|
7
7
|
pull_request:
|
|
8
|
-
types: [opened, synchronize, reopened
|
|
8
|
+
types: [opened, synchronize, reopened]
|
|
9
9
|
schedule:
|
|
10
10
|
- cron: "0 8 * * *"
|
|
11
11
|
concurrency:
|
|
@@ -15,6 +15,7 @@ permissions:
|
|
|
15
15
|
contents: read
|
|
16
16
|
jobs:
|
|
17
17
|
test:
|
|
18
|
+
name: 🧪 Test
|
|
18
19
|
runs-on: ubuntu-26.04
|
|
19
20
|
strategy:
|
|
20
21
|
fail-fast: false
|
|
@@ -33,80 +34,66 @@ jobs:
|
|
|
33
34
|
- dev
|
|
34
35
|
- pkg_meta
|
|
35
36
|
steps:
|
|
36
|
-
-
|
|
37
|
+
- name: 📥 Check out code
|
|
38
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
37
39
|
with:
|
|
38
40
|
fetch-depth: 0
|
|
39
41
|
persist-credentials: false
|
|
40
|
-
- name: Install
|
|
41
|
-
uses: astral-sh/setup-uv@
|
|
42
|
+
- name: 🐍 Install uv
|
|
43
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
42
44
|
with:
|
|
45
|
+
version: latest-known
|
|
43
46
|
python-version: "3.15"
|
|
44
47
|
enable-cache: false
|
|
45
48
|
cache-dependency-glob: "pyproject.toml"
|
|
46
49
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
47
|
-
- name: Install tox
|
|
50
|
+
- name: 📦 Install tox
|
|
48
51
|
run: uv tool install --python-preference only-managed --python 3.15 tox --with tox-uv
|
|
49
|
-
- name: Install Python
|
|
52
|
+
- name: 🐍 Install Python
|
|
50
53
|
if: startsWith(matrix.env, '3.') && matrix.env != '3.15'
|
|
51
54
|
run: uv python install --python-preference only-managed ${{ matrix.env }}
|
|
52
|
-
- name:
|
|
55
|
+
- name: 📦 Set up test suite
|
|
53
56
|
run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }}
|
|
54
|
-
- name: Run test suite
|
|
57
|
+
- name: 🧪 Run test suite
|
|
55
58
|
run: tox run --skip-pkg-install -e ${{ matrix.env }}
|
|
56
59
|
env:
|
|
57
60
|
PYTEST_ADDOPTS: "-vv --durations=20"
|
|
58
61
|
DIFF_AGAINST: HEAD
|
|
59
62
|
old-target:
|
|
63
|
+
name: 🧪 Test on old target
|
|
60
64
|
runs-on: ubuntu-26.04
|
|
61
65
|
steps:
|
|
62
|
-
-
|
|
66
|
+
- name: 📥 Check out code
|
|
67
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
63
68
|
with:
|
|
64
69
|
fetch-depth: 0
|
|
65
70
|
persist-credentials: false
|
|
66
|
-
- name: Install
|
|
67
|
-
uses: astral-sh/setup-uv@
|
|
71
|
+
- name: 🐍 Install uv
|
|
72
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
68
73
|
with:
|
|
74
|
+
version: latest-known
|
|
69
75
|
python-version: "3.15"
|
|
70
76
|
enable-cache: false
|
|
71
77
|
cache-dependency-glob: "pyproject.toml"
|
|
72
78
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
73
|
-
- name: Build the wheel
|
|
79
|
+
- name: 🏗️ Build the wheel
|
|
74
80
|
run: uv build --wheel --out-dir dist .
|
|
75
81
|
- parallel:
|
|
76
|
-
- name: Discover Python 3.6
|
|
82
|
+
- name: 🧪 Discover Python 3.6
|
|
77
83
|
run: tasks/old_target_check.sh 3.6 discover
|
|
78
|
-
- name: Discover Python 3.7
|
|
84
|
+
- name: 🧪 Discover Python 3.7
|
|
79
85
|
run: tasks/old_target_check.sh 3.7 discover
|
|
80
|
-
- name: Reject Python 3.5
|
|
86
|
+
- name: 🧪 Reject Python 3.5
|
|
81
87
|
run: tasks/old_target_check.sh 3.5 rejected
|
|
82
|
-
- name: Reject Python 2.7
|
|
88
|
+
- name: 🧪 Reject Python 2.7
|
|
83
89
|
run: tasks/old_target_check.sh 2.7 rejected
|
|
84
|
-
changelog:
|
|
85
|
-
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip news')
|
|
86
|
-
runs-on: ubuntu-24.04
|
|
87
|
-
steps:
|
|
88
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
89
|
-
with:
|
|
90
|
-
fetch-depth: 0
|
|
91
|
-
persist-credentials: false
|
|
92
|
-
- uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
|
|
93
|
-
with:
|
|
94
|
-
python-version: "3.15"
|
|
95
|
-
enable-cache: false
|
|
96
|
-
- run: uvx towncrier check --compare-with "origin/${GITHUB_BASE_REF}"
|
|
97
90
|
gate:
|
|
98
|
-
name: Required checks pass
|
|
99
|
-
if:
|
|
100
|
-
needs: [test, old-target
|
|
101
|
-
runs-on: ubuntu-
|
|
91
|
+
name: 🚦 ${{ github.event_name == 'pull_request' && 'Required checks pass' || 'Non-PR checks pass' }}
|
|
92
|
+
if: ${{ !cancelled() }} # codespell:ignore cancelled
|
|
93
|
+
needs: [test, old-target]
|
|
94
|
+
runs-on: ubuntu-26.04
|
|
102
95
|
steps:
|
|
103
|
-
-
|
|
96
|
+
- name: 🚦 Require all needed jobs to pass
|
|
97
|
+
env:
|
|
104
98
|
NEEDS_JSON: ${{ toJSON(needs) }}
|
|
105
|
-
run:
|
|
106
|
-
jq -e '
|
|
107
|
-
all(
|
|
108
|
-
to_entries[];
|
|
109
|
-
.value.result == "success" or
|
|
110
|
-
(.key == "changelog" and .value.result == "skipped")
|
|
111
|
-
)
|
|
112
|
-
' <<< "$NEEDS_JSON"
|
|
99
|
+
run: jq -e 'all(to_entries[]; .value.result == "success")' <<<"$NEEDS_JSON"
|
|
@@ -0,0 +1,41 @@
|
|
|
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 ${{ matrix.language }}
|
|
16
|
+
runs-on: ubuntu-26.04
|
|
17
|
+
permissions:
|
|
18
|
+
contents: read
|
|
19
|
+
security-events: write
|
|
20
|
+
strategy:
|
|
21
|
+
fail-fast: false
|
|
22
|
+
matrix:
|
|
23
|
+
language: [actions, python]
|
|
24
|
+
steps:
|
|
25
|
+
- name: 📥 Check out code
|
|
26
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
27
|
+
with:
|
|
28
|
+
persist-credentials: false
|
|
29
|
+
- name: 🛡️ Initialize CodeQL
|
|
30
|
+
uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
|
|
31
|
+
with:
|
|
32
|
+
languages: ${{ matrix.language }}
|
|
33
|
+
build-mode: none
|
|
34
|
+
queries: security-extended
|
|
35
|
+
config: |
|
|
36
|
+
paths-ignore:
|
|
37
|
+
- tests
|
|
38
|
+
- name: 🛡️ Analyze
|
|
39
|
+
uses: github/codeql-action/analyze@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
|
|
40
|
+
with:
|
|
41
|
+
category: "/language:${{ matrix.language }}"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: 📝 Changelog
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
types: [opened, reopened, synchronize, labeled, unlabeled]
|
|
5
|
+
concurrency:
|
|
6
|
+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
|
7
|
+
cancel-in-progress: true
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
jobs:
|
|
11
|
+
changelog:
|
|
12
|
+
name: 📝 News fragment
|
|
13
|
+
runs-on: ubuntu-26.04
|
|
14
|
+
steps:
|
|
15
|
+
- name: 📥 Check out code
|
|
16
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
17
|
+
with:
|
|
18
|
+
fetch-depth: 0
|
|
19
|
+
persist-credentials: false
|
|
20
|
+
- name: 🐍 Install uv
|
|
21
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
22
|
+
with:
|
|
23
|
+
version: latest-known
|
|
24
|
+
python-version: "3.15"
|
|
25
|
+
enable-cache: false
|
|
26
|
+
- name: 📦 Install locked release tools
|
|
27
|
+
uses: tox-dev/github-workflows/install-locked-tools@259a3d3fb578d00517ffb73341fdd463259b0b2f # 6.0.1
|
|
28
|
+
with:
|
|
29
|
+
groups: release-news
|
|
30
|
+
venv: ${{ runner.temp }}/release-tools
|
|
31
|
+
- name: 🔍 Validate news fragments
|
|
32
|
+
uses: tox-dev/github-workflows/validate-news@259a3d3fb578d00517ffb73341fdd463259b0b2f # 6.0.1
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: 🏷️ Prepare release
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
inputs:
|
|
5
|
+
bump:
|
|
6
|
+
description: Version bump type
|
|
7
|
+
required: true
|
|
8
|
+
type: choice
|
|
9
|
+
options: [auto, major, minor, patch]
|
|
10
|
+
default: auto
|
|
11
|
+
permissions: {}
|
|
12
|
+
jobs:
|
|
13
|
+
prepare:
|
|
14
|
+
name: 🏷️ Prepare Towncrier release
|
|
15
|
+
uses: tox-dev/github-workflows/.github/workflows/prepare-towncrier-release.yaml@259a3d3fb578d00517ffb73341fdd463259b0b2f # 6.0.1
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
pull-requests: read
|
|
19
|
+
with:
|
|
20
|
+
bump: ${{ inputs.bump }}
|
|
21
|
+
annotated: true
|
|
22
|
+
secrets:
|
|
23
|
+
RELEASE_APP_PRIVATE_KEY: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
|
|
@@ -0,0 +1,117 @@
|
|
|
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@259a3d3fb578d00517ffb73341fdd463259b0b2f # 6.0.1
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
notes:
|
|
17
|
+
name: 📝 Render GitHub Release notes
|
|
18
|
+
runs-on: ubuntu-26.04
|
|
19
|
+
permissions:
|
|
20
|
+
contents: read
|
|
21
|
+
outputs:
|
|
22
|
+
artifact-id: ${{ steps.upload.outputs.artifact-id }}
|
|
23
|
+
steps:
|
|
24
|
+
- name: 📥 Check out code
|
|
25
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
26
|
+
with:
|
|
27
|
+
fetch-depth: 0
|
|
28
|
+
persist-credentials: false
|
|
29
|
+
- name: 🐍 Install uv
|
|
30
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
31
|
+
with:
|
|
32
|
+
version: latest-known
|
|
33
|
+
python-version: "3.15"
|
|
34
|
+
enable-cache: false
|
|
35
|
+
- name: 📦 Install locked release tools
|
|
36
|
+
uses: tox-dev/github-workflows/install-locked-tools@259a3d3fb578d00517ffb73341fdd463259b0b2f # 6.0.1
|
|
37
|
+
with:
|
|
38
|
+
groups: release-notes
|
|
39
|
+
venv: ${{ runner.temp }}/release-tools
|
|
40
|
+
- name: 🏷️ Select previous tag
|
|
41
|
+
id: previous
|
|
42
|
+
uses: tox-dev/github-workflows/select-previous-tag@259a3d3fb578d00517ffb73341fdd463259b0b2f # 6.0.1
|
|
43
|
+
with:
|
|
44
|
+
tag: ${{ github.ref_name }}
|
|
45
|
+
- name: 📝 Render release notes
|
|
46
|
+
uses: tox-dev/github-workflows/render-release-notes@259a3d3fb578d00517ffb73341fdd463259b0b2f # 6.0.1
|
|
47
|
+
with:
|
|
48
|
+
tag: ${{ github.ref_name }}
|
|
49
|
+
previous: ${{ steps.previous.outputs.previous }}
|
|
50
|
+
changelog: docs/changelog.rst
|
|
51
|
+
artifact-url: https://pypi.org/project/python-discovery/${{ github.ref_name }}/
|
|
52
|
+
- name: 📤 Upload release notes
|
|
53
|
+
id: upload
|
|
54
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
55
|
+
with:
|
|
56
|
+
name: release-notes
|
|
57
|
+
path: ${{ runner.temp }}/release-notes.md
|
|
58
|
+
if-no-files-found: error
|
|
59
|
+
release:
|
|
60
|
+
name: 🚀 Publish to PyPI
|
|
61
|
+
needs: [build, notes]
|
|
62
|
+
runs-on: ubuntu-26.04
|
|
63
|
+
environment:
|
|
64
|
+
name: release
|
|
65
|
+
url: https://pypi.org/project/python-discovery/${{ github.ref_name }}
|
|
66
|
+
permissions:
|
|
67
|
+
id-token: write
|
|
68
|
+
steps:
|
|
69
|
+
- name: 📩 Download distributions
|
|
70
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
71
|
+
with:
|
|
72
|
+
artifact-ids: ${{ needs.build.outputs.distributions-artifact-id }}
|
|
73
|
+
path: dist/
|
|
74
|
+
- name: 🚀 Publish to PyPI
|
|
75
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
76
|
+
with:
|
|
77
|
+
packages-dir: dist
|
|
78
|
+
github-release:
|
|
79
|
+
name: 🚀 Publish GitHub Release
|
|
80
|
+
needs: [build, notes, release]
|
|
81
|
+
runs-on: ubuntu-26.04
|
|
82
|
+
environment: release
|
|
83
|
+
permissions:
|
|
84
|
+
contents: write
|
|
85
|
+
steps:
|
|
86
|
+
- name: 🐍 Install uv
|
|
87
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
88
|
+
with:
|
|
89
|
+
version: latest-known
|
|
90
|
+
python-version: "3.15"
|
|
91
|
+
enable-cache: false
|
|
92
|
+
ignore-empty-workdir: true
|
|
93
|
+
- name: 📩 Download distributions
|
|
94
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
95
|
+
with:
|
|
96
|
+
artifact-ids: ${{ needs.build.outputs.distributions-artifact-id }}
|
|
97
|
+
path: dist/
|
|
98
|
+
- name: 📩 Download release notes
|
|
99
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
100
|
+
with:
|
|
101
|
+
artifact-ids: ${{ needs.notes.outputs.artifact-id }}
|
|
102
|
+
path: ${{ runner.temp }}
|
|
103
|
+
- name: 🔍 Verify PyPI artifacts
|
|
104
|
+
uses: tox-dev/github-workflows/reconcile-pypi-artifacts@259a3d3fb578d00517ffb73341fdd463259b0b2f # 6.0.1
|
|
105
|
+
with:
|
|
106
|
+
project: python-discovery
|
|
107
|
+
version: ${{ github.ref_name }}
|
|
108
|
+
dist: dist
|
|
109
|
+
- name: 🚀 Publish GitHub release
|
|
110
|
+
uses: tox-dev/github-workflows/publish-github-release@259a3d3fb578d00517ffb73341fdd463259b0b2f # 6.0.1
|
|
111
|
+
env:
|
|
112
|
+
GH_TOKEN: ${{ github.token }}
|
|
113
|
+
with:
|
|
114
|
+
tag: ${{ github.ref_name }}
|
|
115
|
+
commit: ${{ github.sha }}
|
|
116
|
+
title: v${{ github.ref_name }}
|
|
117
|
+
notes-file: ${{ runner.temp }}/release-notes.md
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: 🔒 Upgrade release tools
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: "0 8 * * 2"
|
|
6
|
+
permissions: {}
|
|
7
|
+
concurrency:
|
|
8
|
+
group: upgrade-release-tools
|
|
9
|
+
cancel-in-progress: false
|
|
10
|
+
jobs:
|
|
11
|
+
upgrade:
|
|
12
|
+
name: 🔀 Upgrade release tools
|
|
13
|
+
uses: tox-dev/github-workflows/.github/workflows/upgrade-release-tools.yaml@259a3d3fb578d00517ffb73341fdd463259b0b2f # 6.0.1
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
secrets:
|
|
17
|
+
RELEASE_APP_PRIVATE_KEY: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
|
|
18
|
+
with:
|
|
19
|
+
commit-message: "build(deps): refresh release lock"
|
|
20
|
+
pull-request-title: "build(deps): refresh release tool lock"
|
|
21
|
+
pull-request-body: |-
|
|
22
|
+
Relock `pylock.toml` after the seven-day cutoff.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
ci:
|
|
2
|
+
autoupdate_schedule: quarterly
|
|
3
|
+
default_language_version:
|
|
4
|
+
python: python3.15
|
|
5
|
+
repos:
|
|
6
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
7
|
+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
|
|
8
|
+
hooks:
|
|
9
|
+
- id: end-of-file-fixer
|
|
10
|
+
- id: trailing-whitespace
|
|
11
|
+
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
12
|
+
rev: 0494aa7fa1314e98913a41227d8f0a515b2c1049 # frozen: 0.38.2
|
|
13
|
+
hooks:
|
|
14
|
+
- id: check-github-workflows
|
|
15
|
+
args: ["--verbose"]
|
|
16
|
+
- repo: https://github.com/codespell-project/codespell
|
|
17
|
+
rev: 57b21406f092110c18776e39b0bda50d37c945c8 # frozen: v2.4.3
|
|
18
|
+
hooks:
|
|
19
|
+
- id: codespell
|
|
20
|
+
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
21
|
+
rev: "50e0f3aee9dc5747a5f173f79a7417403c18dda6" # frozen: v2.30.3
|
|
22
|
+
hooks:
|
|
23
|
+
- id: pyproject-fmt
|
|
24
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
25
|
+
rev: "38bfb07c0c64c304f47eb52090f8288150c77730" # frozen: v0.17.1
|
|
26
|
+
hooks:
|
|
27
|
+
- id: ruff-format
|
|
28
|
+
- id: ruff
|
|
29
|
+
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
|
|
30
|
+
- repo: https://github.com/google/yamlfmt
|
|
31
|
+
rev: "21ca5323a9c87ee37a434e0ca908efc0a89daa07" # frozen: v0.21.0
|
|
32
|
+
hooks:
|
|
33
|
+
- id: yamlfmt
|
|
34
|
+
- repo: https://github.com/executablebooks/mdformat
|
|
35
|
+
rev: 82912cdaea4fb830f751504486a7879c70526547 # frozen: 1.0.0
|
|
36
|
+
hooks:
|
|
37
|
+
- id: mdformat
|
|
38
|
+
args: ["--wrap", "120"]
|
|
39
|
+
additional_dependencies:
|
|
40
|
+
- mdformat-gfm==1.0.0
|
|
41
|
+
- mdformat-ruff==0.1.3
|
|
42
|
+
- repo: https://github.com/scop/pre-commit-shfmt
|
|
43
|
+
rev: 479be5958357ba5ab65ce47172117348516860e9 # frozen: v3.14.1-1
|
|
44
|
+
hooks:
|
|
45
|
+
- id: shfmt
|
|
46
|
+
args: ["-i", "2"]
|
|
47
|
+
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
48
|
+
rev: 745eface02aef23e168a8afb6b5737818efbea95 # frozen: v0.11.0.1
|
|
49
|
+
hooks:
|
|
50
|
+
- id: shellcheck
|
|
51
|
+
- repo: https://github.com/LilSpazJoekp/docstrfmt
|
|
52
|
+
rev: c1813841673cdcd6cf602dde1edb78a5d5e45235 # frozen: v2.2.1
|
|
53
|
+
hooks:
|
|
54
|
+
- id: docstrfmt
|
|
55
|
+
files: |
|
|
56
|
+
(?x)
|
|
57
|
+
^docs/changelog[.]rst$ # Only the generated release history.
|
|
58
|
+
args: ["-l", "120", "--preserve-adornments"]
|
|
59
|
+
additional_dependencies:
|
|
60
|
+
- "sphinx==9.1.1"
|
|
61
|
+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
|
|
62
|
+
rev: c92afdf2c6ca336aaa8f39e2bd8d48f62dbd8e1f # frozen: v1.31.1
|
|
63
|
+
hooks:
|
|
64
|
+
- id: zizmor
|
|
65
|
+
- repo: meta
|
|
66
|
+
hooks:
|
|
67
|
+
- id: check-hooks-apply
|
|
68
|
+
- id: check-useless-excludes
|
|
@@ -1,36 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: python-discovery
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.6
|
|
4
|
+
Import-Name: python_discovery
|
|
4
5
|
Summary: Python interpreter discovery
|
|
5
|
-
Project-URL: Changelog, https://github.com/tox-dev/python-discovery/
|
|
6
|
+
Project-URL: Changelog, https://github.com/tox-dev/python-discovery/blob/main/docs/changelog.rst
|
|
6
7
|
Project-URL: Documentation, https://python-discovery.readthedocs.io
|
|
7
8
|
Project-URL: Homepage, https://github.com/tox-dev/python-discovery
|
|
8
9
|
Project-URL: Source, https://github.com/tox-dev/python-discovery
|
|
9
10
|
Project-URL: Tracker, https://github.com/tox-dev/python-discovery/issues
|
|
10
11
|
Maintainer-email: Bernát Gábor <gaborjbernat@gmail.com>
|
|
11
|
-
License:
|
|
12
|
-
copy of this software and associated documentation files (the
|
|
13
|
-
"Software"), to deal in the Software without restriction, including
|
|
14
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
15
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
16
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
17
|
-
the following conditions:
|
|
18
|
-
|
|
19
|
-
The above copyright notice and this permission notice shall be included
|
|
20
|
-
in all copies or substantial portions of the Software.
|
|
21
|
-
|
|
22
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
23
|
-
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
24
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
25
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
26
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
27
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
28
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
12
|
+
License-Expression: MIT
|
|
29
13
|
License-File: LICENSE
|
|
30
14
|
Keywords: discovery,interpreter,python
|
|
31
15
|
Classifier: Development Status :: 5 - Production/Stable
|
|
32
16
|
Classifier: Intended Audience :: Developers
|
|
33
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
34
17
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
35
18
|
Classifier: Operating System :: Microsoft :: Windows
|
|
36
19
|
Classifier: Operating System :: POSIX
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
{% set top_underline = "*" %}
|
|
2
|
-
{% set underline = "
|
|
2
|
+
{% set underline = "-" %}
|
|
3
|
+
.. _release-{{ versiondata.version.replace('.', '-') }}:
|
|
4
|
+
|
|
3
5
|
{% if versiondata.name %}
|
|
4
6
|
{{ top_underline * ((versiondata.version + versiondata.date)|length + 5)}}
|
|
5
7
|
v{{ versiondata.version }} ({{ versiondata.date }})
|
|
@@ -13,26 +15,21 @@
|
|
|
13
15
|
{% for section, _ in sections.items() %}
|
|
14
16
|
{% if sections[section] %}
|
|
15
17
|
{% for category, val in definitions.items() if category in sections[section]%}
|
|
16
|
-
{{ definitions[category]['name']
|
|
17
|
-
|
|
18
|
+
.. _release-{{ versiondata.version.replace('.', '-') }}-{{ definitions[category]['name'].lower().replace(' ', '-') }}:
|
|
19
|
+
|
|
20
|
+
{{ definitions[category]['name'] }}
|
|
21
|
+
{{ underline * definitions[category]['name']|length }}
|
|
18
22
|
{% if definitions[category]['showcontent'] %}
|
|
19
23
|
{% for text, values in sections[section][category].items() %}
|
|
20
|
-
|
|
24
|
+
{% set missing = values | reject("in", text) | reject("in", text | replace(":pr:", ":issue:")) | list %}
|
|
25
|
+
- {{ text }}{% if missing %} ({{ missing|join(', ') }}){% endif %}
|
|
26
|
+
|
|
21
27
|
{% endfor %}
|
|
22
28
|
|
|
23
29
|
{% else %}
|
|
24
30
|
- {{ sections[section][category]['']|join(', ') }}
|
|
25
31
|
|
|
26
|
-
{% endif %}
|
|
27
|
-
{% if sections[section][category]|length == 0 %}
|
|
28
|
-
No significant changes.
|
|
29
|
-
|
|
30
|
-
{% else %}
|
|
31
32
|
{% endif %}
|
|
32
33
|
{% endfor %}
|
|
33
|
-
{% else %}
|
|
34
|
-
No significant changes.
|
|
35
|
-
|
|
36
|
-
|
|
37
34
|
{% endif %}
|
|
38
35
|
{% endfor %}
|