-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from OceanNetworksCanada/2.4.0
2.4.0
- Loading branch information
Showing
5 changed files
with
117 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Publish Python 🐍 distribution 📦 to PyPI | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
name: Build distribution 📦 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
- name: Install pypa/build | ||
run: >- | ||
python3 -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: python3 -m build | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|
||
publish-to-pypi: | ||
name: >- | ||
Publish Python 🐍 distribution 📦 to PyPI | ||
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/onc | ||
permissions: | ||
id-token: write # IMPORTANT: mandatory for trusted publishing | ||
|
||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,67 @@ | ||
# Changelog | ||
|
||
## v2.3.5 and before | ||
## v2.4.0 (2024-05-30) | ||
|
||
### Enhancements | ||
|
||
- Improved package setup (pyproject.toml, linting and formatter). | ||
([#1](https://github.com/OceanNetworksCanada/api-python-client/issues/1)) | ||
- Added support of Path type for outPath (instance variable in ONC class). | ||
([#12](https://github.com/OceanNetworksCanada/api-python-client/issues/12)) | ||
- Added GitHub Actions for continuous integration. | ||
([#19](https://github.com/OceanNetworksCanada/api-python-client/issues/19)) | ||
- Added Sphinx for generating documentation. | ||
([#7](https://github.com/OceanNetworksCanada/api-python-client/issues/7)) | ||
- Improved exception types raised and caught. | ||
([#17](https://github.com/OceanNetworksCanada/api-python-client/issues/17)) | ||
- Added new public methods (`checkDataProduct`, `cancelDataProduct`, `restartDataProduct`, `getSensorCategoryCodes`) to match backend API update. | ||
([#26](https://github.com/OceanNetworksCanada/api-python-client/issues/26)) | ||
- Renamed some public methods (old names are still available) to make the naming more consistent with the api end points. | ||
([#33](https://github.com/OceanNetworksCanada/api-python-client/issues/33)) | ||
|
||
| API End Point | Old Name | New Name | | ||
| --------------------- | ---------------------- | ------------------------- | | ||
| /locations/tree | getLocationHierarchy | getLocationsTree | | ||
| /scalardata/location | getDirectByLocation | getScalardataByLocation | | ||
| /scalardata/device | getDirectByDevice | getScalardataByDevice | | ||
| /rawdata/location | getDirectRawByLocation | getRawdataByLocation | | ||
| /rawdata/device | getDirectRawByDevice | getRawdataByDevice | | ||
| /archivefile/location | getListByLocation | getArchivefileByLocation | | ||
| /archivefile/device | getListByDevice | getArchivefileByDevice | | ||
| /archivefile/download | getFile | downloadArchivefile | | ||
| N/A | getDirectFiles | downloadDirectArchivefile | | ||
|
||
- Added helper methods to combine `getXXXByLocation` and `getXXXByDevice` into `getXXX`. | ||
([#33](https://github.com/OceanNetworksCanada/api-python-client/issues/33)) | ||
- Namely, `getScalardata`, `getRawdata` and `getArchivefile`. | ||
|
||
### Fixes | ||
|
||
- Removed unused modules (onc/ags.py, onc/dap.py, onc/nerc.py, onc/sos.py). | ||
([#1](https://github.com/OceanNetworksCanada/api-python-client/issues/1)) | ||
|
||
### Tests | ||
|
||
- Added support using .env file for storing the token when running tests. | ||
([#2](https://github.com/OceanNetworksCanada/api-python-client/issues/2)) | ||
- Replaced robot framework with pytest. | ||
([#10](https://github.com/OceanNetworksCanada/api-python-client/issues/10)) | ||
|
||
### Contributors | ||
|
||
- [Jacob Stevens-Haas](https://github.com/Jacob-Stevens-Haas) | ||
- [Kan Fu](https://github.com/kan-fu) | ||
- [Renfu Li](https://github.com/Renfu-Li) | ||
|
||
### Reviewers panel | ||
|
||
- [Angela Schlesinger](https://github.com/aschlesin) | ||
- [Eli Ferguson](https://github.com/eliferguson) | ||
- [Jacob Stevens-Haas](https://github.com/Jacob-Stevens-Haas) | ||
- [Spencer Plovie](https://github.com/spencerwplovie) | ||
|
||
## v2.3.5 (2019-12-12) and before | ||
|
||
### Contributors | ||
|
||
- Dany Cabrera | ||
- [Dany Alejandro Cabrera](https://github.com/danyalejandro) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters