Skip to content

Commit 43daab4

Browse files
authored
Merge pull request #638 from scipp/copier-update
Copier update & drop support for Python 3.10
2 parents 0525144 + f7f32d9 commit 43daab4

35 files changed

+287
-363
lines changed

.buildconfig/ci-linux.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ channels:
1010
- nodefaults
1111
dependencies:
1212
- email-validator==2.2.0
13-
- h5py==3.12.1
13+
- h5py==3.14.0
1414
- hypothesis==6.119.4
1515
- ipykernel==6.29.5
1616
- ipympl==0.9.4
1717
- ipywidgets==8.1.5
1818
- lazy-loader==0.4
19-
- mantid==6.11.0
20-
- matplotlib==3.7.3
19+
- mantid==6.13.0
20+
- matplotlib==3.9.4
2121
- mpltoolbox==24.05.1
2222
- plopp==24.10.0
2323
- pooch==1.8.2
24-
- pydantic==2.10.5
24+
- pydantic==2.11.7
2525
- pytest==8.3.3
2626
- pytest-asyncio==0.24.0
2727
- python-dateutil==2.9.0
@@ -33,6 +33,7 @@ dependencies:
3333
- tox==4.23.2
3434

3535
# docs
36+
- autodoc-pydantic=2.1.0
3637
- myst-parser==4.0.0
3738
- nbsphinx==0.9.5
3839
- packaging==25.0
@@ -47,6 +48,3 @@ dependencies:
4748

4849
# docs and tests
4950
- sciline==24.10.0
50-
51-
# Temporary pin, see https://github.com/mantidproject/mantid/issues/39393
52-
- muparser==2.3.4

.copier-answers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
_commit: 3f79959
2+
_commit: c3214e6
33
_src_path: gh:scipp/copier_template
44
description: Neutron scattering tools for Data Reduction
55
max_python: '3.13'
6-
min_python: '3.10'
6+
min_python: '3.11'
77
namespace_package: ''
88
nightly_deps: scipp,scippnexus,plopp,mpltoolbox,sciline,tof
99
orgname: scipp

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
environment-file: .buildconfig/ci-linux.yml
6565
cache-environment: true
6666
create-args: >-
67-
python=3.10
67+
python=3.11
6868
conda-build
6969
- run: conda develop src
7070
- run: python -m pytest tests/mantid_*

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ jobs:
6262
environment-file: .buildconfig/ci-linux.yml
6363
cache-environment: true
6464
create-args: >-
65-
python=3.10
65+
python=3.11
6666
scippneutron==${{ inputs.version }}
6767
- uses: mamba-org/setup-micromamba@v2
6868
if: ${{ inputs.version == '' }}
6969
with:
7070
environment-file: .buildconfig/ci-linux.yml
7171
cache-environment: true
7272
create-args: >-
73-
python=3.10
73+
python=3.11
7474
conda-build
7575
- run: pip install --no-build-isolation --no-deps -e .
7676
if: ${{ inputs.version == '' }}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Nightly test using lower bound dependencies
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '30 1 * * 1-5'
7+
8+
jobs:
9+
setup:
10+
name: Setup variables
11+
runs-on: 'ubuntu-24.04'
12+
outputs:
13+
min_python: ${{ steps.vars.outputs.min_python }}
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Get Python version for other CI jobs
17+
id: vars
18+
run: echo "min_python=$(< .github/workflows/python-version-ci)" >> "$GITHUB_OUTPUT"
19+
20+
tests:
21+
name: Tests at lower bound
22+
needs: setup
23+
strategy:
24+
matrix:
25+
os: ['ubuntu-24.04']
26+
python:
27+
- version: '${{needs.setup.outputs.min_python}}'
28+
runs-on: ${{ matrix.os }}
29+
env:
30+
ESS_PROTECTED_FILESTORE_USERNAME: ${{ secrets.ESS_PROTECTED_FILESTORE_USERNAME }}
31+
ESS_PROTECTED_FILESTORE_PASSWORD: ${{ secrets.ESS_PROTECTED_FILESTORE_PASSWORD }}
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: astral-sh/setup-uv@v6
35+
with:
36+
python-version: ${{ matrix.python.version }}
37+
- run: uv run --extra=test --resolution=lowest-direct pytest
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10
1+
3.11

