Skip to content

Commit c4b78e6

Browse files
committed
Merge tag '8.1.8'
release version 8.1.8
2 parents 67c2b0f + 934813e commit c4b78e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1383
-1076
lines changed

.devcontainer/devcontainer.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "pallets/click",
3+
"image": "mcr.microsoft.com/devcontainers/python:3",
4+
"customizations": {
5+
"vscode": {
6+
"settings": {
7+
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
8+
"python.terminal.activateEnvInCurrentTerminal": true,
9+
"python.terminal.launchArgs": [
10+
"-X",
11+
"dev"
12+
]
13+
}
14+
}
15+
},
16+
"onCreateCommand": ".devcontainer/on-create-command.sh"
17+
}

.devcontainer/on-create-command.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
set -e
3+
python3 -m venv --upgrade-deps .venv
4+
. .venv/bin/activate
5+
pip install -r requirements/dev.txt
6+
pip install -e .
7+
pre-commit install --install-hooks

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ end_of_line = lf
99
charset = utf-8
1010
max_line_length = 88
1111

12-
[*.{yml,yaml,json,js,css,html}]
12+
[*.{css,html,js,json,jsx,scss,ts,tsx,yaml,yml}]
1313
indent_size = 2

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ about: Report a bug in Click (not other projects which depend on Click)
55

66
<!--
77
This issue tracker is a tool to address bugs in Click itself. Please use
8-
Pallets Discord or Stack Overflow for questions about your own code.
8+
GitHub Discussions or the Pallets Discord for questions about your own code.
99
1010
Replace this comment with a clear outline of what the bug is.
1111
-->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Security issue
4-
url: security@palletsprojects.com
5-
about: Do not report security issues publicly. Email our security contact.
6-
- name: Questions
7-
url: https://stackoverflow.com/questions/tagged/python-click?tab=Frequent
8-
about: Search for and ask questions about your code on Stack Overflow.
9-
- name: Questions and discussions
3+
- name: Questions on Discussions
4+
url: https://github.com/pallets/click/discussions/
5+
about: Ask questions about your own code on the Discussions tab.
6+
- name: Questions on Chat
107
url: https://discord.gg/pallets
11-
about: Discuss questions about your code on our Discord chat.
8+
about: Ask questions about your own code on our Discord chat.

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ about: Suggest a new feature for Click
55

66
<!--
77
Replace this comment with a description of what the feature should do.
8-
Include details such as links relevant specs or previous discussions.
8+
Include details such as links to relevant specs or previous discussions.
99
-->
1010

1111
<!--
1212
Replace this comment with an example of the problem which this feature
13-
would resolve. Is this problem solvable without changes to Click,
14-
such as by subclassing or using an extension?
13+
would resolve. Is this problem solvable without changes to Click, such
14+
as by subclassing or using an extension?
1515
-->

.github/dependabot.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!--
22
Before opening a PR, open a ticket describing the issue or feature the
3-
PR will address. Follow the steps in CONTRIBUTING.rst.
3+
PR will address. An issue is not required for fixing typos in
4+
documentation, or other simple non-code changes.
45
56
Replace this comment with a description of the change. Describe how it
67
addresses the linked ticket.
@@ -9,22 +10,16 @@ addresses the linked ticket.
910
<!--
1011
Link to relevant issues or previous PRs, one per line. Use "fixes" to
1112
automatically close an issue.
12-
-->
1313
14-
- fixes #<issue number>
14+
fixes #<issue number>
15+
-->
1516

1617
<!--
17-
Ensure each step in CONTRIBUTING.rst is complete by adding an "x" to
18-
each box below.
18+
Ensure each step in CONTRIBUTING.rst is complete, especially the following:
1919
20-
If only docs were changed, these aren't relevant and can be removed.
20+
- Add tests that demonstrate the correct behavior of the change. Tests
21+
should fail without the change.
22+
- Add or update relevant docs, in the docs folder and in code.
23+
- Add an entry in CHANGES.rst summarizing the change and linking to the issue.
24+
- Add `.. versionchanged::` entries in any relevant code docs.
2125
-->
22-
23-
Checklist:
24-
25-
- [ ] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
26-
- [ ] Add or update relevant docs, in the docs folder and in code.
27-
- [ ] Add an entry in `CHANGES.rst` summarizing the change and linking to the issue.
28-
- [ ] Add `.. versionchanged::` entries in any relevant code docs.
29-
- [ ] Run `pre-commit` hooks and fix any issues.
30-
- [ ] Run `pytest` and `tox`, no tests failed.

