Skip to content

Commit 9e964e3

Browse files
Modernize package with updated iris and Python pins and a new PyPI package build GHA (#29)
* update PyPI package builder GHA * pin iris and python to esmvaltool 2.9.0 specs * update pins and supported pythons * unrun test GHA
1 parent 6b38cd6 commit 9e964e3

File tree

3 files changed

+24
-18
lines changed

3 files changed

+24
-18
lines changed

.github/workflows/action-pypi-build-and-deploy.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,26 @@ on:
66
# use this for testing
77
push:
88
branches:
9-
- master
9+
- main
1010

1111
jobs:
1212
build-n-publish:
1313
name: Build and publish ESMValTool_sample_data on PyPi
1414
runs-on: ubuntu-latest
15+
environment:
16+
name: pypi
17+
url: https://pypi.org/project/ESMValTool_sample_data/
18+
permissions:
19+
# IMPORTANT: this permission is mandatory for trusted publishing
20+
id-token: write
1521
steps:
16-
- uses: actions/checkout@master
17-
- name: Set up Python 3.9
18-
uses: actions/setup-python@v1
22+
- uses: actions/checkout@v4
1923
with:
20-
python-version: 3.9
24+
fetch-depth: 0
25+
- name: Set up Python 3.13
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: "3.13"
2129
- name: Install pep517
2230
run: >-
2331
python -m
@@ -32,13 +40,10 @@ jobs:
3240
--binary
3341
--out-dir dist/
3442
.
35-
# - name: Publish distribution 📦 to Test PyPI
36-
# uses: pypa/gh-action-pypi-publish@master
43+
# - name: Publish distribution to Test PyPI
44+
# uses: pypa/gh-action-pypi-publish@release/v1
3745
# with:
38-
# password: ${{ secrets.test_pypi_password }}
39-
# repository_url: https://test.pypi.org/legacy/
46+
# repository-url: https://test.pypi.org/legacy/
4047
- name: Publish distribution 📦 to PyPI
4148
if: startsWith(github.ref, 'refs/tags')
42-
uses: pypa/gh-action-pypi-publish@master
43-
with:
44-
password: ${{ secrets.pypi_password }}
49+
uses: pypa/gh-action-pypi-publish@release/v1

environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ channels:
55

66
dependencies:
77
- esgf-pyclient
8-
- iris>=2.2.1
8+
- iris >=3.6.0
99
- myproxyclient
10-
- python>=3.6
10+
- python >=3.9

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,19 @@
2929
'License :: Other/Proprietary License',
3030
'Natural Language :: English',
3131
'Programming Language :: Python :: 3',
32-
'Programming Language :: Python :: 3.6',
33-
'Programming Language :: Python :: 3.7',
34-
'Programming Language :: Python :: 3.8',
3532
'Programming Language :: Python :: 3.9',
33+
'Programming Language :: Python :: 3.10',
34+
'Programming Language :: Python :: 3.11',
35+
'Programming Language :: Python :: 3.12',
36+
'Programming Language :: Python :: 3.13',
3637
'Topic :: Scientific/Engineering',
3738
'Topic :: Scientific/Engineering :: Atmospheric Science',
3839
'Topic :: Scientific/Engineering :: GIS',
3940
'Topic :: Scientific/Engineering :: Hydrology',
4041
'Topic :: Scientific/Engineering :: Physics',
4142
],
4243
install_requires=[
43-
'scitools-iris>=2.2',
44+
'scitools-iris>=3.6',
4445
],
4546
extras_require={
4647
'develop': [

0 commit comments

Comments
 (0)