Skip to content

Commit

Permalink
refactor: set minimum python version to 3.8, move onc to src folder
Browse files Browse the repository at this point in the history
Also update outdated Oceans 2.0 links in the README.
  • Loading branch information
kan-fu committed Nov 29, 2023
1 parent 25e28bc commit 3eb7b06
Show file tree
Hide file tree
Showing 17 changed files with 9 additions and 18 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ONC API Python Client Library

This library facilitates access to scientific data hosted by [Ocean Networks Canada](https://oceannetworks.ca) through the
[Oceans 2.0 API](https://wiki.oceannetworks.ca/display/O2A/Oceans+2.0+API+Home) public web services.
[Oceans 3.0 API](https://wiki.oceannetworks.ca/display/O2A/Oceans+3.0+API+Home) public web services.

This repository updates the [ONC pip package](https://pypi.org/project/onc) which can be installed with the command:

Expand All @@ -11,4 +11,4 @@ pip install onc

## Documentation

For complete documentation and examples, visit https://wiki.oceannetworks.ca/display/O2A/Oceans+2.0+API+Home
For complete documentation and examples, visit https://wiki.oceannetworks.ca/display/O2A/Oceans+3.0+API+Home
23 changes: 7 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
{ name="ONC Data Team", email="[email protected]" },
]
license = {file = 'LICENSE.txt'}
requires-python = ">=3.9"
requires-python = ">=3.8"
dependencies = [
"requests",
'python-dateutil',
Expand All @@ -31,26 +31,17 @@ Homepage = "https://wiki.oceannetworks.ca/display/O2A/Oceans+3.0+API+Home"
Documentation = "https://wiki.oceannetworks.ca/display/O2A/Client+Libraries"
Source = "https://github.com/OceanNetworksCanada/api-python-client"

[tool.setuptools]
packages = ["onc"]

[tool.isort]
profile = "black"
src_paths = ["onc", "tests"]

[tool.ruff]
# Reference for the rules https://docs.astral.sh/ruff/rules/
select = [
# pycodestyle
"E", "W",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
"E", "W", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3eb7b06

Please sign in to comment.