Skip to content

Commit c08b920

Browse files
authored
Merge pull request #71 from OceanNetworksCanada/2.6.0
2.6.0
2 parents 06e6559 + a980228 commit c08b920

8 files changed

Lines changed: 36 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
py:
22+
- "3.13"
2223
- "3.12"
2324
- "3.11"
2425
- "3.10"
25-
- "3.9"
2626
os:
2727
- ubuntu-latest
2828
steps:

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## v2.6.0 (2025-12-04)
4+
5+
### Enhancements
6+
7+
- Bump the minimum Python version from 3.9 to 3.10.
8+
9+
This is in alignment with the [status of Python versions](https://devguide.python.org/versions/).
10+
11+
- ONC class can get the token by checking an environment variable called `ONC_TOKEN`.
12+
([#67](https://github.com/OceanNetworksCanada/api-python-client/pull/67)).
13+
14+
This means users can use `onc = ONC()` if `ONC_TOKEN` is set correctly (probably in a .env file)
15+
16+
- Added a new method called `getDataAvailability`, which matches the new OpenAPI end point
17+
[`/dataAvailability/dataproducts`](https://data.oceannetworks.ca/OpenAPI#get-/dataAvailability/dataproducts).
18+
([#70](https://github.com/OceanNetworksCanada/api-python-client/pull/70)).
19+
20+
- Change the default value of `showWarning` to be `True`.
21+
22+
### Fixes
23+
24+
- Fix 0 file size in the print message when calling `orderDataProduct`
25+
([#64](https://github.com/OceanNetworksCanada/api-python-client/pull/64)).
26+
27+
### Contributors
28+
29+
- [Kan Fu](https://github.com/kan-fu)
30+
331
## v2.5.1 (2025-07-12)
432

533
### Enhancements

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,18 +238,18 @@ The actual tox environments to run are specified in the [[gh]](https://github.co
238238
```
239239
[gh]
240240
python =
241-
3.9 = py39
242241
3.10 = py310, format-check, lint
243242
3.11 = py311
244243
3.12 = py312
244+
3.13 = py313
245245
```
246246

247247
In the config above, tox will run different sets of tox environments on different Python versions.
248248

249-
- on Python 3.9 job, tox runs `py39` environment,
250249
- on Python 3.10 job, tox runs `py310`, `format-check` and `lint` environments,
251250
- on Python 3.11 job, tox runs `py311` environment,
252251
- on Python 3.12 job, tox runs `py312` environment.
252+
- on Python 3.13 job, tox runs `py313` environment.
253253

254254
_ci.yml_ uses a matrix strategy for operating systems.
255255
So for each Python version, it will run three times for Windows, Ubuntu, and Mac OS.

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
project = "onc"
1010
copyright = "2025, ONC Data Team"
1111
author = "ONC Data Team"
12-
release = "2.5.1"
12+
release = "2.6.0"
1313

1414
# -- General configuration ---------------------------------------------------
1515
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "onc"
7-
version = "2.5.1"
7+
version = "2.6.0"
88
description = "Oceans 3.0 API Python Client Library"
99
readme = "README.md"
1010
authors = [
1111
{ name = "ONC Data Team", email = "api_support@oceannetworks.ca" },
1212
]
1313
license = { file = 'LICENSE.txt' }
14-
requires-python = ">=3.9"
14+
requires-python = ">=3.10"
1515
dependencies = [
1616
"requests",
1717
'python-dateutil',

src/onc/modules/_OncService.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
import logging
42
import pprint
53
import weakref

src/onc/onc.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
import datetime
42
import json
53
import os

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
min_version = 4.0
33
env_list =
4-
py39
4+
py310
55
format-check
66
lint
77
isolated_build = True
@@ -54,7 +54,7 @@ commands = sphinx-autobuild -W doc/source doc/build/html --watch "*.md" --watch
5454

5555
[gh]
5656
python =
57-
3.9 = py39
5857
3.10 = py310, format-check, lint
5958
3.11 = py311
6059
3.12 = py312
60+
3.13 = py313

0 commit comments

Comments
 (0)