Skip to content

Commit 6176939

Browse files
committed
Merge branch 'main' of github.com:SciTools/python-stratify into auto_pr_labels
* 'main' of github.com:SciTools/python-stratify: Updated environment lockfiles (SciTools#129) adopting sort-all pre-commit git hook (SciTools#128) Updated environment lockfiles (SciTools#127) Bump scitools/workflows from 2023.05.0 to 2023.06.0 (SciTools#126) Bump pypa/cibuildwheel from 2.13.0 to 2.13.1 (SciTools#125) Updated environment lockfiles (SciTools#124) adding a CITATION.cff and a GHA to check it (SciTools#123) Updated environment lockfiles (SciTools#122) Adding a GHA to check for stale issues and pull-requests (SciTools#120) Rebase to upstream
2 parents 4f3ec55 + 32642e3 commit 6176939

File tree

11 files changed

+342
-182
lines changed

11 files changed

+342
-182
lines changed

.github/workflows/ci-citation.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: ci-citation
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "CITATION.cff"
7+
8+
push:
9+
paths:
10+
- "CITATION.cff"
11+
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
validate:
20+
name: "validate"
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 0
26+
27+
- name: "check CITATION.cff"
28+
uses: citation-file-format/cffconvert-github-action@2.0.0
29+
with:
30+
args: "--validate"

.github/workflows/ci-locks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ concurrency:
1818

1919
jobs:
2020
refresh_lockfiles:
21-
uses: scitools/workflows/.github/workflows/refresh-lockfiles.yml@2023.05.0
21+
uses: scitools/workflows/.github/workflows/refresh-lockfiles.yml@2023.06.0
2222
secrets: inherit

.github/workflows/ci-manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ concurrency:
2525
jobs:
2626
manifest:
2727
name: "check-manifest"
28-
uses: scitools/workflows/.github/workflows/ci-manifest.yml@2023.05.0
28+
uses: scitools/workflows/.github/workflows/ci-manifest.yml@2023.06.0

.github/workflows/ci-wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
fetch-depth: 0
4949

5050
- name: "build ${{ matrix.os }} (${{ matrix.arch }}) wheels"
51-
uses: pypa/cibuildwheel@v2.13.0
51+
uses: pypa/cibuildwheel@v2.13.1
5252
env:
5353
CIBW_SKIP: "cp36-* cp37-* pp* *-musllinux*"
5454
CIBW_ARCHS: ${{ matrix.arch }}

.github/workflows/stale.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# See https://github.com/actions/stale
2+
3+
name: Stale issues and pull-requests
4+
5+
on:
6+
schedule:
7+
# Run once a day
8+
# N.B. "should" be quoted, according to
9+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onschedule
10+
- cron: "0 0 * * *"
11+
12+
jobs:
13+
stale:
14+
if: "github.repository == 'SciTools/python-stratify'"
15+
runs-on: ubuntu-latest
16+
17+
env:
18+
DAYS_BEFORE_STALE: 500
19+
DAYS_BEFORE_CLOSE: 28
20+
21+
steps:
22+
- uses: actions/stale@v8
23+
with:
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}
25+
26+
# Idle number of days before marking issues/prs stale.
27+
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
28+
29+
# Idle number of days before closing stale issues/prs.
30+
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }}
31+
32+
# Comment on the staled issues.
33+
stale-issue-message: |
34+
In order to maintain a backlog of relevant issues, we automatically label them as stale after ${{ env.DAYS_BEFORE_STALE }} days of inactivity.
35+
36+
If this issue is still important to you, then please comment on this issue and the stale label will be removed.
37+
38+
Otherwise this issue will be automatically closed in ${{ env.DAYS_BEFORE_CLOSE }} days time.
39+
40+
# Comment on the staled prs.
41+
stale-pr-message: |
42+
In order to maintain a backlog of relevant PRs, we automatically label them as stale after ${{ env.DAYS_BEFORE_STALE }} days of inactivity.
43+
44+
If this PR is still important to you, then please comment on this PR and the stale label will be removed.
45+
46+
Otherwise this PR will be automatically closed in ${{ env.DAYS_BEFORE_CLOSE }} days time.
47+
48+
# Comment on the staled issues while closed.
49+
close-issue-message: |
50+
This stale issue has been automatically closed due to a lack of community activity.
51+
52+
If you still care about this issue, then please either:
53+
* Re-open this issue, if you have sufficient permissions, or
54+
* Add a comment pinging `@SciTools/stratify-maintainers` who will re-open on your behalf.
55+
56+
# Comment on the staled prs while closed.
57+
close-pr-message: |
58+
This stale PR has been automatically closed due to a lack of community activity.
59+
60+
If you still care about this PR, then please either:
61+
* Re-open this PR, if you have sufficient permissions, or
62+
* Add a comment pinging `@SciTools/stratify-maintainers` who will re-open on your behalf.
63+
64+
# Label to apply on staled issues.
65+
stale-issue-label: Stale
66+
67+
# Label to apply on staled prs.
68+
stale-pr-label: Stale
69+
70+
# Labels on issues exempted from stale.
71+
exempt-issue-labels:
72+
"Status: Blocked,Status: Decision Required"
73+
74+
# Labels on prs exempted from stale.
75+
exempt-pr-labels:
76+
"Status: Blocked,Status: Decision Required"
77+
78+
# Max number of operations per run.
79+
operations-per-run: 300
80+
81+
# Remove stale label from issues/prs on updates/comments.
82+
remove-stale-when-updated: true
83+
84+
# Order to get issues/PRs.
85+
ascending: true
86+
87+
# Exempt all issues/prs with milestones from stale.
88+
exempt-all-milestones: true

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,9 @@ repos:
3939
name: isort (cython)
4040
types: [file, cython]
4141
args: [--filter-files]
42+
43+
- repo: https://github.com/aio-libs/sort-all
44+
rev: "v1.2.0"
45+
hooks:
46+
- id: sort-all
47+
types: [file, python]

