Skip to content

Commit a7fa7e0

Browse files
authored
Merge pull request #143 from Harvester57/master
Add support for Python 3.13
2 parents 7bfae44 + e5fd00e commit a7fa7e0

File tree

5 files changed

+489
-309
lines changed

5 files changed

+489
-309
lines changed

.github/actions/common-setup/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ inputs:
55
python_version:
66
description: "Python version to setup"
77
required: true
8-
default: "3.10"
8+
default: "3.13"
99
runs:
1010
using: "composite"
1111
steps:
1212
- name: Set up Python 🐍
13-
uses: actions/setup-python@v4
13+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
1414
with:
1515
python-version: ${{ inputs.python_version }}
1616

@@ -27,19 +27,19 @@ runs:
2727
shell: bash
2828

2929
- name: Install Poetry
30-
uses: abatilo/actions-poetry@v2
30+
uses: abatilo/actions-poetry@65c61eae400c65c9510a584af85138c1ae19bbc0 # v3.0.2
3131
with:
32-
poetry-version: 1.7.1
32+
poetry-version: 2.1.3
3333

3434
# Cache your dependencies (i.e. all the stuff in your `pyproject.toml`). Note the cache
3535
# key: if you're using multiple Python versions, or multiple OSes, you'd need to include
3636
# them in the cache key. I'm not, so it can be simple and just depend on the poetry.lock.
3737
- name: cache deps
3838
id: cache-deps
39-
uses: actions/cache@v4
39+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
4040
with:
4141
path: ~/.cache/pypoetry
42-
key: pydeps-${{ inputs.python_version }}-$ {{ env.shellos }}-${{ hashFiles('**/poetry.lock') }}
42+
key: pydeps-${{ inputs.python_version }}-${{ env.shellos }}-${{ hashFiles('**/poetry.lock') }}
4343

4444
# Install dependencies. `--no-root` means "install all dependencies but not the project
4545
# itself", which is what you want to avoid caching _your_ code. The `if` statement

.github/dependabot.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
commit-message:
6+
prefix: "pip"
7+
prefix-development: "pip-dev"
8+
labels: [ 'chore' ]
9+
assignees:
10+
- "Wenzel"
11+
schedule:
12+
interval: "cron"
13+
cronjob: "0 7 * * *"
14+
timezone: "Europe/Paris"
15+
groups:
16+
pip-dev-dependencies:
17+
applies-to: version-updates
18+
patterns:
19+
- "*"
20+
dependency-type: development
21+
pip-prod-dependencies:
22+
applies-to: version-updates
23+
patterns:
24+
- "*"
25+
dependency-type: production
26+
- package-ecosystem: "github-actions"
27+
directory: "/"
28+
commit-message:
29+
prefix: "actions"
30+
labels: [ 'chore' ]
31+
assignees:
32+
- "Wenzel"
33+
schedule:
34+
interval: "cron"
35+
cronjob: "0 7 * * *"
36+
timezone: "Europe/Paris"
37+
groups:
38+
actions-dependencies:
39+
applies-to: version-updates
40+
patterns:
41+
- "*"

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
task: ["fmt", "lint"]
1919

2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222

2323
- uses: ./.github/actions/common-setup
2424

@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131

3232
steps:
33-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3434

3535
- uses: ./.github/actions/common-setup
3636

@@ -42,11 +42,11 @@ jobs:
4242
runs-on: windows-latest
4343

4444
steps:
45-
- uses: actions/checkout@v3
45+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4646

4747
- uses: ./.github/actions/common-setup
4848
with:
49-
python_version: 3.11
49+
python_version: 3.13
5050

5151
- name: Add entrypoint to bypass issue with relative imports in PyInstaller
5252
run: powershell -Command 'Invoke-WebRequest https://gist.githubusercontent.com/Wenzel/e38d227d94f16e026b3aed03ea6a6661/raw/383ec56d62c58e444f6c5962ee6940a5c583d341/stub.py -OutFile stub.py'
@@ -56,7 +56,7 @@ jobs:
5656
shell: bash
5757

5858
- name: Upload Windows release artefact
59-
uses: actions/upload-artifact@v4
59+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6060
with:
6161
name: checksec.exe
6262
path: dist/checksec.exe
@@ -77,7 +77,7 @@ jobs:
7777
shell: bash
7878

7979
steps:
80-
- uses: actions/checkout@v3
80+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8181
with:
8282
submodules: true
8383

@@ -97,14 +97,14 @@ jobs:
9797
# push on master and tag is 'v*'
9898
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
9999
steps:
100-
- uses: actions/checkout@v3
100+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
101101
- name: Get the version
102102
id: get_version
103103
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
104104

105105
- name: Create a Release
106106
id: create_release
107-
uses: actions/create-release@v1
107+
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
108108
env:
109109
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110110
with:
@@ -122,15 +122,15 @@ jobs:
122122
# the deploy action below depends on a checkout of the repo
123123
# otherwise it fails trying to remote the 'origin' remote
124124
# https://github.com/JamesIves/github-pages-deploy-action/issues/335
125-
- uses: actions/checkout@v3
125+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
126126

127127
# download artifacts
128-
- uses: actions/download-artifact@v4
128+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
129129
with:
130130
name: checksec.exe
131131

132132
- name: Upload a Release Asset
133-
uses: actions/[email protected]
133+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
134134
env:
135135
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136136
with:
@@ -144,7 +144,7 @@ jobs:
144144
runs-on: ubuntu-latest
145145

146146
steps:
147-
- uses: actions/checkout@v3
147+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
148148

149149
- uses: ./.github/actions/common-setup
150150

0 commit comments

Comments
 (0)