Skip to content

Commit

Permalink
Merge pull request #2 from scipp/copier-update
Browse files Browse the repository at this point in the history
Drop python 3.8 support and update from copier template.
  • Loading branch information
YooSunYoung authored Nov 28, 2023
2 parents 8fddba8 + dc3b222 commit 1628d4f
Show file tree
Hide file tree
Showing 36 changed files with 197 additions and 257 deletions.
4 changes: 2 additions & 2 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: 3ad29de
_commit: ff7f76b
_src_path: gh:scipp/copier_template
description: Data reduction for NMX at the European Spallation Source
max_python: '3.11'
min_python: '3.8'
min_python: '3.9'
namespace_package: ess
nightly_deps: scipp,sciline,scippnexus,plopp
orgname: scipp
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
formatting:
name: Formatting and static analysis
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-22.04'
outputs:
min_python: ${{ steps.vars.outputs.min_python }}
min_tox_env: ${{ steps.vars.outputs.min_tox_env }}
Expand All @@ -39,7 +39,7 @@ jobs:
needs: formatting
strategy:
matrix:
os: ['ubuntu-20.04']
os: ['ubuntu-22.04']
python:
- version: '${{needs.formatting.outputs.min_python}}'
tox-env: '${{needs.formatting.outputs.min_tox_env}}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ env:
jobs:
docs:
name: Build documentation
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-22.04'
steps:
- run: sudo apt install --yes graphviz pandoc
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly_at_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
setup:
name: Setup variables
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-22.04'
outputs:
min_python: ${{ steps.vars.outputs.min_python }}
steps:
Expand All @@ -25,7 +25,7 @@ jobs:
needs: setup
strategy:
matrix:
os: ['ubuntu-20.04']
os: ['ubuntu-22.04']
python:
- version: '${{needs.setup.outputs.min_python}}'
tox-env: 'nightly'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly_at_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
setup:
name: Setup variables
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-22.04'
outputs:
min_python: ${{ steps.vars.outputs.min_python }}
release_tag: ${{ steps.release.outputs.release_tag }}
Expand All @@ -31,7 +31,7 @@ jobs:
needs: setup
strategy:
matrix:
os: ['ubuntu-20.04']
os: ['ubuntu-22.04']
python:
- version: '${{needs.setup.outputs.min_python}}'
tox-env: 'nightly'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-version-ci
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8
3.9
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defaults:
jobs:
build_conda:
name: Conda build
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-22.04'

steps:
- uses: actions/checkout@v3
Expand All @@ -38,7 +38,7 @@ jobs:

build_wheels:
name: Wheels
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-22.04'

steps:
- uses: actions/checkout@v3
Expand All @@ -64,7 +64,7 @@ jobs:
upload_pypi:
name: Deploy PyPI
needs: [build_wheels, build_conda]
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-22.04'
environment: release
permissions:
id-token: write
Expand All @@ -76,7 +76,7 @@ jobs:
upload_conda:
name: Deploy Conda
needs: [build_wheels, build_conda]
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-22.04'
if: github.event_name == 'release' && github.event.action == 'published'

steps:
Expand All @@ -100,7 +100,7 @@ jobs:
assets:
name: Upload docs
needs: docs
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-22.04'
permissions:
contents: write # This is needed so that the action can upload the asset
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:
inputs:
os-variant:
default: 'ubuntu-20.04'
default: 'ubuntu-22.04'
type: string
python-version:
type: string
Expand All @@ -26,7 +26,7 @@ on:
workflow_call:
inputs:
os-variant:
default: 'ubuntu-20.04'
default: 'ubuntu-22.04'
type: string
python-version:
type: string
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unpinned.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
setup:
name: Setup variables
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-22.04'
outputs:
min_python: ${{ steps.vars.outputs.min_python }}
release_tag: ${{ steps.release.outputs.release_tag }}
Expand All @@ -31,7 +31,7 @@ jobs:
needs: setup
strategy:
matrix:
os: ['ubuntu-20.04']
os: ['ubuntu-22.04']
python:
- version: '${{needs.setup.outputs.min_python}}'
tox-env: 'unpinned'
Expand Down
24 changes: 21 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Build artifacts
build
dist
html
.tox
src/essnmx.egg-info
*.egg-info

*.sw?

# Caches
.clangd/
.idea/
.vscode/
*.ipynb_checkpoints
__pycache__/
.vs/
Expand All @@ -16,3 +17,20 @@ __pycache__/
.pytest_cache
.mypy_cache
docs/generated/

# Editor settings
.idea/
.vscode/

# Data files
*.data
*.dat
*.csv
*.xye
*.h5
*.hdf5
*.hdf
*.nxs
*.raw
*.cif
*.rcif
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ repos:
- id: check-added-large-files
- id: check-json
exclude: asv.conf.json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
exclude: conda/meta.yaml
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Anaconda-Server Badge](https://anaconda.org/scipp/essnmx/badges/version.svg)](https://anaconda.org/scipp/essnmx)
[![License: BSD 3-Clause](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](LICENSE)

# essnmx
# Essnmx

## About

Expand Down
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ requirements:
- setuptools
- setuptools_scm
run:
- python>=3.9
- dask
- python>=3.8
- python-graphviz
- plopp
- sciline>=23.9.1
Expand Down
13 changes: 13 additions & 0 deletions docs/_static/anaconda-icon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

103 changes: 0 additions & 103 deletions docs/_static/anaconda-logo.svg

This file was deleted.

21 changes: 0 additions & 21 deletions docs/_static/css/custom.css

This file was deleted.

2 changes: 1 addition & 1 deletion docs/_templates/doc_version.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!-- This will display the version of the docs -->
Current {{ project }} version: {{ version }} (<a href="https://github.com/scipp/{{ project }}/releases">older versions</a>).
Current {{ project }} version: {{ version }} (<a href="https://github.com/scipp/{{ project|lower }}/releases">older versions</a>).
2 changes: 1 addition & 1 deletion docs/about/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# About Essnmx
# About

## Development

Expand Down
4 changes: 2 additions & 2 deletions docs/api-reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Classes

```{eval-rst}
.. currentmodule:: essnmx
.. currentmodule:: ess.nmx
.. autosummary::
:toctree: ../generated/classes
Expand All @@ -26,4 +26,4 @@
:toctree: ../generated/modules
:template: module-template.rst
:recursive:
```
```
Loading

0 comments on commit 1628d4f

Please sign in to comment.