From adf38fc2850df2d3de59e4d2852f55057b97fb40 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 29 Nov 2024 19:20:27 +0000 Subject: [PATCH 1/2] chore: go live (#1) --- .github/workflows/publish-pypi.yml | 31 ++++++++++ .github/workflows/release-doctor.yml | 21 +++++++ .release-please-manifest.json | 3 + CONTRIBUTING.md | 4 +- README.md | 13 ++--- bin/check-release-environment | 21 +++++++ pyproject.toml | 6 +- release-please-config.json | 66 ++++++++++++++++++++++ src/tango/_version.py | 2 +- src/tango/resources/agencies.py | 8 +-- src/tango/resources/assistance_listings.py | 8 +-- src/tango/resources/bulk/bulk.py | 8 +-- src/tango/resources/bulk/entities.py | 8 +-- src/tango/resources/business_types.py | 8 +-- src/tango/resources/contracts.py | 8 +-- src/tango/resources/departments.py | 8 +-- src/tango/resources/entities.py | 8 +-- src/tango/resources/idvs/awards.py | 8 +-- src/tango/resources/idvs/idvs.py | 8 +-- src/tango/resources/naics.py | 8 +-- src/tango/resources/notices.py | 8 +-- src/tango/resources/offices.py | 8 +-- src/tango/resources/opportunities.py | 8 +-- src/tango/resources/pscs.py | 8 +-- src/tango/resources/schemas.py | 8 +-- src/tango/resources/subawards.py | 8 +-- src/tango/resources/versions.py | 8 +-- 27 files changed, 225 insertions(+), 86 deletions(-) create mode 100644 .github/workflows/publish-pypi.yml create mode 100644 .github/workflows/release-doctor.yml create mode 100644 .release-please-manifest.json create mode 100644 bin/check-release-environment create mode 100644 release-please-config.json diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml new file mode 100644 index 0000000..6767768 --- /dev/null +++ b/.github/workflows/publish-pypi.yml @@ -0,0 +1,31 @@ +# This workflow is triggered when a GitHub release is created. +# It can also be run manually to re-publish to PyPI in case it failed for some reason. +# You can run this workflow by navigating to https://www.github.com/makegov/tango-python/actions/workflows/publish-pypi.yml +name: Publish PyPI +on: + workflow_dispatch: + + release: + types: [published] + +jobs: + publish: + name: publish + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install Rye + run: | + curl -sSf https://rye.astral.sh/get | bash + echo "$HOME/.rye/shims" >> $GITHUB_PATH + env: + RYE_VERSION: '0.35.0' + RYE_INSTALL_OPTION: '--yes' + + - name: Publish to PyPI + run: | + bash ./bin/publish-pypi + env: + PYPI_TOKEN: ${{ secrets.TANGO_PYPI_TOKEN || secrets.PYPI_TOKEN }} diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml new file mode 100644 index 0000000..fb80aef --- /dev/null +++ b/.github/workflows/release-doctor.yml @@ -0,0 +1,21 @@ +name: Release Doctor +on: + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + release_doctor: + name: release doctor + runs-on: ubuntu-latest + if: github.repository == 'makegov/tango-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') + + steps: + - uses: actions/checkout@v4 + + - name: Check release environment + run: | + bash ./bin/check-release-environment + env: + PYPI_TOKEN: ${{ secrets.TANGO_PYPI_TOKEN || secrets.PYPI_TOKEN }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..c476280 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.0.1-alpha.0" +} \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7a49d58..3975677 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -63,7 +63,7 @@ If you’d like to use the repository from source, you can either install from g To install via git: ```sh -$ pip install git+ssh://git@github.com/stainless-sdks/tango-python.git +$ pip install git+ssh://git@github.com/makegov/tango-python.git ``` Alternatively, you can build from source and install the wheel file: @@ -121,7 +121,7 @@ the changes aren't made through the automated pipeline, you may want to make rel ### Publish with a GitHub workflow -You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/tango-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up. +You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/makegov/tango-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up. ### Publish manually diff --git a/README.md b/README.md index 4a2e9b6..c5e12ed 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,10 @@ The REST API documentation can be found on [docs.tango.com](https://docs.tango.c ## Installation ```sh -# install from this staging repo -pip install git+ssh://git@github.com/stainless-sdks/tango-python.git +# install from PyPI +pip install --pre tango-python ``` -> [!NOTE] -> Once this package is [published to PyPI](https://app.stainlessapi.com/docs/guides/publish), this will become: `pip install --pre tango-python` - ## Usage The full API of this library can be found in [api.md](api.md). @@ -211,9 +208,9 @@ schema = response.parse() # get the object that `schemas.retrieve()` would have print(schema) ``` -These methods return an [`APIResponse`](https://github.com/stainless-sdks/tango-python/tree/main/src/tango/_response.py) object. +These methods return an [`APIResponse`](https://github.com/makegov/tango-python/tree/main/src/tango/_response.py) object. -The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/tango-python/tree/main/src/tango/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. +The async client returns an [`AsyncAPIResponse`](https://github.com/makegov/tango-python/tree/main/src/tango/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. #### `.with_streaming_response` @@ -309,7 +306,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. -We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/tango-python/issues) with questions, bugs, or suggestions. +We are keen for your feedback; please open an [issue](https://www.github.com/makegov/tango-python/issues) with questions, bugs, or suggestions. ### Determining the installed version diff --git a/bin/check-release-environment b/bin/check-release-environment new file mode 100644 index 0000000..4fa0501 --- /dev/null +++ b/bin/check-release-environment @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +errors=() + +if [ -z "${PYPI_TOKEN}" ]; then + errors+=("The TANGO_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 + echo -e "Found the following errors in the release environment:\n" + + for error in "${errors[@]}"; do + echo -e "- $error\n" + done + + exit 1 +fi + +echo "The environment is ready to push releases!" diff --git a/pyproject.toml b/pyproject.toml index 87937fe..96252f7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,8 +34,8 @@ classifiers = [ ] [project.urls] -Homepage = "https://github.com/stainless-sdks/tango-python" -Repository = "https://github.com/stainless-sdks/tango-python" +Homepage = "https://github.com/makegov/tango-python" +Repository = "https://github.com/makegov/tango-python" @@ -122,7 +122,7 @@ path = "README.md" [[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] # replace relative links with absolute links pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)' -replacement = '[\1](https://github.com/stainless-sdks/tango-python/tree/main/\g<2>)' +replacement = '[\1](https://github.com/makegov/tango-python/tree/main/\g<2>)' [tool.pytest.ini_options] testpaths = ["tests"] diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..f2b249c --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,66 @@ +{ + "packages": { + ".": {} + }, + "$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json", + "include-v-in-tag": true, + "include-component-in-tag": false, + "versioning": "prerelease", + "prerelease": true, + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": false, + "pull-request-header": "Automated Release PR", + "pull-request-title-pattern": "release: ${version}", + "changelog-sections": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "fix", + "section": "Bug Fixes" + }, + { + "type": "perf", + "section": "Performance Improvements" + }, + { + "type": "revert", + "section": "Reverts" + }, + { + "type": "chore", + "section": "Chores" + }, + { + "type": "docs", + "section": "Documentation" + }, + { + "type": "style", + "section": "Styles" + }, + { + "type": "refactor", + "section": "Refactors" + }, + { + "type": "test", + "section": "Tests", + "hidden": true + }, + { + "type": "build", + "section": "Build System" + }, + { + "type": "ci", + "section": "Continuous Integration", + "hidden": true + } + ], + "release-type": "python", + "extra-files": [ + "src/tango/_version.py" + ] +} \ No newline at end of file diff --git a/src/tango/_version.py b/src/tango/_version.py index aed3df0..8834e67 100644 --- a/src/tango/_version.py +++ b/src/tango/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "tango" -__version__ = "0.0.1-alpha.0" +__version__ = "0.0.1-alpha.0" # x-release-please-version diff --git a/src/tango/resources/agencies.py b/src/tango/resources/agencies.py index 9dd3e31..3850825 100644 --- a/src/tango/resources/agencies.py +++ b/src/tango/resources/agencies.py @@ -32,7 +32,7 @@ def with_raw_response(self) -> AgenciesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AgenciesResourceWithRawResponse(self) @@ -41,7 +41,7 @@ def with_streaming_response(self) -> AgenciesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AgenciesResourceWithStreamingResponse(self) @@ -123,7 +123,7 @@ def with_raw_response(self) -> AsyncAgenciesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncAgenciesResourceWithRawResponse(self) @@ -132,7 +132,7 @@ def with_streaming_response(self) -> AsyncAgenciesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncAgenciesResourceWithStreamingResponse(self) diff --git a/src/tango/resources/assistance_listings.py b/src/tango/resources/assistance_listings.py index 9924c94..dc74250 100644 --- a/src/tango/resources/assistance_listings.py +++ b/src/tango/resources/assistance_listings.py @@ -27,7 +27,7 @@ def with_raw_response(self) -> AssistanceListingsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AssistanceListingsResourceWithRawResponse(self) @@ -36,7 +36,7 @@ def with_streaming_response(self) -> AssistanceListingsResourceWithStreamingResp """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AssistanceListingsResourceWithStreamingResponse(self) @@ -100,7 +100,7 @@ def with_raw_response(self) -> AsyncAssistanceListingsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncAssistanceListingsResourceWithRawResponse(self) @@ -109,7 +109,7 @@ def with_streaming_response(self) -> AsyncAssistanceListingsResourceWithStreamin """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncAssistanceListingsResourceWithStreamingResponse(self) diff --git a/src/tango/resources/bulk/bulk.py b/src/tango/resources/bulk/bulk.py index 1a51092..ee8bb39 100644 --- a/src/tango/resources/bulk/bulk.py +++ b/src/tango/resources/bulk/bulk.py @@ -27,7 +27,7 @@ def with_raw_response(self) -> BulkResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return BulkResourceWithRawResponse(self) @@ -36,7 +36,7 @@ def with_streaming_response(self) -> BulkResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return BulkResourceWithStreamingResponse(self) @@ -52,7 +52,7 @@ def with_raw_response(self) -> AsyncBulkResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncBulkResourceWithRawResponse(self) @@ -61,7 +61,7 @@ def with_streaming_response(self) -> AsyncBulkResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncBulkResourceWithStreamingResponse(self) diff --git a/src/tango/resources/bulk/entities.py b/src/tango/resources/bulk/entities.py index 45545cd..b3d5dff 100644 --- a/src/tango/resources/bulk/entities.py +++ b/src/tango/resources/bulk/entities.py @@ -25,7 +25,7 @@ def with_raw_response(self) -> EntitiesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return EntitiesResourceWithRawResponse(self) @@ -34,7 +34,7 @@ def with_streaming_response(self) -> EntitiesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return EntitiesResourceWithStreamingResponse(self) @@ -74,7 +74,7 @@ def with_raw_response(self) -> AsyncEntitiesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncEntitiesResourceWithRawResponse(self) @@ -83,7 +83,7 @@ def with_streaming_response(self) -> AsyncEntitiesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncEntitiesResourceWithStreamingResponse(self) diff --git a/src/tango/resources/business_types.py b/src/tango/resources/business_types.py index b99c735..10e226c 100644 --- a/src/tango/resources/business_types.py +++ b/src/tango/resources/business_types.py @@ -27,7 +27,7 @@ def with_raw_response(self) -> BusinessTypesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return BusinessTypesResourceWithRawResponse(self) @@ -36,7 +36,7 @@ def with_streaming_response(self) -> BusinessTypesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return BusinessTypesResourceWithStreamingResponse(self) @@ -102,7 +102,7 @@ def with_raw_response(self) -> AsyncBusinessTypesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncBusinessTypesResourceWithRawResponse(self) @@ -111,7 +111,7 @@ def with_streaming_response(self) -> AsyncBusinessTypesResourceWithStreamingResp """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncBusinessTypesResourceWithStreamingResponse(self) diff --git a/src/tango/resources/contracts.py b/src/tango/resources/contracts.py index e2c3550..3548e9d 100644 --- a/src/tango/resources/contracts.py +++ b/src/tango/resources/contracts.py @@ -32,7 +32,7 @@ def with_raw_response(self) -> ContractsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return ContractsResourceWithRawResponse(self) @@ -41,7 +41,7 @@ def with_streaming_response(self) -> ContractsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return ContractsResourceWithStreamingResponse(self) @@ -186,7 +186,7 @@ def with_raw_response(self) -> AsyncContractsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncContractsResourceWithRawResponse(self) @@ -195,7 +195,7 @@ def with_streaming_response(self) -> AsyncContractsResourceWithStreamingResponse """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncContractsResourceWithStreamingResponse(self) diff --git a/src/tango/resources/departments.py b/src/tango/resources/departments.py index 1808183..d0e213c 100644 --- a/src/tango/resources/departments.py +++ b/src/tango/resources/departments.py @@ -27,7 +27,7 @@ def with_raw_response(self) -> DepartmentsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return DepartmentsResourceWithRawResponse(self) @@ -36,7 +36,7 @@ def with_streaming_response(self) -> DepartmentsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return DepartmentsResourceWithStreamingResponse(self) @@ -98,7 +98,7 @@ def with_raw_response(self) -> AsyncDepartmentsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncDepartmentsResourceWithRawResponse(self) @@ -107,7 +107,7 @@ def with_streaming_response(self) -> AsyncDepartmentsResourceWithStreamingRespon """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncDepartmentsResourceWithStreamingResponse(self) diff --git a/src/tango/resources/entities.py b/src/tango/resources/entities.py index 8ce37e5..2044279 100644 --- a/src/tango/resources/entities.py +++ b/src/tango/resources/entities.py @@ -32,7 +32,7 @@ def with_raw_response(self) -> EntitiesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return EntitiesResourceWithRawResponse(self) @@ -41,7 +41,7 @@ def with_streaming_response(self) -> EntitiesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return EntitiesResourceWithStreamingResponse(self) @@ -158,7 +158,7 @@ def with_raw_response(self) -> AsyncEntitiesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncEntitiesResourceWithRawResponse(self) @@ -167,7 +167,7 @@ def with_streaming_response(self) -> AsyncEntitiesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncEntitiesResourceWithStreamingResponse(self) diff --git a/src/tango/resources/idvs/awards.py b/src/tango/resources/idvs/awards.py index 574d242..32d8198 100644 --- a/src/tango/resources/idvs/awards.py +++ b/src/tango/resources/idvs/awards.py @@ -34,7 +34,7 @@ def with_raw_response(self) -> AwardsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AwardsResourceWithRawResponse(self) @@ -43,7 +43,7 @@ def with_streaming_response(self) -> AwardsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AwardsResourceWithStreamingResponse(self) @@ -146,7 +146,7 @@ def with_raw_response(self) -> AsyncAwardsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncAwardsResourceWithRawResponse(self) @@ -155,7 +155,7 @@ def with_streaming_response(self) -> AsyncAwardsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncAwardsResourceWithStreamingResponse(self) diff --git a/src/tango/resources/idvs/idvs.py b/src/tango/resources/idvs/idvs.py index 8e700eb..270f720 100644 --- a/src/tango/resources/idvs/idvs.py +++ b/src/tango/resources/idvs/idvs.py @@ -44,7 +44,7 @@ def with_raw_response(self) -> IdvsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return IdvsResourceWithRawResponse(self) @@ -53,7 +53,7 @@ def with_streaming_response(self) -> IdvsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return IdvsResourceWithStreamingResponse(self) @@ -202,7 +202,7 @@ def with_raw_response(self) -> AsyncIdvsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncIdvsResourceWithRawResponse(self) @@ -211,7 +211,7 @@ def with_streaming_response(self) -> AsyncIdvsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncIdvsResourceWithStreamingResponse(self) diff --git a/src/tango/resources/naics.py b/src/tango/resources/naics.py index 74a5bbf..a35182d 100644 --- a/src/tango/resources/naics.py +++ b/src/tango/resources/naics.py @@ -32,7 +32,7 @@ def with_raw_response(self) -> NaicsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return NaicsResourceWithRawResponse(self) @@ -41,7 +41,7 @@ def with_streaming_response(self) -> NaicsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return NaicsResourceWithStreamingResponse(self) @@ -154,7 +154,7 @@ def with_raw_response(self) -> AsyncNaicsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncNaicsResourceWithRawResponse(self) @@ -163,7 +163,7 @@ def with_streaming_response(self) -> AsyncNaicsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncNaicsResourceWithStreamingResponse(self) diff --git a/src/tango/resources/notices.py b/src/tango/resources/notices.py index 23811f6..59c1900 100644 --- a/src/tango/resources/notices.py +++ b/src/tango/resources/notices.py @@ -32,7 +32,7 @@ def with_raw_response(self) -> NoticesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return NoticesResourceWithRawResponse(self) @@ -41,7 +41,7 @@ def with_streaming_response(self) -> NoticesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return NoticesResourceWithStreamingResponse(self) @@ -191,7 +191,7 @@ def with_raw_response(self) -> AsyncNoticesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncNoticesResourceWithRawResponse(self) @@ -200,7 +200,7 @@ def with_streaming_response(self) -> AsyncNoticesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncNoticesResourceWithStreamingResponse(self) diff --git a/src/tango/resources/offices.py b/src/tango/resources/offices.py index 8fff833..339ba4d 100644 --- a/src/tango/resources/offices.py +++ b/src/tango/resources/offices.py @@ -32,7 +32,7 @@ def with_raw_response(self) -> OfficesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return OfficesResourceWithRawResponse(self) @@ -41,7 +41,7 @@ def with_streaming_response(self) -> OfficesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return OfficesResourceWithStreamingResponse(self) @@ -136,7 +136,7 @@ def with_raw_response(self) -> AsyncOfficesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncOfficesResourceWithRawResponse(self) @@ -145,7 +145,7 @@ def with_streaming_response(self) -> AsyncOfficesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncOfficesResourceWithStreamingResponse(self) diff --git a/src/tango/resources/opportunities.py b/src/tango/resources/opportunities.py index 27810b8..93d8f41 100644 --- a/src/tango/resources/opportunities.py +++ b/src/tango/resources/opportunities.py @@ -35,7 +35,7 @@ def with_raw_response(self) -> OpportunitiesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return OpportunitiesResourceWithRawResponse(self) @@ -44,7 +44,7 @@ def with_streaming_response(self) -> OpportunitiesResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return OpportunitiesResourceWithStreamingResponse(self) @@ -207,7 +207,7 @@ def with_raw_response(self) -> AsyncOpportunitiesResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncOpportunitiesResourceWithRawResponse(self) @@ -216,7 +216,7 @@ def with_streaming_response(self) -> AsyncOpportunitiesResourceWithStreamingResp """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncOpportunitiesResourceWithStreamingResponse(self) diff --git a/src/tango/resources/pscs.py b/src/tango/resources/pscs.py index 582cb7f..d0d6a3f 100644 --- a/src/tango/resources/pscs.py +++ b/src/tango/resources/pscs.py @@ -27,7 +27,7 @@ def with_raw_response(self) -> PscsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return PscsResourceWithRawResponse(self) @@ -36,7 +36,7 @@ def with_streaming_response(self) -> PscsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return PscsResourceWithStreamingResponse(self) @@ -98,7 +98,7 @@ def with_raw_response(self) -> AsyncPscsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncPscsResourceWithRawResponse(self) @@ -107,7 +107,7 @@ def with_streaming_response(self) -> AsyncPscsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncPscsResourceWithStreamingResponse(self) diff --git a/src/tango/resources/schemas.py b/src/tango/resources/schemas.py index 03b59cf..2dfc61a 100644 --- a/src/tango/resources/schemas.py +++ b/src/tango/resources/schemas.py @@ -33,7 +33,7 @@ def with_raw_response(self) -> SchemasResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return SchemasResourceWithRawResponse(self) @@ -42,7 +42,7 @@ def with_streaming_response(self) -> SchemasResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return SchemasResourceWithStreamingResponse(self) @@ -201,7 +201,7 @@ def with_raw_response(self) -> AsyncSchemasResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncSchemasResourceWithRawResponse(self) @@ -210,7 +210,7 @@ def with_streaming_response(self) -> AsyncSchemasResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncSchemasResourceWithStreamingResponse(self) diff --git a/src/tango/resources/subawards.py b/src/tango/resources/subawards.py index 4539833..893ff1f 100644 --- a/src/tango/resources/subawards.py +++ b/src/tango/resources/subawards.py @@ -32,7 +32,7 @@ def with_raw_response(self) -> SubawardsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return SubawardsResourceWithRawResponse(self) @@ -41,7 +41,7 @@ def with_streaming_response(self) -> SubawardsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return SubawardsResourceWithStreamingResponse(self) @@ -152,7 +152,7 @@ def with_raw_response(self) -> AsyncSubawardsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncSubawardsResourceWithRawResponse(self) @@ -161,7 +161,7 @@ def with_streaming_response(self) -> AsyncSubawardsResourceWithStreamingResponse """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncSubawardsResourceWithStreamingResponse(self) diff --git a/src/tango/resources/versions.py b/src/tango/resources/versions.py index 0cc8ed4..f4862e6 100644 --- a/src/tango/resources/versions.py +++ b/src/tango/resources/versions.py @@ -25,7 +25,7 @@ def with_raw_response(self) -> VersionsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return VersionsResourceWithRawResponse(self) @@ -34,7 +34,7 @@ def with_streaming_response(self) -> VersionsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return VersionsResourceWithStreamingResponse(self) @@ -66,7 +66,7 @@ def with_raw_response(self) -> AsyncVersionsResourceWithRawResponse: This property can be used as a prefix for any HTTP method call to return the the raw response object instead of the parsed content. - For more information, see https://www.github.com/stainless-sdks/tango-python#accessing-raw-response-data-eg-headers + For more information, see https://www.github.com/makegov/tango-python#accessing-raw-response-data-eg-headers """ return AsyncVersionsResourceWithRawResponse(self) @@ -75,7 +75,7 @@ def with_streaming_response(self) -> AsyncVersionsResourceWithStreamingResponse: """ An alternative to `.with_raw_response` that doesn't eagerly read the response body. - For more information, see https://www.github.com/stainless-sdks/tango-python#with_streaming_response + For more information, see https://www.github.com/makegov/tango-python#with_streaming_response """ return AsyncVersionsResourceWithStreamingResponse(self) From f44b59421d0920bc208e660aa317d48d3e3696f7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 29 Nov 2024 19:20:38 +0000 Subject: [PATCH 2/2] release: 0.0.1-alpha.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 10 ++++++++++ pyproject.toml | 2 +- src/tango/_version.py | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c476280..55f722d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.0.1-alpha.0" + ".": "0.0.1-alpha.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..0fd1943 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,10 @@ +# Changelog + +## 0.0.1-alpha.1 (2024-11-29) + +Full Changelog: [v0.0.1-alpha.0...v0.0.1-alpha.1](https://github.com/makegov/tango-python/compare/v0.0.1-alpha.0...v0.0.1-alpha.1) + +### Chores + +* go live ([#1](https://github.com/makegov/tango-python/issues/1)) ([adf38fc](https://github.com/makegov/tango-python/commit/adf38fc2850df2d3de59e4d2852f55057b97fb40)) +* update SDK settings ([fb8ef31](https://github.com/makegov/tango-python/commit/fb8ef3191715a9a9480710ac7150bd4ebec7d9ac)) diff --git a/pyproject.toml b/pyproject.toml index 96252f7..68a70a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "tango-python" -version = "0.0.1-alpha.0" +version = "0.0.1-alpha.1" description = "The official Python library for the tango API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/tango/_version.py b/src/tango/_version.py index 8834e67..2c3d870 100644 --- a/src/tango/_version.py +++ b/src/tango/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "tango" -__version__ = "0.0.1-alpha.0" # x-release-please-version +__version__ = "0.0.1-alpha.1" # x-release-please-version