Skip to content

Commit c02c6a6

Browse files
authored
Merge pull request #209 from csiro-coasts/release-1.0.0a1
Bump version to v1.0.0a1
2 parents 9e05595 + 1338d7c commit c02c6a6

File tree

5 files changed

+31
-12
lines changed

5 files changed

+31
-12
lines changed

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cff-version: 1.2.0
22
title: emsarray
3-
version: 0.10.0
4-
date-released: 2025-09-08
3+
version: 1.0.0a1
4+
date-released: 2025-12-15
55
type: software
66
authors:
77
- given-names: Tim
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
=============================
2-
Next release (in development)
3-
=============================
1+
=======
2+
1.0.0a1
3+
=======
4+
5+
Released on 2025-12-15
46

57
Improved support for multiple grids
68
===================================

docs/releases/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Release notes
44

55
.. toctree::
66

7-
development
7+
1.0.0a1
88
0.10.0
99
0.9.0
1010
0.8.0

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "emsarray"
9-
version = "0.10.0"
9+
version = "1.0.0a1"
1010
description = "xarray extension that supports multiple geometry conventions"
1111
authors = [
1212
{name = "Coastal Environmental Modelling team, Oceans and Atmosphere, CSIRO", email = "[email protected]"},
@@ -28,7 +28,7 @@ dynamic = ["readme"]
2828

2929
[project.urls]
3030
Documentation = "https://emsarray.readthedocs.io/"
31-
"Release notes" = "https://emsarray.readthedocs.io/en/stable/releases/0.10.0/"
31+
"Release notes" = "https://emsarray.readthedocs.io/en/stable/releases/1.0.0a1/"
3232
Source = "https://github.com/csiro-coasts/emsarray/"
3333

3434
[project.optional-dependencies]

scripts/build-local-conda-package.sh

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ function main() {
2222

2323
local package_path="$( get_package_path )"
2424
local package_name="$( basename -- "$package_path")"
25-
local package_version=$( get_package_version "$package_name" )
25+
local package_version="$( get_package_version "$package_name" )"
26+
local python_min_version="$( get_python_min_version )"
2627

2728
tmp_dir="$( mktemp -d --tmpdir "emsarray-conda-build.XXXXXXX" )"
2829
files_to_clean+=( "$tmp_dir" )
2930
cd "$tmp_dir"
3031

3132
cp -R "$feedstock_path/recipe" "$tmp_dir/recipe"
3233
recipe_path="$tmp_dir/recipe/meta.yaml"
33-
update_recipe "$recipe_path" "$package_path" "$package_version"
34+
update_recipe "$recipe_path" "$package_path" "$package_version" "$python_min_version"
3435

3536
cat "$recipe_path"
3637

@@ -57,14 +58,30 @@ function get_package_version() {
5758
echo "$package_version"
5859
}
5960

61+
function get_python_min_version() {
62+
local pyproject_path="$PROJECT/pyproject.toml"
63+
local python_min_version="$( cat "$pyproject_path" \
64+
| grep "requires-python" \
65+
| sed 's!requires-python = "[>=]*\(.*\)".*$!\1!' )"
66+
67+
if [[ -z "$python_min_version" ]] ; then
68+
echo "Could not find requires-python line in pyproject.toml"
69+
exit 1
70+
fi
71+
72+
echo "$python_min_version"
73+
}
74+
6075
function update_recipe() {
6176
local recipe_path="$1"
6277
local package_path="$2"
6378
local package_version="$3"
79+
local python_min_version="$4"
6480

6581
sed \
66-
-e 's!set version = ".*"!set version = "'"$package_version"'"!' \
67-
-e 's!url: https://pypi.io/.*!url: "file://'"$package_path"'"!' \
82+
-e 's!{% set version = .* %}!{% set version = "'"$package_version"'" %}!' \
83+
-e 's!{% set python_min = .* %}!{% set python_min = "'"$python_min_version"'" %}!' \
84+
-e 's!url: https://pypi.org/.*!url: "file://'"$package_path"'"!' \
6885
-e '/sha256:/d' \
6986
-i "$recipe_path"
7087
}

0 commit comments

Comments
 (0)