Skip to content

Commit

Permalink
Release 0.7.2 (#23)
Browse files Browse the repository at this point in the history
## [0.7.2] - 2023-11-06

- Patched `urllib3` dependency to latest version to resolve
`CVE-2023-45803`.
  • Loading branch information
treyburn authored Nov 6, 2023
1 parent 6ca173b commit d5ec208
Show file tree
Hide file tree
Showing 15 changed files with 93 additions and 73 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: poetry install --with dev,docs
- name: Build project documentation
uses: ./.github/actions/docsbuild
tests:
test-unit:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -44,6 +44,20 @@ jobs:
run: poetry install --with dev
- name: Run tests - Unit
uses: ./.github/actions/tests/unit
- name: Run tests - install check
uses: ./.github/actions/tests/install
test-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pipx install poetry
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: "poetry"
- name: Install dependencies
run: poetry install --with dev
- name: Run tests - Integration
if: github.actor != 'dependabot[bot]'
uses: ./.github/actions/tests/integration
Expand All @@ -55,8 +69,6 @@ jobs:
client_id: ${{ secrets.STAGING_PYTHON_SDK_CLIENT_ID }}
client_secret: ${{ secrets.STAGING_PYTHON_SDK_SECRET }}
validate_cert: "true"
- name: Run tests - install check
uses: ./.github/actions/tests/install
lints:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.7.2] - 2023-11-06

- Patched `urllib3` dependency to latest version to resolve `CVE-2023-45803`.

## [0.7.1] - 2023-10-13

- A number of type conversions have been added for user convenience.
Expand Down
130 changes: 63 additions & 67 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "runzero-sdk"
version = "0.7.1"
version = "0.7.2"
description = "The runZero platform sdk"
license = "BSD-2-Clause"
authors = ["runZero <support@runzero.com>"]
Expand Down
1 change: 1 addition & 0 deletions runzero/api/admin/_sdk_source_icon.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""this private module holds only the default python SDK custom integration icon in base64 encoded format"""

# pylint: disable=C0301
_PY_ICON_BYTES = (
b"\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00"
Expand Down
1 change: 1 addition & 0 deletions runzero/api/admin/custom_integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
These operations are privileged and require an account token directly or an OAuth key that can generate one.
"""

import base64
import pathlib
import uuid
Expand Down
1 change: 1 addition & 0 deletions runzero/api/custom_integrations.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
enables standard access to of runZero custom integrations, limited to read operations.
"""

import base64
import uuid
from typing import Any, List, Optional
Expand Down
1 change: 1 addition & 0 deletions runzero/api/imports/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
These operations are privileged and require an account token directly or an OAuth key that can generate one.
"""

import gzip
import tempfile
import time
Expand Down
1 change: 1 addition & 0 deletions runzero/api/tasks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Management of runZero tasks.
"""

import uuid
from typing import Dict, List, Optional, Union

Expand Down
1 change: 1 addition & 0 deletions runzero/client/_http/io.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
io contains classes which wrap network communication and handle errors in a consistent fashion.
"""

from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional

from requests import JSONDecodeError, PreparedRequest
Expand Down
1 change: 0 additions & 1 deletion runzero/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
if they are not useful outside of that package, but should inherit a base type here.
"""


class Error(Exception):
"""Error is a named Exception class representing bottom-level runZero Error type.
Expand Down
1 change: 1 addition & 0 deletions runzero/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
available here. Not all objects in the private module, which is generated from
OpenAPI specs, are usable in this project today.
"""

from ipaddress import AddressValueError, IPv4Address, IPv6Address

from pydantic import ValidationError
Expand Down
1 change: 1 addition & 0 deletions runzero/types/errors.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
errors provides named exception types for working with or derived from runZero's data model types.
"""

from runzero.types._data_models_gen import Problem


Expand Down
1 change: 1 addition & 0 deletions runzero/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""holds the semver-compatible version tag"""

from importlib import metadata

try:
Expand Down

0 comments on commit d5ec208

Please sign in to comment.