From b323d457044966889cf5bca29f89f832b487fefa Mon Sep 17 00:00:00 2001 From: "Edgar R. M" Date: Mon, 10 Jul 2023 12:20:30 -0600 Subject: [PATCH 1/2] docs: Document `RESTStream.rest_method` (#1824) --- singer_sdk/streams/rest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/singer_sdk/streams/rest.py b/singer_sdk/streams/rest.py index 61aa5e017..a1c39576e 100644 --- a/singer_sdk/streams/rest.py +++ b/singer_sdk/streams/rest.py @@ -51,6 +51,8 @@ class RESTStream(Stream, t.Generic[_TToken], metaclass=abc.ABCMeta): _page_size: int = DEFAULT_PAGE_SIZE _requests_session: requests.Session | None + + #: HTTP method to use for requests. Defaults to "GET". rest_method = "GET" #: JSONPath expression to extract records from the API response. From 17114e42bfc16dfe2946c468abd39d3b4708abb3 Mon Sep 17 00:00:00 2001 From: David Riordan Date: Mon, 10 Jul 2023 15:45:42 -0400 Subject: [PATCH 2/2] fix(templates): Update cookiecutter copyright assignment to cookiecutter user (#1829) * Update cookiecutter copyright assignment * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- ...%if 'Apache-2.0' == cookiecutter.license %}LICENSE{%endif%} | 3 ++- ...%if 'Apache-2.0' == cookiecutter.license %}LICENSE{%endif%} | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/{%if 'Apache-2.0' == cookiecutter.license %}LICENSE{%endif%} b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/{%if 'Apache-2.0' == cookiecutter.license %}LICENSE{%endif%} index 564273905..62913ff3a 100644 --- a/cookiecutter/tap-template/{{cookiecutter.tap_id}}/{%if 'Apache-2.0' == cookiecutter.license %}LICENSE{%endif%} +++ b/cookiecutter/tap-template/{{cookiecutter.tap_id}}/{%if 'Apache-2.0' == cookiecutter.license %}LICENSE{%endif%} @@ -186,7 +186,8 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2021 Meltano + + Copyright {% now 'utc', '%Y' %} {{ cookiecutter.admin_name }} Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cookiecutter/target-template/{{cookiecutter.target_id}}/{%if 'Apache-2.0' == cookiecutter.license %}LICENSE{%endif%} b/cookiecutter/target-template/{{cookiecutter.target_id}}/{%if 'Apache-2.0' == cookiecutter.license %}LICENSE{%endif%} index 564273905..fa2bea100 100644 --- a/cookiecutter/target-template/{{cookiecutter.target_id}}/{%if 'Apache-2.0' == cookiecutter.license %}LICENSE{%endif%} +++ b/cookiecutter/target-template/{{cookiecutter.target_id}}/{%if 'Apache-2.0' == cookiecutter.license %}LICENSE{%endif%} @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2021 Meltano + Copyright {% now 'utc', '%Y' %} {{ cookiecutter.admin_name }} Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.