diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ef07f9..a6a7746 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,14 +61,18 @@ jobs: run: rye build - name: Get GitHub OIDC Token - if: github.repository == 'stainless-sdks/supermemory-new-python' + if: |- + github.repository == 'stainless-sdks/supermemory-new-python' && + !startsWith(github.ref, 'refs/heads/stl/') id: github-oidc uses: actions/github-script@v8 with: script: core.setOutput('github_token', await core.getIDToken()); - name: Upload tarball - if: github.repository == 'stainless-sdks/supermemory-new-python' + if: |- + github.repository == 'stainless-sdks/supermemory-new-python' && + !startsWith(github.ref, 'refs/heads/stl/') env: URL: https://pkg.stainless.com/s AUTH: ${{ steps.github-oidc.outputs.github_token }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 14e0f91..17d0d42 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.27.0" + ".": "3.27.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index d698bd5..78cfb80 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 26 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-062b5e0b84ca5acf4b18f1a9650e023e1908ee6f2b88465e55ba5213ee9257bf.yml -openapi_spec_hash: c465d5d777712bec4bdd8e6aa81a0da9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-634e52721f2d06aaddf4326ebec1de52e7f45148403df9ba3094b5a82b4890e0.yml +openapi_spec_hash: cf448b1dcf62e4b3e29da9f66d0ebcd2 config_hash: f3eb5ca71172780678106f6d46f15dda diff --git a/CHANGELOG.md b/CHANGELOG.md index 30d8925..a132f42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 3.27.1 (2026-03-07) + +Full Changelog: [v3.27.0...v3.27.1](https://github.com/supermemoryai/python-sdk/compare/v3.27.0...v3.27.1) + +### Chores + +* **ci:** skip uploading artifacts on stainless-internal branches ([9b8ce06](https://github.com/supermemoryai/python-sdk/commit/9b8ce065606550ceec128b6d8e0fd15f51c3c32d)) +* **internal:** make `test_proxy_environment_variables` more resilient to env ([0f56565](https://github.com/supermemoryai/python-sdk/commit/0f5656508ff42b297ec9a47b40d06a5ffc0a1a7e)) +* update placeholder string ([f37dc85](https://github.com/supermemoryai/python-sdk/commit/f37dc85ff4113d4a8c7f1155eecd8ae90db5bb14)) + ## 3.27.0 (2026-02-24) Full Changelog: [v3.26.0...v3.27.0](https://github.com/supermemoryai/python-sdk/compare/v3.26.0...v3.27.0) diff --git a/pyproject.toml b/pyproject.toml index 4f7eb77..8607260 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "supermemory" -version = "3.27.0" +version = "3.27.1" description = "The official Python library for the supermemory API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/supermemory/_version.py b/src/supermemory/_version.py index d8303c6..14886dc 100644 --- a/src/supermemory/_version.py +++ b/src/supermemory/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "supermemory" -__version__ = "3.27.0" # x-release-please-version +__version__ = "3.27.1" # x-release-please-version diff --git a/tests/api_resources/test_documents.py b/tests/api_resources/test_documents.py index 5264c9d..53a1503 100644 --- a/tests/api_resources/test_documents.py +++ b/tests/api_resources/test_documents.py @@ -417,7 +417,7 @@ def test_streaming_response_list_processing(self, client: Supermemory) -> None: @parametrize def test_method_upload_file(self, client: Supermemory) -> None: document = client.documents.upload_file( - file=b"raw file contents", + file=b"Example data", ) assert_matches_type(DocumentUploadFileResponse, document, path=["response"]) @@ -425,7 +425,7 @@ def test_method_upload_file(self, client: Supermemory) -> None: @parametrize def test_method_upload_file_with_all_params(self, client: Supermemory) -> None: document = client.documents.upload_file( - file=b"raw file contents", + file=b"Example data", container_tags='["user_123", "project_123"]', file_type="image", metadata='{"category": "technology", "isPublic": true, "readingTime": 5}', @@ -438,7 +438,7 @@ def test_method_upload_file_with_all_params(self, client: Supermemory) -> None: @parametrize def test_raw_response_upload_file(self, client: Supermemory) -> None: response = client.documents.with_raw_response.upload_file( - file=b"raw file contents", + file=b"Example data", ) assert response.is_closed is True @@ -450,7 +450,7 @@ def test_raw_response_upload_file(self, client: Supermemory) -> None: @parametrize def test_streaming_response_upload_file(self, client: Supermemory) -> None: with client.documents.with_streaming_response.upload_file( - file=b"raw file contents", + file=b"Example data", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -857,7 +857,7 @@ async def test_streaming_response_list_processing(self, async_client: AsyncSuper @parametrize async def test_method_upload_file(self, async_client: AsyncSupermemory) -> None: document = await async_client.documents.upload_file( - file=b"raw file contents", + file=b"Example data", ) assert_matches_type(DocumentUploadFileResponse, document, path=["response"]) @@ -865,7 +865,7 @@ async def test_method_upload_file(self, async_client: AsyncSupermemory) -> None: @parametrize async def test_method_upload_file_with_all_params(self, async_client: AsyncSupermemory) -> None: document = await async_client.documents.upload_file( - file=b"raw file contents", + file=b"Example data", container_tags='["user_123", "project_123"]', file_type="image", metadata='{"category": "technology", "isPublic": true, "readingTime": 5}', @@ -878,7 +878,7 @@ async def test_method_upload_file_with_all_params(self, async_client: AsyncSuper @parametrize async def test_raw_response_upload_file(self, async_client: AsyncSupermemory) -> None: response = await async_client.documents.with_raw_response.upload_file( - file=b"raw file contents", + file=b"Example data", ) assert response.is_closed is True @@ -890,7 +890,7 @@ async def test_raw_response_upload_file(self, async_client: AsyncSupermemory) -> @parametrize async def test_streaming_response_upload_file(self, async_client: AsyncSupermemory) -> None: async with async_client.documents.with_streaming_response.upload_file( - file=b"raw file contents", + file=b"Example data", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/test_client.py b/tests/test_client.py index 7084f73..1fdb84a 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -957,8 +957,14 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: def test_proxy_environment_variables(self, monkeypatch: pytest.MonkeyPatch) -> None: # Test that the proxy environment variables are set correctly monkeypatch.setenv("HTTPS_PROXY", "https://example.org") - # Delete in case our environment has this set + # Delete in case our environment has any proxy env vars set monkeypatch.delenv("HTTP_PROXY", raising=False) + monkeypatch.delenv("ALL_PROXY", raising=False) + monkeypatch.delenv("NO_PROXY", raising=False) + monkeypatch.delenv("http_proxy", raising=False) + monkeypatch.delenv("https_proxy", raising=False) + monkeypatch.delenv("all_proxy", raising=False) + monkeypatch.delenv("no_proxy", raising=False) client = DefaultHttpxClient() @@ -1871,8 +1877,14 @@ async def test_get_platform(self) -> None: async def test_proxy_environment_variables(self, monkeypatch: pytest.MonkeyPatch) -> None: # Test that the proxy environment variables are set correctly monkeypatch.setenv("HTTPS_PROXY", "https://example.org") - # Delete in case our environment has this set + # Delete in case our environment has any proxy env vars set monkeypatch.delenv("HTTP_PROXY", raising=False) + monkeypatch.delenv("ALL_PROXY", raising=False) + monkeypatch.delenv("NO_PROXY", raising=False) + monkeypatch.delenv("http_proxy", raising=False) + monkeypatch.delenv("https_proxy", raising=False) + monkeypatch.delenv("all_proxy", raising=False) + monkeypatch.delenv("no_proxy", raising=False) client = DefaultAsyncHttpxClient()