diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index e6ffc7d..6e182f9 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -12,9 +12,6 @@ jobs: publish: name: publish runs-on: ubuntu-latest - permissions: - contents: read - id-token: write steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -27,3 +24,5 @@ jobs: - name: Publish to PyPI run: | bash ./bin/publish-pypi + env: + PYPI_TOKEN: ${{ secrets.PARTNERMAX_PYPI_TOKEN || secrets.PYPI_TOKEN }} diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index fa7b46d..e57a1af 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -17,3 +17,5 @@ jobs: - name: Check release environment run: | bash ./bin/check-release-environment + env: + PYPI_TOKEN: ${{ secrets.PARTNERMAX_PYPI_TOKEN || secrets.PYPI_TOKEN }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e82003f..a713055 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.11.1" + ".": "0.12.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index d02b966..dc46d65 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 20 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/azure/partnermax-fa55dc70ae5286c71a0faea047e23dfbb93be0bbfa3d7a0776d06c12a376444a.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/azure/partnermax-e9423fadcdede8fbb63a47e273c68c8941e6bff3f2d61257d31fe9a1a1a7f72b.yml openapi_spec_hash: 841e984b131bfb9b83d26fdd9dbd5303 -config_hash: 410d10ad3652f4fdf97d2bd563de0d64 +config_hash: 89f4c4e21186c377826cbe4a5685df09 diff --git a/CHANGELOG.md b/CHANGELOG.md index d404d14..c630831 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 0.12.0 (2026-06-28) + +Full Changelog: [v0.11.1...v0.12.0](https://github.com/DealerMax-app/partnermax-python/compare/v0.11.1...v0.12.0) + +### Features + +* **api:** api update ([d92c9dc](https://github.com/DealerMax-app/partnermax-python/commit/d92c9dc64716ac06dd00a251c1283e7fbd7bf54a)) + + +### Chores + +* update SDK settings ([8ce5c2d](https://github.com/DealerMax-app/partnermax-python/commit/8ce5c2df6c7b0c1a0e3c4c3220bae7fe3543b9b1)) +* update SDK settings ([851aff6](https://github.com/DealerMax-app/partnermax-python/commit/851aff639f4fc61be87996ba5736f2c64ff803d1)) +* update SDK settings ([bdf4c62](https://github.com/DealerMax-app/partnermax-python/commit/bdf4c622d5511245bd84efbd26bff57832655bde)) + ## 0.11.1 (2026-06-27) Full Changelog: [v0.11.0...v0.11.1](https://github.com/DealerMax-app/partnermax-python/compare/v0.11.0...v0.11.1) diff --git a/bin/check-release-environment b/bin/check-release-environment index 1e951e9..b845b0f 100644 --- a/bin/check-release-environment +++ b/bin/check-release-environment @@ -2,6 +2,10 @@ errors=() +if [ -z "${PYPI_TOKEN}" ]; then + errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.") +fi + lenErrors=${#errors[@]} if [[ lenErrors -gt 0 ]]; then diff --git a/bin/publish-pypi b/bin/publish-pypi index 5895700..e72ca2f 100644 --- a/bin/publish-pypi +++ b/bin/publish-pypi @@ -4,8 +4,4 @@ set -eux rm -rf dist mkdir -p dist uv build -if [ -n "${PYPI_TOKEN:-}" ]; then - uv publish --token=$PYPI_TOKEN -else - uv publish -fi +uv publish --token=$PYPI_TOKEN diff --git a/pyproject.toml b/pyproject.toml index 4039f5c..67803cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "partnermax" -version = "0.11.1" +version = "0.12.0" description = "The official Python library for the partnermax API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/partnermax/_client.py b/src/partnermax/_client.py index b4a7950..b32d2d5 100644 --- a/src/partnermax/_client.py +++ b/src/partnermax/_client.py @@ -54,8 +54,8 @@ ] ENVIRONMENTS: Dict[str, str] = { - "production": "https://developers.dealermax.app", - "sandbox": "https://developers.dealermax.app", + "production": "https://api.dealermax.app", + "sandbox": "https://api.dealermax.app", } diff --git a/src/partnermax/_version.py b/src/partnermax/_version.py index c1ce69d..a7850bc 100644 --- a/src/partnermax/_version.py +++ b/src/partnermax/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "partnermax" -__version__ = "0.11.1" # x-release-please-version +__version__ = "0.12.0" # x-release-please-version diff --git a/tests/test_client.py b/tests/test_client.py index 303c588..0b14c55 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -722,7 +722,7 @@ def test_base_url_env(self) -> None: client = Partnermax( base_url=None, api_key=api_key, _strict_response_validation=True, environment="production" ) - assert str(client.base_url).startswith("https://developers.dealermax.app") + assert str(client.base_url).startswith("https://api.dealermax.app") client.close() @@ -1651,7 +1651,7 @@ async def test_base_url_env(self) -> None: client = AsyncPartnermax( base_url=None, api_key=api_key, _strict_response_validation=True, environment="production" ) - assert str(client.base_url).startswith("https://developers.dealermax.app") + assert str(client.base_url).startswith("https://api.dealermax.app") await client.close()