diff --git a/.woodpecker.yml b/.woodpecker.yml index 876ceab..de2eccf 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -3,7 +3,7 @@ pipeline: group: test image: python:3.7-alpine commands: - - pip install pipenv==2022.1.8 + - pip install pipenv==2022.4.20 - pipenv install --dev --deploy - pipenv run almake test-pytest # We only test with pytest on 3.7 @@ -22,7 +22,7 @@ pipeline: group: test image: python:3.9-alpine commands: - - pip install pipenv==2022.1.8 pre-commit==2.17.0 + - pip install pipenv==2022.4.20 pre-commit==2.17.0 - pre-commit run --all-files - pipenv install --dev --deploy - pipenv run almake test @@ -33,7 +33,7 @@ pipeline: group: test image: python:3.10-alpine commands: - - pip install pipenv==2022.1.8 pre-commit==2.17.0 + - pip install pipenv==2022.4.20 pre-commit==2.17.0 - pre-commit run --all-files - pipenv install --dev --deploy - pipenv run almake test diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c7b3c7..e38f4b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [6.0.3 - 2022-04-22] + +### Changed + +- Bug fixes. + +## [6.0.2 - 2022-04-22] + +### Changed + +- Replace setuptools with flit. + +## [6.0.1 - 2022-04-22] + +### Changed + +- Use `requests` session for improved performance, in particular for `sporestack server list`. + ## [6.0.0 - 2022-04-14] ### Fixed diff --git a/Pipfile.lock b/Pipfile.lock index 724ca4f..016e64e 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -31,11 +31,11 @@ }, "click": { "hashes": [ - "sha256:5e0d195c2067da3136efb897449ec1e9e6c98282fbf30d7f9e164af9be901a6b", - "sha256:7ab900e38149c9872376e8f9b5986ddcaf68c0f413cf73678a0bca5547e6f976" + "sha256:24e1a4a9ec5bf6299411369b208c1df2188d9eb8d916302fe6bf03faed227f1e", + "sha256:479707fe14d9ec9a0757618b7a100a0ae4c4e236fac5b7f80ca68028141a1a72" ], "markers": "python_version >= '3.7'", - "version": "==8.1.1" + "version": "==8.1.2" }, "idna": { "hashes": [ @@ -127,11 +127,11 @@ }, "typing-extensions": { "hashes": [ - "sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42", - "sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2" + "sha256:6657594ee297170d19f67d55c05852a874e7eb634f4f753dbd667855e07c1708", + "sha256:f1c24655a0da0d1b67f07e17a5e6b2a105894e6824b92096378bb3668ef02376" ], - "markers": "python_version >= '3.6'", - "version": "==4.1.1" + "markers": "python_version >= '3.7'", + "version": "==4.2.0" }, "urllib3": { "hashes": [ @@ -151,14 +151,6 @@ "index": "pypi", "version": "==0.5.2" }, - "astunparse": { - "hashes": [ - "sha256:5ad93a8456f0d084c3456d059fd9a92cce667963232cbf763eac3bc5b7940872", - "sha256:c2652417f2c8b5bb325c885ae329bdf3f86424075c4fd1a128674bc6fba4b8e8" - ], - "markers": "python_version < '3.9'", - "version": "==1.6.3" - }, "attrs": { "hashes": [ "sha256:2d27e3784d7a565d36ab851fe94887c5eccd6a463168875832a1be79c82828b4", @@ -169,11 +161,11 @@ }, "bleach": { "hashes": [ - "sha256:0900d8b37eba61a802ee40ac0061f8c2b5dee29c1927dd1d233e075ebf5a71da", - "sha256:4d2651ab93271d1129ac9cbc679f524565cc8a1b791909c4a51eac4446a15994" + "sha256:08a1fe86d253b5c88c92cc3d810fd8048a16d15762e1e5b74d502256e5926aa1", + "sha256:c6d6cc054bdc9c83b48b8083e236e5f00f238428666d2ce2e083eaa5fd568565" ], - "markers": "python_version >= '3.6'", - "version": "==4.1.0" + "markers": "python_version >= '3.7'", + "version": "==5.0.0" }, "build": { "hashes": [ @@ -493,11 +485,11 @@ }, "pyparsing": { "hashes": [ - "sha256:18ee9022775d270c55187733956460083db60b37d0d0fb357445f3094eed3eea", - "sha256:a6c06a88f252e6c322f65faf8f418b16213b51bdfaece0524c1c1bc30c63c484" + "sha256:7bf433498c016c4314268d95df76c81b842a4cb2b276fa3312cfb1e1d85f6954", + "sha256:ef7b523f6356f763771559412c0d7134753f037822dad1b16945b7b846f7ad06" ], - "markers": "python_version >= '3.6'", - "version": "==3.0.7" + "markers": "python_full_version >= '3.6.8'", + "version": "==3.0.8" }, "pyproject-flake8": { "hashes": [ @@ -525,11 +517,11 @@ }, "readme-renderer": { "hashes": [ - "sha256:262510fe6aae81ed4e94d8b169077f325614c0b1a45916a80442c6576264a9c2", - "sha256:dfb4d17f21706d145f7473e0b61ca245ba58e810cf9b2209a48239677f82e5b0" + "sha256:73b84905d091c31f36e50b4ae05ae2acead661f6a09a9abb4df7d2ddcdb6a698", + "sha256:a727999acfc222fc21d82a12ed48c957c4989785e5865807c65a487d21677497" ], - "markers": "python_version >= '3.6'", - "version": "==34.0" + "markers": "python_version >= '3.7'", + "version": "==35.0" }, "requests": { "extras": [ @@ -583,11 +575,11 @@ }, "tqdm": { "hashes": [ - "sha256:4230a49119a416c88cc47d0d2d32d5d90f1a282d5e497d49801950704e49863d", - "sha256:6461b009d6792008d0000e1b0c7ca50195ec78c0e808a3a6b668a56a3236c3a5" + "sha256:40be55d30e200777a307a7585aee69e4eabb46b4ec6a4b4a5f2d9f11e7d5408d", + "sha256:74a2cdefe14d11442cedf3ba4e21a3b84ff9a2dbdc6cfae2c34addb2a14a5ea6" ], "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", - "version": "==4.63.1" + "version": "==4.64.0" }, "twine": { "hashes": [ @@ -599,26 +591,26 @@ }, "types-requests": { "hashes": [ - "sha256:2d371183c535208d2cc8fe7473d9b49c344c7077eb70302eb708638fb86086a8", - "sha256:77d09182a68e447e9e8b0ffc21abf54618b96f07689dffbb6a41cf0356542969" + "sha256:63344573cde6c4efd44d867c0158d9fb7e6beb95721cbe9882f3f857ee8a5398", + "sha256:68b8de86552116424ec23b77afc925e111afb6496d3821b183b7d151b3b834d4" ], "index": "pypi", - "version": "==2.27.15" + "version": "==2.27.20" }, "types-urllib3": { "hashes": [ - "sha256:24d64e441168851eb05f1d022de18ae31558f5649c8f1117e384c2e85e31315b", - "sha256:bd0abc01e9fb963e4fddd561a56d21cc371b988d1245662195c90379077139cd" + "sha256:40f8fb5e8cd7d57e8aefdee3fdd5e930aa1a1bb4179cdadd55226cea588af790", + "sha256:ff7500641824f881b2c7bde4cc57e6c3abf03d1e005bae83aca752e77213a5da" ], - "version": "==1.26.11" + "version": "==1.26.13" }, "typing-extensions": { "hashes": [ - "sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42", - "sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2" + "sha256:6657594ee297170d19f67d55c05852a874e7eb634f4f753dbd667855e07c1708", + "sha256:f1c24655a0da0d1b67f07e17a5e6b2a105894e6824b92096378bb3668ef02376" ], - "markers": "python_version >= '3.6'", - "version": "==4.1.1" + "markers": "python_version >= '3.7'", + "version": "==4.2.0" }, "urllib3": { "hashes": [ @@ -645,11 +637,11 @@ }, "zipp": { "hashes": [ - "sha256:9f50f446828eb9d45b267433fd3e9da8d801f614129124863f9c51ebceafb87d", - "sha256:b47250dd24f92b7dd6a0a8fc5244da14608f3ca90a5efcd37a3b1642fac9a375" + "sha256:56bf8aadb83c24db6c4b577e13de374ccfb67da2078beba1d037c17980bf43ad", + "sha256:c4f6e5bbf48e74f7a38e7cc5b0480ff42b0ae5178957d564d18932525d5cf099" ], "markers": "python_version >= '3.7'", - "version": "==3.7.0" + "version": "==3.8.0" } } } diff --git a/src/sporestack/__init__.py b/src/sporestack/__init__.py index 18f46b2..49bea37 100644 --- a/src/sporestack/__init__.py +++ b/src/sporestack/__init__.py @@ -2,4 +2,4 @@ __all__ = ["api", "api_client", "exceptions"] -__version__ = "6.0.2" +__version__ = "6.0.3" diff --git a/src/sporestack/api_client.py b/src/sporestack/api_client.py index 3d57c6d..6f33f2b 100644 --- a/src/sporestack/api_client.py +++ b/src/sporestack/api_client.py @@ -5,8 +5,7 @@ from typing import Any, Dict, Optional import requests -from . import api, exceptions -from .version import __version__ +from . import __version__, api, exceptions log = logging.getLogger(__name__)