Skip to content

Commit 3338b15

Browse files
Zeitsperrehuard
andauthored
Attribution cleanup (#89)
* update .pre-commit-config.yaml * remove unused MANIFEST.in * update licensing and attribution information * update attribution roles * update attribution roles * remove unused entry in PULL_REQUEST_TEMPLATE.md * Correct copyright holder name in __init__.py * Revise CHANGELOG for version updates and fixes Updated changelog to reflect recent changes, fixes, and breaking changes. --------- Co-authored-by: David Huard <[email protected]>
1 parent 316164d commit 3338b15

File tree

8 files changed

+61
-38
lines changed

8 files changed

+61
-38
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
- [ ] (If applicable) Documentation has been added / updated (for bug fixes / features).
77
- [ ] (If applicable) Tests have been added.
88
- [ ] CHANGELOG.rst has been updated (with summary of main changes).
9-
- [ ] Link to issue (:issue:`number`) and pull request (:pull:`number`) has been added.
109

1110
### What kind of change does this PR introduce?
1211

.pre-commit-config.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,22 @@ repos:
1313
hooks:
1414
- id: trailing-whitespace
1515
- id: end-of-file-fixer
16+
exclude: '.ipynb'
17+
- id: fix-byte-order-marker
18+
- id: name-tests-test
19+
args: [ '--pytest-test-first' ]
20+
- id: no-commit-to-branch
21+
args: [ '--branch', 'main' ]
1622
- id: check-docstring-first
23+
- id: check-merge-conflict
1724
- id: check-json
18-
- id: check-yaml
1925
- id: check-toml
26+
- id: check-yaml
27+
args: [ '--allow-multiple-documents' ]
28+
- id: debug-statements
29+
- id: pretty-format-json
30+
args: [ '--autofix', '--no-ensure-ascii', '--no-sort-keys' ]
31+
exclude: '.ipynb'
2032
- repo: https://github.com/pappasam/toml-sort
2133
rev: v0.24.2
2234
hooks:
@@ -87,7 +99,6 @@ repos:
8799
- id: check-hooks-apply
88100
- id: check-useless-excludes
89101

90-
91102
ci:
92103
autofix_commit_msg: |
93104
[pre-commit.ci] auto fixes from pre-commit.com hooks

.zenodo.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,37 @@
22
"title": "xncml",
33
"creators": [
44
{
5-
"name": "Anderson Banihirwe"
5+
"name": "Banihirwe, Anderson",
6+
"orcid": "0000-0001-6583-571X"
7+
},
8+
{
9+
"name": "Huard, David",
10+
"affiliation": "Ouranos, Montréal, Québec, Canada",
11+
"orcid": "0000-0003-0311-5498"
12+
},
13+
{
14+
"name": "Aoun, Abel",
15+
"orcid": "0000-0003-2289-2890"
16+
},
17+
{
18+
"name": "Smith, Trevor James",
19+
"affiliation": "Ouranos, Montréal, Québec, Canada",
20+
"orcid": "0000-0001-5393-8359"
21+
},
22+
{
23+
"name": "Charette-Migneault, Francis",
24+
"affiliation": "CRIM, Montréal, Québec, Canada",
25+
"orcid": "0000-0003-4862-3349"
26+
},
27+
{
28+
"name": "Bourgault, Pascal",
29+
"affiliation": "Ouranos, Montréal, Québec, Canada",
30+
"orcid": "0000-0003-1192-0403"
631
}
732
],
833
"keywords": [
34+
"netcdf",
35+
"xarray",
936
"xncml"
1037
],
1138
"license": "Apache-2.0",

AUTHORS.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Credits
33
=======
44

5-
Development Lead
6-
----------------
5+
Development Leads
6+
-----------------
77
* Anderson Banihirwe <[email protected]> `@andersy005 <https://github.com/andersy005>`_
88
* David Huard <[email protected]> `@huard <https://github.com/huard>`_
99

CHANGELOG.rst

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@
22
Changelog
33
=========
44

5-
..
6-
`Unreleased <https://github.com/xarray-contrib/xncml/tree/master>`_ (latest)
7-
----------------------------------------------------------------------------
5+
`Unreleased <https://github.com/xarray-contrib/xncml/tree/master>`_ (latest)
6+
----------------------------------------------------------------------------
7+
Contributors: Trevor James Smith (:user:`Zeitsperre`).
88

9-
Contributors:
9+
Fixes
10+
^^^^^
11+
- Author and license information have been updated in the top-most ``__init__.py``, ``.zenodo.json``, and ``pyproject.toml`` files.
1012

11-
Changes
12-
^^^^^^^
13-
* No change.
14-
15-
Fixes
16-
^^^^^
17-
* No change.
13+
Internal changes
14+
^^^^^^^^^^^^^^^^
15+
- Removed the obsolete ``MANIFEST.in`` file.
16+
- New `pre-commit` checks have been added to the ``.pre-commit-config.yaml`` file.
1817

1918
.. _changes_0.5.0:
2019

@@ -23,12 +22,10 @@ Changelog
2322

2423
Bug fixes
2524
^^^^^^^^^
26-
2725
- Scalar attributes that are not strings are no longer wrapped in tuples of length==1 (by :user:`bzah`).
2826

2927
Breaking changes
3028
^^^^^^^^^^^^^^^^
31-
3229
- Nested group handling (by :user:`bzah`):
3330
- Before this version, all groups were read, but conflicting variable names in-between groups would shadow data. Now, similarly to ``xarray.open_dataset``, ``open_ncml`` accepts an optional ``group`` argument to specify which group should be read. When ``group`` is not specified, it defaults to the root group. Additionally ``group`` can be set to ``'*'`` so that every group is read and the hierarchy is flattened. In the event of conflicting variable/dimension names across groups, the conflicting name will be modified by appending ``'__n'`` where n is incremented.
3431
- Enums are no longer transformed into CF flag_values and flag_meanings attributes, instead they are stored in the ``encoding["dtype"].metadata`` of their respective variable. This is aligned with what was done on `xarray` v2024.01.0 (by :user:`bzah`).
@@ -37,7 +34,6 @@ Breaking changes
3734

3835
Internal changes
3936
^^^^^^^^^^^^^^^^
40-
4137
- Added support for running `pytest` with `pytest-cov` (by :user:`Zeitsperre`).
4238
- Reworked the GitHub CI testing workflow to perform version checks as well as tests with `pytest-cov` (by :user:`Zeitsperre`).
4339
- The `xncml` package has been significantly restructured to improve maintainability (by :user:`bzah` and :user:`Zeitsperre`):
@@ -68,7 +64,6 @@ Internal changes
6864
- Add support for Python 3.12
6965
- Drop support for Python 3.8
7066

71-
7267
.. _changes-0.3:
7368

7469
0.3 (2023-08-28)
@@ -79,7 +74,6 @@ Internal changes
7974
- Closing the dataset returned by `open_ncml` will close the underlying opened files (by :user:`huard`).
8075
- Add `Dataset.from_text` classmethod to create a `Dataset` from an XML string (by :user:`huard`).
8176

82-
8377
.. _changes-0.2:
8478

8579
0.2 (2023-02-23)
@@ -90,12 +84,11 @@ Internal changes
9084
- Add support in `Dataset` for NcML documents using the `ncml` namespace (by :user:`huard`).
9185
- Implement `Dataset.to_cf_dict` method to export CF-JSON dictionary (by :user:`huard`).
9286

93-
9487
.. _changes-0.1:
9588

9689
0.1 Initial release (2022-11-24)
9790
--------------------------------
9891

99-
- Manipulate NcML file: add & remove attributes, variables and dimensions. (by :user:`andersy005`).
100-
- Implement `open_ncml`, which returns an `xarray.Dataset` built from an NcML. Note that
101-
Only a subset of the NcML syntax is supported. (by :user:`huard`).
92+
- Manipulate NcML file: add & remove attributes, variables and dimensions. (by :user:`andersy005`).
93+
- Implement `open_ncml`, which returns an `xarray.Dataset` built from an NcML. Note that
94+
Only a subset of the NcML syntax is supported. (by :user:`huard`).

MANIFEST.in

Lines changed: 0 additions & 8 deletions
This file was deleted.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ build-backend = "flit_core.buildapi"
55
[project]
66
name = "xncml"
77
authors = [
8-
{name = "Anderson Banihirwe", email = "[email protected]"}
8+
{name = "Anderson Banihirwe", email = "[email protected]"},
9+
{name = "David Huard", email = "[email protected]"}
910
]
1011
maintainers = [
11-
{name = "Anderson Banihirwe", email = "[email protected]"},
1212
{name = "Abel Aoun", email = "[email protected]"},
1313
{name = "David Huard", email = "[email protected]"},
14-
{name = "Trevor James Smith", email = "[email protected]"}
14+
{name = "Trevor James Smith", email = "[email protected]"}
1515
]
1616
description = "Tools for manipulating and opening NCML (NetCDF Markup) files with/for xarray"
1717
readme = {file = "README.rst", content-type = "text/x-rst"}
@@ -76,6 +76,7 @@ docs = [
7676
all = ["xncml[dev]", "xncml[docs]"]
7777

7878
[project.urls]
79+
"Homepage" = "https://xncml.readthedocs.io/"
7980
"Changelog" = "https://xncml.readthedocs.io/en/stable/changelog.html"
8081
"Issue tracker" = "https://github.com/xarray-contrib/xncml/issues"
8182
"Source" = "https://github.com/xarray-contrib/xncml"

src/xncml/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
###################################################################################
44
# Apache Software License 2.0
55
#
6-
# Copyright (c) 2019-2024, Anderson Banihirwe, David Huard
6+
# Copyright (c) 2019-2025, Anderson Banihirwe, David Huard, Abel Aoun, Trevor James Smith, Francis Charette-Migneault, Pascal Bourgault
77
#
88
# Licensed under the Apache License, Version 2.0 (the "License");
99
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)