object-storage-client 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/.github/workflows/ci.yaml +4 -37
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/.github/workflows/tests.yaml +1 -25
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/Cargo.lock +32 -24
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/Cargo.toml +2 -3
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/PKG-INFO +1 -2
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/docs/DEVELOPMENT.md +0 -22
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/pyproject.toml +1 -1
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_plain_client.py +42 -13
- object_storage_client-0.2.1/THIRD_PARTY_LICENSES.html +0 -6374
- object_storage_client-0.2.1/about.hbs +0 -41
- object_storage_client-0.2.1/about.toml +0 -26
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/.cargo/config.toml +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/.docker/garage.toml +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/.gitattributes +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/.github/dependabot.yml +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/.github/workflows/perf.yaml +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/.gitignore +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/.python-version +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/LICENSE +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/README.md +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/benches/alloc-counter/Cargo.toml +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/benches/alloc-counter/src/lib.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/benches/common/mod.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/benches/throughput.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/compose.yml +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/deny.toml +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/docs/BEHAVIOR.md +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/docs/CONFIGURATION.md +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/docs/ENCRYPTION.md +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/docs/TESTING.md +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/docs/UPGRADING.md +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/proptest-regressions/encryption/context.txt +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/python/object_storage_client/__init__.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/python/object_storage_client/__init__.pyi +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/python/object_storage_client/_stream.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/python/object_storage_client/py.typed +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/scripts/esdk_oracle.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/scripts/hostile-env.sh +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/scripts/perf_smoke.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/backend/aws_profile.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/backend/azure.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/backend/body.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/backend/connector.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/backend/gcs.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/backend/http.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/backend/local.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/backend/mod.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/backend/s3.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/backend/stub.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/cli/args.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/cli/enc.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/cli/keyring.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/cli/output/tests.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/cli/output.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/cli/tests.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/cli/transfer/tests.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/cli/transfer.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/cli/tree/tests.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/cli/tree.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/cli.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/client/local_delete.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/client.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/codec.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/encryption/context.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/encryption/envelope.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/encryption/fixtures.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/encryption/frame.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/encryption/fuzzing.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/encryption/header.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/encryption/keys/keyring/tests.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/encryption/keys/keyring.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/encryption/keys/mod.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/encryption/keys/raw_aes.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/encryption/mod.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/encryption/suite.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/encryption/tamper_tests.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/fsmode.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/hex.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/lib.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/main.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/python/client.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/python/encryption.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/python/mod.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/python/stream.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/registry.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/sign.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/text.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/src/upload.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/functional/aws_profile.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/functional/cli.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/functional/client.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/functional/encryption.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/functional/golden.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/functional/suite.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/functional.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/integration/azure_storage_ops.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/integration/common/azurite.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/integration/common/gcs.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/integration/common/mod.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/integration/common/provider.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/integration/encryption.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/integration/file_roundtrip.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/integration/gcs_storage_ops.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/integration/reencrypt.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/integration/s3_storage_ops.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/integration/storage_ops.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/integration.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/perf_guards.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/conftest.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_abort_at_exit.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_encrypted_client.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_encryption_runtime.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_free_threading.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_gil_contention.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_list_stream.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_profile.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_roundtrip.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_shared_client.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_stream_leak.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_stream_sticky.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_stub_conformance.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_subinterpreter.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_worker_threads.py +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/support/mock.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/support/mod.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/unit/sign.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/unit.rs +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/README.md +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/ctx_long.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/ctx_min.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/ctx_utf8.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/manifest.json +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p0_f4096.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p0_f65536.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p1_f4096.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p1_f65536.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p200000_f4096.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p200000_f65536.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p4095_f4096.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p4095_f65536.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p4096_f4096.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p4096_f65536.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p4097_f4096.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p4097_f65536.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p65535_f4096.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p65535_f65536.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p65536_f4096.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p65536_f65536.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p65537_f4096.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/esdk/p65537_f65536.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/golden/README.md +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/golden/v1/context.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/golden/v1/keyring +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/golden/v1/manifest.json +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/golden/v1/old_key.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/golden/v1/size_0.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/golden/v1/size_1.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/golden/v1/size_200000.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/golden/v1/size_65536.bin +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/keyrings/README.md +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/keyrings/one.keyring +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/keyrings/other.keyring +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/vectors/keyrings/two.keyring +0 -0
- {object_storage_client-0.2.1 → object_storage_client-0.2.2}/uv.lock +0 -0
|
@@ -61,38 +61,9 @@ jobs:
|
|
|
61
61
|
run: cargo clippy --locked --all-targets --all-features -- -D warnings -W clippy::pedantic
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
# The wheels ship the committed THIRD_PARTY_LICENSES.html: build them only if
|
|
65
|
-
# it is what the locked dependencies need, and no license is unaccepted.
|
|
66
|
-
licenses:
|
|
67
|
-
name: Third-party licenses
|
|
68
|
-
runs-on: ubuntu-latest
|
|
69
|
-
|
|
70
|
-
steps:
|
|
71
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
72
|
-
with:
|
|
73
|
-
persist-credentials: false
|
|
74
|
-
|
|
75
|
-
- name: Install Rust
|
|
76
|
-
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
|
|
77
|
-
with:
|
|
78
|
-
toolchain: stable
|
|
79
|
-
|
|
80
|
-
- uses: taiki-e/install-action@86f7a0ffb25f40114606501a311ebcfaf882ea32 # v2.88.0
|
|
81
|
-
with:
|
|
82
|
-
tool: cargo-about@0.9.3
|
|
83
|
-
|
|
84
|
-
- name: Regenerate the notices
|
|
85
|
-
run: >
|
|
86
|
-
cargo about generate --locked --fail --no-default-features
|
|
87
|
-
--features python,encryption about.hbs
|
|
88
|
-
--output-file THIRD_PARTY_LICENSES.html
|
|
89
|
-
|
|
90
|
-
- name: The committed notices are current
|
|
91
|
-
run: git diff --exit-code -- THIRD_PARTY_LICENSES.html
|
|
92
|
-
|
|
93
64
|
build-wheels:
|
|
94
65
|
name: Build wheels (${{ matrix.os }}${{ matrix.target && format(' / {0}', matrix.target) || '' }} / py${{ matrix.python }})
|
|
95
|
-
needs: [ test, rustfmt
|
|
66
|
+
needs: [ test, rustfmt ]
|
|
96
67
|
runs-on: ${{ matrix.runner || matrix.os }}
|
|
97
68
|
|
|
98
69
|
strategy:
|
|
@@ -145,7 +116,7 @@ jobs:
|
|
|
145
116
|
--out dist
|
|
146
117
|
|
|
147
118
|
# PEP 639: the license files are under *.dist-info/licenses/.
|
|
148
|
-
- name: The wheel carries the license
|
|
119
|
+
- name: The wheel carries the license
|
|
149
120
|
shell: bash
|
|
150
121
|
run: |
|
|
151
122
|
py=$(command -v python3 || command -v python)
|
|
@@ -154,12 +125,8 @@ jobs:
|
|
|
154
125
|
for path in sys.argv[1:]:
|
|
155
126
|
with zipfile.ZipFile(path) as wheel:
|
|
156
127
|
names = wheel.namelist()
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
sys.exit(f"{path}: no {name} in dist-info/licenses")
|
|
160
|
-
notices = next(n for n in names if n.endswith("/licenses/THIRD_PARTY_LICENSES.html"))
|
|
161
|
-
if b"Apache Arrow Object Store" not in wheel.read(notices):
|
|
162
|
-
sys.exit(f"{path}: the notices lack object_store's NOTICE")
|
|
128
|
+
if not any(n.endswith(".dist-info/licenses/LICENSE") for n in names):
|
|
129
|
+
sys.exit(f"{path}: no LICENSE in dist-info/licenses")
|
|
163
130
|
PY
|
|
164
131
|
|
|
165
132
|
- name: Upload wheel artifacts
|
|
@@ -171,30 +171,6 @@ jobs:
|
|
|
171
171
|
command: check advisories bans sources
|
|
172
172
|
arguments: --all-features
|
|
173
173
|
|
|
174
|
-
# Fails on a dependency license that about.toml does not accept, and when
|
|
175
|
-
# the committed notices (shipped in the wheels) differ from the locked
|
|
176
|
-
# dependencies. Regenerate as docs/DEVELOPMENT.md explains.
|
|
177
|
-
licenses:
|
|
178
|
-
name: third-party licenses
|
|
179
|
-
runs-on: ubuntu-latest
|
|
180
|
-
steps:
|
|
181
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
182
|
-
with:
|
|
183
|
-
persist-credentials: false
|
|
184
|
-
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1
|
|
185
|
-
with:
|
|
186
|
-
toolchain: stable
|
|
187
|
-
- uses: taiki-e/install-action@86f7a0ffb25f40114606501a311ebcfaf882ea32 # v2.88.0
|
|
188
|
-
with:
|
|
189
|
-
tool: cargo-about@0.9.3
|
|
190
|
-
- name: Generate the notices
|
|
191
|
-
run: >
|
|
192
|
-
cargo about generate --locked --fail --no-default-features
|
|
193
|
-
--features python,encryption about.hbs
|
|
194
|
-
--output-file "$RUNNER_TEMP/THIRD_PARTY_LICENSES.html"
|
|
195
|
-
- name: The committed notices are current
|
|
196
|
-
run: diff -u THIRD_PARTY_LICENSES.html "$RUNNER_TEMP/THIRD_PARTY_LICENSES.html"
|
|
197
|
-
|
|
198
174
|
# Merges a Dependabot PR only after every other job above has succeeded.
|
|
199
175
|
#
|
|
200
176
|
# `pull_request` (not `pull_request_target`): the PR's code runs with a
|
|
@@ -203,7 +179,7 @@ jobs:
|
|
|
203
179
|
# never gets a write token here, so this job cannot act on one.
|
|
204
180
|
dependabot-merge:
|
|
205
181
|
name: Approve and merge (Dependabot)
|
|
206
|
-
needs: [tests, msrv, integration, lint, features, python, esdk-interop, deny
|
|
182
|
+
needs: [tests, msrv, integration, lint, features, python, esdk-interop, deny]
|
|
207
183
|
# The PR author, not only `github.actor` (whoever triggered the latest event).
|
|
208
184
|
if: >-
|
|
209
185
|
github.event_name == 'pull_request'
|
|
@@ -195,9 +195,9 @@ dependencies = [
|
|
|
195
195
|
|
|
196
196
|
[[package]]
|
|
197
197
|
name = "aws-lc-rs"
|
|
198
|
-
version = "1.
|
|
198
|
+
version = "1.19.0"
|
|
199
199
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
200
|
-
checksum = "
|
|
200
|
+
checksum = "048006790404103c488e6c5616b3e7e702a71292aadda08e8f7698a9e0d2eb53"
|
|
201
201
|
dependencies = [
|
|
202
202
|
"aws-lc-sys",
|
|
203
203
|
"zeroize",
|
|
@@ -205,9 +205,9 @@ dependencies = [
|
|
|
205
205
|
|
|
206
206
|
[[package]]
|
|
207
207
|
name = "aws-lc-sys"
|
|
208
|
-
version = "0.
|
|
208
|
+
version = "0.47.0"
|
|
209
209
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
210
|
-
checksum = "
|
|
210
|
+
checksum = "8bfbe32ac36b3c428696ce315464181bc4029d689fd58e3f2a4e58c252242f52"
|
|
211
211
|
dependencies = [
|
|
212
212
|
"cc",
|
|
213
213
|
"cmake",
|
|
@@ -479,9 +479,9 @@ dependencies = [
|
|
|
479
479
|
|
|
480
480
|
[[package]]
|
|
481
481
|
name = "aws-smithy-schema"
|
|
482
|
-
version = "1.1.
|
|
482
|
+
version = "1.1.2"
|
|
483
483
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
484
|
-
checksum = "
|
|
484
|
+
checksum = "9543fc722ed4865ab29fb66bd7ed0bef7b029d265ba8c587144511e30006d431"
|
|
485
485
|
dependencies = [
|
|
486
486
|
"aws-smithy-runtime-api",
|
|
487
487
|
"aws-smithy-types",
|
|
@@ -974,9 +974,9 @@ dependencies = [
|
|
|
974
974
|
|
|
975
975
|
[[package]]
|
|
976
976
|
name = "ctutils"
|
|
977
|
-
version = "0.4.
|
|
977
|
+
version = "0.4.7"
|
|
978
978
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
979
|
-
checksum = "
|
|
979
|
+
checksum = "a2376ffd6f96d8a9db59875b4b6b0237d6900b5baf64279714e05493ce64828a"
|
|
980
980
|
dependencies = [
|
|
981
981
|
"cmov",
|
|
982
982
|
]
|
|
@@ -2024,7 +2024,7 @@ dependencies = [
|
|
|
2024
2024
|
|
|
2025
2025
|
[[package]]
|
|
2026
2026
|
name = "object-storage-client"
|
|
2027
|
-
version = "0.2.
|
|
2027
|
+
version = "0.2.2"
|
|
2028
2028
|
dependencies = [
|
|
2029
2029
|
"alloc-counter",
|
|
2030
2030
|
"async-trait",
|
|
@@ -2042,7 +2042,6 @@ dependencies = [
|
|
|
2042
2042
|
"futures",
|
|
2043
2043
|
"http",
|
|
2044
2044
|
"http-body",
|
|
2045
|
-
"http-body-util",
|
|
2046
2045
|
"object_store",
|
|
2047
2046
|
"percent-encoding",
|
|
2048
2047
|
"proptest",
|
|
@@ -2118,9 +2117,9 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
|
|
|
2118
2117
|
|
|
2119
2118
|
[[package]]
|
|
2120
2119
|
name = "openssl-probe"
|
|
2121
|
-
version = "0.2.
|
|
2120
|
+
version = "0.2.2"
|
|
2122
2121
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2123
|
-
checksum = "
|
|
2122
|
+
checksum = "7e036b411754132fd6b74e94b74e9a13c5cf606fa93d1885c35860d3060820b1"
|
|
2124
2123
|
|
|
2125
2124
|
[[package]]
|
|
2126
2125
|
name = "outref"
|
|
@@ -2643,9 +2642,9 @@ dependencies = [
|
|
|
2643
2642
|
|
|
2644
2643
|
[[package]]
|
|
2645
2644
|
name = "rustix"
|
|
2646
|
-
version = "1.1.
|
|
2645
|
+
version = "1.1.6"
|
|
2647
2646
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2648
|
-
checksum = "
|
|
2647
|
+
checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa"
|
|
2649
2648
|
dependencies = [
|
|
2650
2649
|
"bitflags 2.13.2",
|
|
2651
2650
|
"errno",
|
|
@@ -2991,9 +2990,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|
|
2991
2990
|
|
|
2992
2991
|
[[package]]
|
|
2993
2992
|
name = "smallvec"
|
|
2994
|
-
version = "1.16.
|
|
2993
|
+
version = "1.16.4"
|
|
2995
2994
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2996
|
-
checksum = "
|
|
2995
|
+
checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8"
|
|
2997
2996
|
|
|
2998
2997
|
[[package]]
|
|
2999
2998
|
name = "socket2"
|
|
@@ -3305,9 +3304,9 @@ dependencies = [
|
|
|
3305
3304
|
|
|
3306
3305
|
[[package]]
|
|
3307
3306
|
name = "tonic"
|
|
3308
|
-
version = "0.14.
|
|
3307
|
+
version = "0.14.9"
|
|
3309
3308
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3310
|
-
checksum = "
|
|
3309
|
+
checksum = "e2cdfc673aabd30fe8fee92e65837b644c37c5d47f0f97ae6d5e0f1237d15e1b"
|
|
3311
3310
|
dependencies = [
|
|
3312
3311
|
"async-trait",
|
|
3313
3312
|
"axum",
|
|
@@ -3335,9 +3334,9 @@ dependencies = [
|
|
|
3335
3334
|
|
|
3336
3335
|
[[package]]
|
|
3337
3336
|
name = "tonic-prost"
|
|
3338
|
-
version = "0.14.
|
|
3337
|
+
version = "0.14.9"
|
|
3339
3338
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3340
|
-
checksum = "
|
|
3339
|
+
checksum = "eba464054e2226f182a34489b8b079bf4c6e3e7ab5fd7fc30e024f24aa92a484"
|
|
3341
3340
|
dependencies = [
|
|
3342
3341
|
"bytes",
|
|
3343
3342
|
"prost",
|
|
@@ -3475,9 +3474,12 @@ checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da"
|
|
|
3475
3474
|
|
|
3476
3475
|
[[package]]
|
|
3477
3476
|
name = "utf8_iter"
|
|
3478
|
-
version = "1.0
|
|
3477
|
+
version = "1.1.0"
|
|
3479
3478
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3480
|
-
checksum = "
|
|
3479
|
+
checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0"
|
|
3480
|
+
dependencies = [
|
|
3481
|
+
"utf_types",
|
|
3482
|
+
]
|
|
3481
3483
|
|
|
3482
3484
|
[[package]]
|
|
3483
3485
|
name = "utf8parse"
|
|
@@ -3485,6 +3487,12 @@ version = "0.2.2"
|
|
|
3485
3487
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3486
3488
|
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
|
|
3487
3489
|
|
|
3490
|
+
[[package]]
|
|
3491
|
+
name = "utf_types"
|
|
3492
|
+
version = "1.0.0"
|
|
3493
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3494
|
+
checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6"
|
|
3495
|
+
|
|
3488
3496
|
[[package]]
|
|
3489
3497
|
name = "uuid"
|
|
3490
3498
|
version = "1.29.0"
|
|
@@ -3828,9 +3836,9 @@ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
|
|
|
3828
3836
|
|
|
3829
3837
|
[[package]]
|
|
3830
3838
|
name = "xattr"
|
|
3831
|
-
version = "1.
|
|
3839
|
+
version = "1.7.0"
|
|
3832
3840
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3833
|
-
checksum = "
|
|
3841
|
+
checksum = "963d6fab92d5504b971dc8bd90ca743c2575e590bc8071ea5bc571598667ae08"
|
|
3834
3842
|
dependencies = [
|
|
3835
3843
|
"libc",
|
|
3836
3844
|
"rustix",
|
|
@@ -9,7 +9,7 @@ license = "GPL-3.0-only"
|
|
|
9
9
|
name = "object-storage-client"
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
repository = "https://github.com/bixority/object-storage-client"
|
|
12
|
-
version = "0.2.
|
|
12
|
+
version = "0.2.2"
|
|
13
13
|
|
|
14
14
|
[lib]
|
|
15
15
|
crate-type = ["cdylib", "rlib"]
|
|
@@ -20,7 +20,7 @@ name = "object_storage_client"
|
|
|
20
20
|
async-trait = "0.1"
|
|
21
21
|
aws-config = { version = "1.13", default-features = false, features = ["rt-tokio", "default-https-client", "sso", "credentials-process"] }
|
|
22
22
|
aws-credential-types = "1.3"
|
|
23
|
-
aws-lc-rs = { version = "1.
|
|
23
|
+
aws-lc-rs = { version = "1.19", default-features = false, features = ["aws-lc-sys", "prebuilt-nasm"] }
|
|
24
24
|
aws-runtime = "1.10"
|
|
25
25
|
aws-sigv4 = { version = "1.6", default-features = false, features = ["sign-http", "http1"] }
|
|
26
26
|
aws-types = "1.7"
|
|
@@ -30,7 +30,6 @@ clap = { version = "4.6", features = ["derive", "env"], optional = true }
|
|
|
30
30
|
futures = "0.3"
|
|
31
31
|
http = "1.5"
|
|
32
32
|
http-body = "1"
|
|
33
|
-
http-body-util = "0.1"
|
|
34
33
|
object_store = { version = "0.14", features = ["aws", "gcp", "azure", "http"] }
|
|
35
34
|
percent-encoding = "2.3"
|
|
36
35
|
reqwest = { version = "0.13", features = ["rustls"], default-features = false }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: object-storage-client
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -8,7 +8,6 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
8
8
|
Classifier: Programming Language :: Python :: 3.14
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.15
|
|
10
10
|
License-File: LICENSE
|
|
11
|
-
License-File: THIRD_PARTY_LICENSES.html
|
|
12
11
|
Summary: Unified object storage client API
|
|
13
12
|
Keywords: object-store,s3,gcs,azure,python
|
|
14
13
|
Author-email: Olegs Korsaks <bixority@proton.me>
|
|
@@ -51,28 +51,6 @@ names (`AWS_CONFIG_FILE`, `AWS_SHARED_CREDENTIALS_FILE`), but the AWS SDK still
|
|
|
51
51
|
reads the process environment (SSO and STS endpoint variables, FIPS settings)
|
|
52
52
|
and `HOME` (the SSO token cache).
|
|
53
53
|
|
|
54
|
-
## Third-party licenses
|
|
55
|
-
|
|
56
|
-
The wheels statically link their dependency crates, so they ship
|
|
57
|
-
`THIRD_PARTY_LICENSES.html` next to `LICENSE` (`license-files` in
|
|
58
|
-
`pyproject.toml`; PEP 639 puts both under `*.dist-info/licenses/`). It lists
|
|
59
|
-
the license texts of the crates in the wheel (normal dependencies with
|
|
60
|
-
`--no-default-features --features python,encryption`) and the NOTICE of
|
|
61
|
-
`object_store`, which Apache-2.0 section 4(d) requires. `about.toml` names the
|
|
62
|
-
licenses that are accepted (a dependency under another one fails the `licenses`
|
|
63
|
-
jobs of `tests.yaml` and `ci.yaml`) and `about.hbs` is the template. After a
|
|
64
|
-
dependency change, regenerate and commit the file:
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
cargo install --locked cargo-about --version 0.9.3
|
|
68
|
-
cargo about generate --locked --fail --no-default-features \
|
|
69
|
-
--features python,encryption about.hbs --output-file THIRD_PARTY_LICENSES.html
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
The NOTICE text in `about.hbs` is static; keep it equal to the `NOTICE.txt` of
|
|
73
|
-
the locked `object_store`. The crate published to the registry is source only
|
|
74
|
-
and needs no notices file.
|
|
75
|
-
|
|
76
54
|
## Checks
|
|
77
55
|
|
|
78
56
|
CI runs these on every pull request, alongside the tests:
|
|
@@ -10,7 +10,7 @@ authors = [
|
|
|
10
10
|
{ name = "Olegs Korsaks", email = "bixority@proton.me" }
|
|
11
11
|
]
|
|
12
12
|
license = "GPL-3.0-only"
|
|
13
|
-
license-files = [ "LICENSE"
|
|
13
|
+
license-files = [ "LICENSE" ]
|
|
14
14
|
readme = "README.md"
|
|
15
15
|
requires-python = ">=3.13.9,<3.16.0"
|
|
16
16
|
classifiers = [
|
{object_storage_client-0.2.1 → object_storage_client-0.2.2}/tests/python/test_plain_client.py
RENAMED
|
@@ -223,9 +223,11 @@ async def test_cancelled_read_loses_nothing(plain, tmp_url):
|
|
|
223
223
|
|
|
224
224
|
|
|
225
225
|
@pytest.mark.parametrize("method", ["next", "__anext__"])
|
|
226
|
-
async def test_timeout_retry_with_loop_stall_loses_nothing(
|
|
226
|
+
async def test_timeout_retry_with_loop_stall_loses_nothing(method):
|
|
227
227
|
# (a) asyncio.timeout + loop stall + retry with fresh reads.
|
|
228
|
-
data
|
|
228
|
+
data = bytes(i % 251 for i in range(2_000_000))
|
|
229
|
+
raw = _GatedRaw([data])
|
|
230
|
+
stream = ByteStream(raw)
|
|
229
231
|
got = b""
|
|
230
232
|
timeouts = 0
|
|
231
233
|
|
|
@@ -241,6 +243,10 @@ async def test_timeout_retry_with_loop_stall_loses_nothing(plain, tmp_url, metho
|
|
|
241
243
|
chunk = await getattr(stream, method)()
|
|
242
244
|
except TimeoutError:
|
|
243
245
|
timeouts += 1
|
|
246
|
+
# The first fill is held until its read has timed out, so the
|
|
247
|
+
# retry below is the one that delivers the data.
|
|
248
|
+
if timeouts == 1:
|
|
249
|
+
raw.release()
|
|
244
250
|
continue
|
|
245
251
|
except StopAsyncIteration:
|
|
246
252
|
break
|
|
@@ -424,29 +430,25 @@ def test_loop_closed_with_read_pending_then_drain_on_new_loop(tmp_path):
|
|
|
424
430
|
loop2.close()
|
|
425
431
|
|
|
426
432
|
|
|
427
|
-
def test_superseded_read_on_resumed_loop_raises_and_loses_nothing(
|
|
433
|
+
def test_superseded_read_on_resumed_loop_raises_and_loses_nothing():
|
|
428
434
|
data = bytes(i % 251 for i in range(2_000_000))
|
|
429
|
-
|
|
430
|
-
|
|
435
|
+
half = len(data) // 2
|
|
436
|
+
raw = _GatedRaw([data[:half], data[half:]])
|
|
437
|
+
stream = ByteStream(raw)
|
|
431
438
|
loop_a = asyncio.new_event_loop()
|
|
432
439
|
loop_b = asyncio.new_event_loop()
|
|
433
440
|
try:
|
|
434
|
-
|
|
435
|
-
async def setup():
|
|
436
|
-
await plain.put_object(url, data)
|
|
437
|
-
return await plain.get_object_stream(url)
|
|
438
|
-
|
|
439
|
-
stream = loop_a.run_until_complete(setup())
|
|
440
441
|
# A read waits in fill() on loop A, which then stops running.
|
|
441
442
|
stale = _start_pending_read(loop_a, stream)
|
|
442
443
|
|
|
443
|
-
#
|
|
444
|
+
# The first fill completes; loop B takes over and reads that chunk.
|
|
445
|
+
raw.release()
|
|
444
446
|
first = loop_b.run_until_complete(stream.next())
|
|
445
447
|
|
|
446
448
|
async def park_a_chunk():
|
|
447
449
|
t = asyncio.ensure_future(stream.next())
|
|
448
450
|
await asyncio.sleep(0) # awaiting fill()
|
|
449
|
-
|
|
451
|
+
raw.release() # the fill completes before the read resumes
|
|
450
452
|
t.cancel() # the chunk stays parked for the next read
|
|
451
453
|
await asyncio.gather(t, return_exceptions=True)
|
|
452
454
|
|
|
@@ -489,6 +491,33 @@ class _FakeRaw:
|
|
|
489
491
|
return item or None
|
|
490
492
|
|
|
491
493
|
|
|
494
|
+
class _GatedRaw(_FakeRaw):
|
|
495
|
+
"""Raw stream whose fills complete only when the test calls `release()`.
|
|
496
|
+
|
|
497
|
+
The fill is held in a future rather than racing the event loop, so a read
|
|
498
|
+
is pending exactly as long as the test wants, on any machine.
|
|
499
|
+
"""
|
|
500
|
+
|
|
501
|
+
def __init__(self, items):
|
|
502
|
+
super().__init__(items)
|
|
503
|
+
self._waiters = []
|
|
504
|
+
|
|
505
|
+
async def fill(self):
|
|
506
|
+
if self._slot is None and self._items:
|
|
507
|
+
fut = asyncio.get_running_loop().create_future()
|
|
508
|
+
self._waiters.append(fut)
|
|
509
|
+
await fut
|
|
510
|
+
await super().fill()
|
|
511
|
+
|
|
512
|
+
def release(self):
|
|
513
|
+
if self._slot is None and self._items:
|
|
514
|
+
self._slot = self._items.pop(0)
|
|
515
|
+
waiters, self._waiters = self._waiters, []
|
|
516
|
+
for fut in waiters:
|
|
517
|
+
if not fut.done():
|
|
518
|
+
fut.set_result(None)
|
|
519
|
+
|
|
520
|
+
|
|
492
521
|
async def test_midstream_error_surfaces_once_and_maps():
|
|
493
522
|
# (j) wrapper-level: an error taken from the slot is raised exactly once.
|
|
494
523
|
stream = ByteStream(
|