-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎉 Source Square: migrate to Beta (YAML) (#19369)
* 🐛 Source Square: migrate to Beta (YAML) * Source Square: update CDK, reorder properties * Source Square: update docs * Source Square: add tests; change release stage to beta * Source Square: fix tests * Source Square: fix tests formatting * Source Square: fix tests formatting * Source Square: Add token_expiry_date_format to oauth authenticator * Source Square: ref component * Source Square: Refactor Slicer; inherit from datetime slicer * Source Square: test fix * Source Square: publish low-code rc1 * Source Square: update version * auto-bump connector version Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
- Loading branch information
1 parent
2c5d799
commit 697b91a
Showing
24 changed files
with
2,448 additions
and
951 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,38 @@ | ||
FROM python:3.9-slim | ||
FROM python:3.9.11-alpine3.15 as base | ||
|
||
# build and load all requirements | ||
FROM base as builder | ||
WORKDIR /airbyte/integration_code | ||
|
||
# upgrade pip to the latest version | ||
RUN apk --no-cache upgrade \ | ||
&& pip install --upgrade pip \ | ||
&& apk --no-cache add tzdata build-base | ||
|
||
# Bash is installed for more convenient debugging. | ||
RUN apt-get update && apt-get install -y bash && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY setup.py ./ | ||
# install necessary packages to a temporary folder | ||
RUN pip install --prefix=/install . | ||
|
||
# build a clean environment | ||
FROM base | ||
WORKDIR /airbyte/integration_code | ||
COPY source_square ./source_square | ||
|
||
# copy all loaded and built libraries to a pure basic image | ||
COPY --from=builder /install /usr/local | ||
# add default timezone settings | ||
COPY --from=builder /usr/share/zoneinfo/Etc/UTC /etc/localtime | ||
RUN echo "Etc/UTC" > /etc/timezone | ||
|
||
# bash is installed for more convenient debugging. | ||
RUN apk --no-cache add bash | ||
|
||
# copy payload code only | ||
COPY main.py ./ | ||
COPY setup.py ./ | ||
RUN pip install . | ||
COPY source_square ./source_square | ||
|
||
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" | ||
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] | ||
|
||
LABEL io.airbyte.version=0.1.4 | ||
LABEL io.airbyte.version=0.2.0 | ||
LABEL io.airbyte.name=airbyte/source-square |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# | ||
# Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
airbyte-integrations/connectors/source-square/acceptance-test-docker.sh
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
airbyte-integrations/connectors/source-square/integration_tests/abnormal_state.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
{ | ||
"items": { | ||
"updated_at": "2200-01-01T00:00:00+00:00" | ||
"updated_at": "2200-01-01T00:00:00.0Z" | ||
}, | ||
"categories": { | ||
"updated_at": "2200-01-01T00:00:00+00:00" | ||
"updated_at": "2200-01-01T00:00:00.0Z" | ||
}, | ||
"discounts": { | ||
"updated_at": "2200-01-01T00:00:00+00:00" | ||
"updated_at": "2200-01-01T00:00:00.0Z" | ||
}, | ||
"taxes": { | ||
"updated_at": "2200-01-01T00:00:00+00:00" | ||
"updated_at": "2200-01-01T00:00:00.0Z" | ||
}, | ||
"modifier_list": { | ||
"updated_at": "2200-01-01T00:00:00+00:00" | ||
"updated_at": "2200-01-01T00:00:00.0Z" | ||
}, | ||
"refunds": { | ||
"created_at": "2200-01-01T00:00:00+00:00" | ||
"created_at": "2200-01-01T00:00:00.0Z" | ||
}, | ||
"payments": { | ||
"created_at": "2200-01-01T00:00:00+00:00" | ||
"created_at": "2200-01-01T00:00:00.0Z" | ||
} | ||
} |
Oops, something went wrong.