Skip to content

Commit 921532d

Browse files
authored
Merge pull request #172 from scipp/copierbump
drop python 3.10, bump copier and tox
2 parents 925fab2 + 6635526 commit 921532d

File tree

22 files changed

+59
-173
lines changed

22 files changed

+59
-173
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: 3561fcd
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: 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: 0 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 ]

.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

conda/meta.yaml

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

docs/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
},
189189
{
190190
"name": "Conda",
191-
"url": "https://anaconda.org/scipp/essreflectometry",
191+
"url": "https://anaconda.org/conda-forge/essreflectometry",
192192
"icon": "fa-custom fa-anaconda",
193193
"type": "fontawesome",
194194
},
@@ -268,7 +268,8 @@ def do_not_plot(*args, **kwargs):
268268
r'https?://github\.com/.*?/blob/[a-f0-9]+/.+?#',
269269
# Linkcheck seems to be denied access by some DOI resolvers.
270270
# Since DOIs are supposed to be permanent, we don't need to check them.'
271-
r'https://doi\.org/',
271+
r'https?://doi\.org/',
272+
r'https?://dx\.doi\.org/',
272273
]
273274

274275
# -- Options for Matplotlib in notebooks ----------------------------------

docs/developer/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Alternatively, if you want a different workflow, take a look at ``tox.ini`` or `
4040
Run the tests using
4141
4242
```sh
43-
tox -e py310
43+
tox -e py311
4444
```
4545
4646
(or just `tox` if you want to run all environments).

docs/user-guide/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pip install essreflectometry
1010
````
1111
````{tab-item} conda
1212
```sh
13-
conda install -c conda-forge -c scipp essreflectometry
13+
conda install -c conda-forge essreflectometry
1414
```
1515
````
1616
`````

0 commit comments

Comments
 (0)