File tree Expand file tree Collapse file tree 6 files changed +23
-15
lines changed
Expand file tree Collapse file tree 6 files changed +23
-15
lines changed Original file line number Diff line number Diff line change 11cff-version : 1.2.0
22title : emsarray
3- version : 0.6.1
4- date-released : 2023-09-27
3+ version : 0.7.0
4+ date-released : 2024-07-10
55type : software
66authors :
77 - given-names : Tim
Original file line number Diff line number Diff line change 1- =============================
2- Next release (in development)
3- =============================
1+ =====
2+ 0.7.0
3+ =====
4+
5+ Released on 2024-07-10
46
57* Fix a ``FutureWarning `` on accessing :attr: `xarray.Dataset.dims `
68 with xarray >= 2023.12.0
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Release notes
44
55.. toctree ::
66
7- development
7+ 0.7.0
88 0.6.1
99 0.6.0
1010 0.5.0
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
77[project ]
88name = " emsarray"
9- version = " 0.6.1 "
9+ version = " 0.7.0 "
1010description = " xarray extension that supports multiple geometry conventions"
1111authors = [
1212 {
name =
" Coastal Environmental Modelling team, Oceans and Atmosphere, CSIRO" ,
email =
" [email protected] " },
@@ -28,7 +28,7 @@ dynamic = ["readme"]
2828
2929[project .urls ]
3030Documentation = " https://emsarray.readthedocs.io/"
31- "Release notes" = " https://emsarray.readthedocs.io/en/stable/releases/0.6.1 /"
31+ "Release notes" = " https://emsarray.readthedocs.io/en/stable/releases/0.7.0 /"
3232Source = " https://github.com/csiro-coasts/emsarray/"
3333
3434[project .optional-dependencies ]
Original file line number Diff line number Diff line change 11import argparse
2- import configparser
32import datetime
43import pathlib
54import re
65import shlex
76import subprocess
87import sys
8+ import tomllib
99
1010PROJECT = pathlib .Path (__file__ ).parent .parent
1111
1212# These files contain the version string that needs to be updated
1313citation_file = pathlib .Path ('CITATION.cff' )
1414version_files = [
15- pathlib .Path ('setup.cfg ' ),
15+ pathlib .Path ('pyproject.toml ' ),
1616 citation_file ,
1717]
1818
@@ -201,10 +201,9 @@ def maybe_push(
201201
202202
203203def get_current_version () -> str :
204- parser = configparser .ConfigParser ()
205- with open (PROJECT / 'setup.cfg' ) as f :
206- parser .read_file (f )
207- return parser .get ('metadata' , 'version' )
204+ with open (PROJECT / 'pyproject.toml' , 'rb' ) as f :
205+ pyproject = tomllib .load (f )
206+ return pyproject ['project' ]['version' ]
208207
209208
210209def call (* args : str ) -> None :
Original file line number Diff line number Diff line change 1+ # required as this module imports optional
2+ # dependencies that are used for type hints.
3+ from __future__ import annotations
4+
15import importlib .metadata
26from collections .abc import Callable , Iterable
37from typing import Any , Literal
3438
3539_requires_plot = requires_extra (extra = 'plot' , import_error = IMPORT_EXCEPTION )
3640
37- CARTOPY_VERSION = packaging .version .Version (importlib .metadata .version ('cartopy' ))
41+ if CAN_PLOT :
42+ CARTOPY_VERSION = packaging .version .Version (importlib .metadata .version ('cartopy' ))
43+ else :
44+ CARTOPY_VERSION = packaging .version .Version ('0' )
3845CARTOPY_0_23 = CARTOPY_VERSION >= packaging .version .Version ('0.23' )
3946
4047
You can’t perform that action at this time.
0 commit comments