CITATION.cff

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
cff-version: 1.2.0
2+
message: "If Python-Stratify played an important part in your research then please add us to your reference list by using the references below."
3+
authors:
4+
- family-names: "Elson"
5+
given-names: "Phil"
6+
orcid: "https://orcid.org/0000-0001-6360-749X"
7+
- family-names: "Little"
8+
given-names: "Bill"
9+
orcid: "https://orcid.org/0000-0002-1345-9465"
10+
- family-names: "Andela"
11+
given-names: "Bouwe"
12+
orcid: "https://orcid.org/0000-0001-9005-8940"
13+
- family-names: "Dreyer"
14+
given-names: "Laura"
15+
orcid: "https://orcid.org/0009-0006-6310-3658"
16+
- family-names: "Fernandes"
17+
given-names: "Filipe"
18+
orcid: "https://orcid.org/0000-0003-4165-2913"
19+
- family-names: "Rol"
20+
given-names: "Evert"
21+
orcid: "https://orcid.org/0000-0001-8357-4453"
22+
- family-names: "Wright"
23+
given-names: "Henry"
24+
orcid: "https://orcid.org/0009-0005-1489-760X"
25+
- family-names: "Yeo"
26+
given-names: "Martin"
27+
orcid: "https://orcid.org/0009-0000-6857-560X"
28+
title: "python-stratify"
29+
abstract: "Interpolation for restratification, particularly useful for Nd vertical interpolation of atmospheric and oceanographic datasets"
30+
license: "BSD-3-Clause"
31+
license-url: "https://spdx.org/licenses/BSD-3-Clause.html"
32+
date-released: "2018-06-01"
33+
doi: "10.5281/zenodo.7863857"
34+
repository-code: "https://github.com/SciTools/python-stratify"
35+
type: "software"

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ prune .github
22
prune requirements
33
recursive-include requirements *.txt
44
recursive-include src *.py *.pyx
5+
include CITATION.cff
56
exclude .flake8
67
exclude .gitignore
78
exclude .pre-commit-config.yaml

0 commit comments

Comments
 (0)