Skip to content

Commit 228f25c

Browse files
fix: Drop python 3.10 by allow copier automated updates and updating copier template (#935)
* fix: Use full copier path to allow automated PRs * chore: Update to copier template v4 * fix: ci by removing references to deleted action * chore: Allow use of Python 3.13 supporting pytango --------- Co-authored-by: Tom Cobb <[email protected]> Co-authored-by: Tom C (DLS) <[email protected]>
1 parent 3d8bc20 commit 228f25c

File tree

24 files changed

+56
-102
lines changed

24 files changed

+56
-102
lines changed

.copier-answers.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 2.6.0
3-
_src_path: gh:DiamondLightSource/python-copier-template
2+
_commit: 4.1.0
3+
_src_path: https://github.com/DiamondLightSource/python-copier-template
44
author_email: [email protected]
55
author_name: Tom Cobb
66
description: Asynchronous Bluesky hardware abstraction code, compatible with control
@@ -13,4 +13,5 @@ github_org: bluesky
1313
package_name: ophyd_async
1414
pypi: true
1515
repo_name: ophyd-async
16+
strict_typing: false
1617
type_checker: pyright

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ It is recommended that developers use a [vscode devcontainer](https://code.visua
2424

2525
This project was created using the [Diamond Light Source Copier Template](https://github.com/DiamondLightSource/python-copier-template) for Python projects.
2626

27-
For more information on common tasks like setting up a developer environment, running the tests, and setting a pre-commit hook, see the template's [How-to guides](https://diamondlightsource.github.io/python-copier-template/2.6.0/how-to.html).
27+
For more information on common tasks like setting up a developer environment, running the tests, and setting a pre-commit hook, see the template's [How-to guides](https://diamondlightsource.github.io/python-copier-template/4.1.0/how-to.html).

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ assignees: ''
77

88
---
99

10-
Describe the bug, including a clear and concise description of the expected behavior, the actual behavior and the context in which you encountered it (ideally include details of your environment).
10+
Describe the bug, including a clear and concise description of the expected behaviour, the actual behavior and the context in which you encountered it (ideally include details of your environment).
1111

1212
## Steps To Reproduce
1313
Steps to reproduce the behavior:

.github/actions/install_requirements/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ runs:
1515
run: |
1616
PYTHON_VERSION="${{ inputs.python-version }}"
1717
if [ $PYTHON_VERSION == "dev" ]; then
18-
PYTHON_VERSION=$(sed -n "s/ARG PYTHON_VERSION=//p" Dockerfile)
18+
# python version from Dockerfile, removing potential pinned sha
19+
PYTHON_VERSION=$(sed -Ene "s/ARG PYTHON_VERSION=([0-9\.]+).*/\1/p" Dockerfile)
1920
fi
2021
echo "PYTHON_VERSION=$PYTHON_VERSION" >> "$GITHUB_ENV"
2122
shell: bash

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ updates:
1313
actions:
1414
patterns:
1515
- "*"
16+
commit-message:
17+
prefix: "chore"
1618

1719
- package-ecosystem: "pip"
1820
directory: "/"
@@ -22,3 +24,5 @@ updates:
2224
dev-dependencies:
2325
patterns:
2426
- "*"
27+
commit-message:
28+
prefix: "chore"

.github/workflows/_check.yml

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

.github/workflows/_docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
on:
22
workflow_call:
33

4+
45
jobs:
56
build:
67
runs-on: ubuntu-latest

.github/workflows/_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Create GitHub Release
2424
# We pin to the SHA, not the tag, for security reasons.
2525
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
26-
uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # v2.0.9
26+
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
2727
with:
2828
prerelease: ${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'rc') }}
2929
files: "*"

.github/workflows/_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
run: tox -e tests -- --timeout=2
6565

6666
- name: Upload coverage to Codecov
67-
uses: codecov/codecov-action@v4
67+
uses: codecov/codecov-action@v5
6868
with:
6969
name: ${{ inputs.python-version }}/${{ inputs.runs-on }}
7070
files: cov.xml

.github/workflows/ci.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,24 @@ name: CI
22

33
on:
44
push:
5+
branches:
6+
- main
7+
tags:
8+
- '*'
59
pull_request:
610

711
jobs:
8-
check:
9-
uses: ./.github/workflows/_check.yml
1012

1113
lint:
12-
needs: check
13-
if: needs.check.outputs.branch-pr == ''
1414
uses: ./.github/workflows/_tox.yml
1515
with:
1616
tox: pre-commit,type-checking
1717

1818
test:
19-
needs: check
20-
if: needs.check.outputs.branch-pr == ''
2119
strategy:
2220
matrix:
2321
runs-on: ["ubuntu-latest", "windows-latest"] # can add macos-latest
24-
python-version: ["3.10","3.11","3.12"]
22+
python-version: ["3.11", "3.12", "3.13"]
2523
include:
2624
# Include one that runs in the dev environment
2725
- runs-on: "ubuntu-latest"
@@ -35,35 +33,28 @@ jobs:
3533
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3634

3735
import_with_no_extras:
38-
needs: check
39-
if: needs.check.outputs.branch-pr == ''
4036
uses: ./.github/workflows/_import_with_no_extras.yml
4137

4238
docs:
43-
needs: check
44-
if: needs.check.outputs.branch-pr == ''
4539
uses: ./.github/workflows/_docs.yml
4640

41+
4742
dist:
48-
needs: check
49-
if: needs.check.outputs.branch-pr == ''
5043
uses: ./.github/workflows/_dist.yml
5144

5245
pypi:
46+
needs: [dist, test]
5347
if: github.ref_type == 'tag'
54-
needs: dist
5548
uses: ./.github/workflows/_pypi.yml
5649
permissions:
5750
id-token: write
5851

5952
codeql:
60-
needs: check
61-
if: needs.check.outputs.branch-pr == ''
6253
uses: ./.github/workflows/_codeql.yml
6354

6455
release:
56+
needs: [dist, test, docs]
6557
if: github.ref_type == 'tag'
66-
needs: [dist, docs]
6758
uses: ./.github/workflows/_release.yml
6859
permissions:
6960
contents: write

0 commit comments

Comments
 (0)