Skip to content

Commit

Permalink
Merge branch 'main' into packaging-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre authored Sep 8, 2023
2 parents da82f9d + d2d261a commit e87629d
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"project_slug": "xscen",
"project_short_description": "A climate change scenario-building analysis framework, built with xclim/xarray.",
"pypi_username": "RondeauG",
"version": "0.7.2-beta",
"version": "0.7.3-beta",
"use_pytest": "y",
"use_black": "y",
"add_pyup_badge": "n",
Expand Down
9 changes: 7 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
# not configurations related to the deployment process itself.

CI:
- .* # all '.<something>' files
- .cruft.json
- .editorconfig
- .gitignore
- .pre-commit-config.yaml
- .readthedocs.yml
- .secrets.baseline
- .yamllint.yaml
- .github/workflows/*
- docs/Makefile
- tox.ini
Expand All @@ -15,7 +21,6 @@ CI:
docs:
- .readthedocs.yml
- docs/**/*
- AUTHORS.rst
- CONTRIBUTING.rst
- ISSUE_TEMPLATE/**/*
- ISSUE_TEMPLATE.md
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ repos:
- id: check-json
- id: pretty-format-json
args: [ '--autofix', '--no-ensure-ascii', '--no-sort-keys' ]
exclude: .ipynb
- id: check-yaml
args: [ '--allow-multiple-documents' ]
exclude: conda/xscen/meta.yaml
Expand Down
25 changes: 25 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@
History
=======

v0.8.0 (unreleased)
-------------------
Contributors to this version: Gabriel Rondeau-Genesse (:user:`RondeauG`).

Announcements
^^^^^^^^^^^^^
* N/A

New features and enhancements
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* N/A

Breaking changes
^^^^^^^^^^^^^^^^
* N/A

Bug fixes
^^^^^^^^^
* N/A

Internal changes
^^^^^^^^^^^^^^^^
* Fixed pre-commit's pretty-format-json so it ignores notebooks. (:pull:`254`).
* Fixed the labeler so docs/CI isn't automatically added for contributions by new collaborators. (:pull:`254`).

v0.7.1 (2023-08-23)
-------------------
* Update dependencies by removing ``pygeos``, pinning ``shapely>=2`` and ``intake-esm>=2023.07.07`` as well as other small fixes to the environment files. (:pull:`243`).
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/2_getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@
"\n",
"`xs.compute_indicators` makes use of *xclim*'s indicator modules functionalities to compute a given list of indicators. It is called by either using:\n",
"\n",
"- The path to a [YAML file](https://xclim.readthedocs.io/en/stable/xclim.core.html?highlight=yaml#yaml-file-structure) structured in a way compatible with *xclim*'s `build_indicator_module_from_yaml`\n",
"- The path to a [YAML file](https://xclim.readthedocs.io/en/stable/api.html#yaml-file-structure) structured in a way compatible with *xclim*'s `build_indicator_module_from_yaml`\n",
"- An indicator module directly\n",
"- A sequence of indicators\n",
"- A sequence of tuples as returned by calling `iter_indicators()` on an indicator module.\n",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.7.2-beta
current_version = 0.7.3-beta
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+).(?P<patch>\d+)(\-(?P<release>[a-z]+))?
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@
test_suite="tests",
extras_require={"dev": dev_requirements},
url="https://github.com/Ouranosinc/xscen",
version="0.7.2-beta",
version="0.7.3-beta",
zip_safe=False,
)
2 changes: 1 addition & 1 deletion tests/test_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def test_variables(self):
xs.diagnostics.health_checks(ds, variables_and_units={"tas": "degC"})
with pytest.warns(
UserWarning,
match="Data units kelvin are not compatible with requested 1 millimeter.",
match="Data units kelvin are not compatible with requested mm.",
):
xs.diagnostics.health_checks(ds, variables_and_units={"tas": "mm"})

Expand Down
2 changes: 1 addition & 1 deletion tests/test_xscen.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ def test_package_metadata(self):
contents = f.read()
assert """Gabriel Rondeau-Genesse""" in contents
assert '__email__ = "[email protected]"' in contents
assert '__version__ = "0.7.2-beta"' in contents
assert '__version__ = "0.7.3-beta"' in contents
2 changes: 1 addition & 1 deletion xscen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

__author__ = """Gabriel Rondeau-Genesse"""
__email__ = "[email protected]"
__version__ = "0.7.2-beta"
__version__ = "0.7.3-beta"


# monkeypatch so that warnings.warn() doesn't mention itself
Expand Down

0 comments on commit e87629d

Please sign in to comment.