Skip to content

Commit 7363d82

Browse files
authored
Merge branch 'main' into gui-select-reference
2 parents c363526 + 7fe8198 commit 7363d82

39 files changed

+515
-268
lines changed

.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: 024a41b
33
_src_path: gh:scipp/copier_template
44
description: Reflectometry data reduction for the European Spallation Source
55
max_python: '3.13'
6-
min_python: '3.10'
6+
min_python: '3.11'
77
namespace_package: ess
88
nightly_deps: plopp,sciline,scippneutron,scippnexus,scipp
99
orgname: scipp
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@v1
24-
with:
25-
environment-name: build-env
26-
create-args: >-
27-
conda-build
28-
boa
29-
- run: conda mambabuild --channel conda-forge --channel scipp --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@v1
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/essreflectometry.svg)](https://pypi.python.org/pypi/essreflectometry)
3-
[![Anaconda-Server Badge](https://anaconda.org/scipp/essreflectometry/badges/version.svg)](https://anaconda.org/scipp/essreflectometry)
3+
[![Anaconda-Server Badge](https://anaconda.org/conda-forge/essreflectometry/badges/version.svg)](https://anaconda.org/conda-forge/essreflectometry)
44
[![License: BSD 3-Clause](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](LICENSE)
55

66
# ESSreflectometry

bibliography.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Bibliography
2+
============
3+
4+
.. bibliography::

conda/meta.yaml

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

docs/about/bibliography.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Bibliography
2+
============
3+
4+
.. bibliography::

0 commit comments

Comments
 (0)