.github/workflows/lock.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1-
name: 'Lock threads'
2-
# Lock closed issues that have not received any further activity for
3-
# two weeks. This does not close open issues, only humans may do that.
4-
# We find that it is easier to respond to new issues with fresh examples
5-
# rather than continuing discussions on old issues.
1+
name: Lock inactive closed issues
2+
# Lock closed issues that have not received any further activity for two weeks.
3+
# This does not close open issues, only humans may do that. It is easier to
4+
# respond to new issues with fresh examples rather than continuing discussions
5+
# on old issues.
66

77
on:
88
schedule:
99
- cron: '0 0 * * *'
10-
1110
permissions:
1211
issues: write
1312
pull-requests: write
14-
1513
concurrency:
1614
group: lock
17-
1815
jobs:
1916
lock:
2017
runs-on: ubuntu-latest
2118
steps:
22-
- uses: dessant/lock-threads@c1b35aecc5cdb1a34539d14196df55838bb2f836
19+
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
2320
with:
2421
issue-inactive-days: 14
2522
pr-inactive-days: 14
23+
discussion-inactive-days: 14

.github/workflows/publish.yaml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
outputs:
1010
hash: ${{ steps.hash.outputs.hash }}
1111
steps:
12-
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
13-
- uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435
12+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
1414
with:
1515
python-version: '3.x'
16-
cache: 'pip'
17-
cache-dependency-path: 'requirements/*.txt'
16+
cache: pip
17+
cache-dependency-path: requirements*/*.txt
1818
- run: pip install -r requirements/build.txt
1919
# Use the commit date instead of the current date during the build.
2020
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
@@ -23,28 +23,28 @@ jobs:
2323
- name: generate hash
2424
id: hash
2525
run: cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
26-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
26+
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
2727
with:
2828
path: ./dist
2929
provenance:
30-
needs: ['build']
30+
needs: [build]
3131
permissions:
3232
actions: read
3333
id-token: write
3434
contents: write
3535
# Can't pin with hash due to how this workflow works.
36-
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.7.0
36+
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
3737
with:
3838
base64-subjects: ${{ needs.build.outputs.hash }}
3939
create-release:
4040
# Upload the sdist, wheels, and provenance to a GitHub release. They remain
4141
# available as build artifacts for a while as well.
42-
needs: ['provenance']
42+
needs: [provenance]
4343
runs-on: ubuntu-latest
4444
permissions:
4545
contents: write
4646
steps:
47-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
47+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
4848
- name: create release
4949
run: >
5050
gh release create --draft --repo ${{ github.repository }}
@@ -53,20 +53,17 @@ jobs:
5353
env:
5454
GH_TOKEN: ${{ github.token }}
5555
publish-pypi:
56-
needs: ['provenance']
56+
needs: [provenance]
5757
# Wait for approval before attempting to upload to PyPI. This allows reviewing the
5858
# files in the draft release.
59-
environment: 'publish'
59+
environment:
60+
name: publish
61+
url: https://pypi.org/project/click/${{ github.ref_name }}
6062
runs-on: ubuntu-latest
6163
permissions:
6264
id-token: write
6365
steps:
64-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
65-
# Try uploading to Test PyPI first, in case something fails.
66-
- uses: pypa/gh-action-pypi-publish@29930c9cf57955dc1b98162d0d8bc3ec80d9e75c
67-
with:
68-
repository-url: https://test.pypi.org/legacy/
69-
packages-dir: artifact/
70-
- uses: pypa/gh-action-pypi-publish@29930c9cf57955dc1b98162d0d8bc3ec80d9e75c
66+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
67+
- uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # v1.12.2
7168
with:
7269
packages-dir: artifact/

0 commit comments

Comments
 (0)