.github/workflows/release.yml

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,6 @@ defaults:
1010
shell: bash -l {0} # required for conda env
1111

1212
jobs:
13-
build_conda:
14-
name: Conda build
15-
runs-on: 'ubuntu-24.04'
16-
17-
steps:
18-
- uses: actions/checkout@v4
19-
with:
20-
submodules: true
21-
fetch-depth: 0 # history required so setuptools_scm can determine version
22-
23-
- uses: mamba-org/setup-micromamba@v2
24-
with:
25-
environment-name: build-env
26-
create-args: >-
27-
conda-build
28-
boa
29-
- run: conda mambabuild --channel conda-forge --channel scipp --channel ess-dmsc --no-anaconda-upload --override-channels --output-folder conda/package conda
30-
31-
- uses: actions/upload-artifact@v4
32-
with:
33-
name: conda-package-noarch
34-
path: conda/package/noarch/*.tar.bz2
35-
3613
build_wheels:
3714
name: Wheels
3815
runs-on: 'ubuntu-24.04'
@@ -60,7 +37,7 @@ jobs:
6037

6138
upload_pypi:
6239
name: Deploy PyPI
63-
needs: [build_wheels, build_conda]
40+
needs: [build_wheels]
6441
runs-on: 'ubuntu-24.04'
6542
environment: release
6643
permissions:
@@ -70,25 +47,8 @@ jobs:
7047
- uses: actions/download-artifact@v4
7148
- uses: pypa/[email protected]
7249

73-
upload_conda:
74-
name: Deploy Conda
75-
needs: [build_wheels, build_conda]
76-
runs-on: 'ubuntu-24.04'
77-
if: github.event_name == 'release' && github.event.action == 'published'
78-
79-
steps:
80-
- uses: actions/download-artifact@v4
81-
- uses: mamba-org/setup-micromamba@v2
82-
with:
83-
environment-name: upload-env
84-
# frozen python due to breaking removal of 'imp' in 3.12
85-
create-args: >-
86-
anaconda-client
87-
python=3.11
88-
- run: anaconda --token ${{ secrets.ANACONDATOKEN }} upload --user scipp --label main $(ls conda-package-noarch/*.tar.bz2)
89-
9050
docs:
91-
needs: [upload_conda, upload_pypi]
51+
needs: [upload_pypi]
9252
uses: ./.github/workflows/docs.yml
9353
with:
9454
publish: ${{ github.event_name == 'release' && github.event.action == 'published' }}

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ repos:
1010
- id: check-merge-conflict
1111
- id: check-toml
1212
- id: check-yaml
13-
exclude: conda/meta.yaml
1413
- id: detect-private-key
1514
- id: trailing-whitespace
1615
args: [ --markdown-linebreak-ext=md ]
@@ -36,6 +35,8 @@ repos:
3635
- id: codespell
3736
additional_dependencies:
3837
- tomli
38+
exclude_types:
39+
- svg
3940
- repo: https://github.com/pre-commit/pygrep-hooks
4041
rev: v1.10.0
4142
hooks:

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10
1+
3.11

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
22
[![PyPI badge](http://img.shields.io/pypi/v/scippneutron.svg)](https://pypi.python.org/pypi/scippneutron)
3-
[![Anaconda-Server Badge](https://anaconda.org/scipp/scippneutron/badges/version.svg)](https://anaconda.org/scipp/scippneutron)
3+
[![Anaconda-Server Badge](https://anaconda.org/conda-forge/scippneutron/badges/version.svg)](https://anaconda.org/conda-forge/scippneutron)
44
[![License: BSD 3-Clause](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](LICENSE)
55

66
# ScippNeutron

0 commit comments

Comments
 (0)