Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
fail-fast: false
matrix:
py:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
os:
- ubuntu-latest
steps:
Expand Down
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

## v2.6.0 (2025-12-04)

### Enhancements

- Bump the minimum Python version from 3.9 to 3.10.

This is in alignment with the [status of Python versions](https://devguide.python.org/versions/).

- ONC class can get the token by checking an environment variable called `ONC_TOKEN`.
([#67](https://github.com/OceanNetworksCanada/api-python-client/pull/67)).

This means users can use `onc = ONC()` if `ONC_TOKEN` is set correctly (probably in a .env file)

- Added a new method called `getDataAvailability`, which matches the new OpenAPI end point
[`/dataAvailability/dataproducts`](https://data.oceannetworks.ca/OpenAPI#get-/dataAvailability/dataproducts).
([#70](https://github.com/OceanNetworksCanada/api-python-client/pull/70)).

- Change the default value of `showWarning` to be `True`.

### Fixes

- Fix 0 file size in the print message when calling `orderDataProduct`
([#64](https://github.com/OceanNetworksCanada/api-python-client/pull/64)).

### Contributors

- [Kan Fu](https://github.com/kan-fu)

## v2.5.1 (2025-07-12)

### Enhancements
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,18 +238,18 @@ The actual tox environments to run are specified in the [[gh]](https://github.co
```
[gh]
python =
3.9 = py39
3.10 = py310, format-check, lint
3.11 = py311
3.12 = py312
3.13 = py313
```

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

- on Python 3.9 job, tox runs `py39` environment,
- on Python 3.10 job, tox runs `py310`, `format-check` and `lint` environments,
- on Python 3.11 job, tox runs `py311` environment,
- on Python 3.12 job, tox runs `py312` environment.
- on Python 3.13 job, tox runs `py313` environment.

_ci.yml_ uses a matrix strategy for operating systems.
So for each Python version, it will run three times for Windows, Ubuntu, and Mac OS.
Expand Down
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = "onc"
copyright = "2025, ONC Data Team"
author = "ONC Data Team"
release = "2.5.1"
release = "2.6.0"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ build-backend = "setuptools.build_meta"

[project]
name = "onc"
version = "2.5.1"
version = "2.6.0"
description = "Oceans 3.0 API Python Client Library"
readme = "README.md"
authors = [
{ name = "ONC Data Team", email = "api_support@oceannetworks.ca" },
]
license = { file = 'LICENSE.txt' }
requires-python = ">=3.9"
requires-python = ">=3.10"
dependencies = [
"requests",
'python-dateutil',
Expand Down
2 changes: 0 additions & 2 deletions src/onc/modules/_OncService.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import logging
import pprint
import weakref
Expand Down
2 changes: 0 additions & 2 deletions src/onc/onc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import datetime
import json
import os
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
min_version = 4.0
env_list =
py39
py310
format-check
lint
isolated_build = True
Expand Down Expand Up @@ -54,7 +54,7 @@ commands = sphinx-autobuild -W doc/source doc/build/html --watch "*.md" --watch

[gh]
python =
3.9 = py39
3.10 = py310, format-check, lint
3.11 = py311
3.12 = py312
3.13 = py313