forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source Faker: Add support for PyPi and AirbyteLib entrypoints (airbyt…
- Loading branch information
1 parent
d29cb2d
commit 7d7f33c
Showing
8 changed files
with
99 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
{ | ||
"name": "Python Development DevContainer (Generic)", | ||
|
||
"image": "mcr.microsoft.com/devcontainers/python:0-3.10", | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker": {}, | ||
"ghcr.io/devcontainers/features/python:1": { | ||
"installGradle": true, | ||
"version": "3.10", | ||
"installTools": true | ||
}, | ||
"ghcr.io/devcontainers-contrib/features/poetry:2": {} | ||
}, | ||
|
||
// Deterministic order reduces cache busting | ||
"overrideFeatureInstallOrder": [ | ||
"ghcr.io/devcontainers/features/docker-in-docker", | ||
"ghcr.io/devcontainers/features/python", | ||
"ghcr.io/devcontainers-contrib/features/poetry" | ||
], | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
// Python extensions: | ||
"charliermarsh.ruff", | ||
"matangover.mypy", | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
|
||
// Toml support | ||
"tamasfe.even-better-toml", | ||
|
||
// Yaml and JSON Schema support: | ||
"redhat.vscode-yaml", | ||
|
||
// Contributing: | ||
"GitHub.vscode-pull-request-github" | ||
], | ||
"settings": { | ||
"extensions.ignoreRecommendations": true, | ||
"git.openRepositoryInParentFolders": "always" | ||
} | ||
} | ||
}, | ||
|
||
// Mark the root directory as 'safe' for git. | ||
"initializeCommand": "git config --add safe.directory /workspaces/airbyte", | ||
|
||
// Setup airbyte-ci on the container: | ||
"postCreateCommand": "make tools.airbyte-ci-dev.install", | ||
|
||
"containerEnv": { | ||
// Deterministic Poetry virtual env location: `./.venv` | ||
"POETRY_VIRTUALENVS_IN_PROJECT": "true" | ||
} | ||
|
||
// Override to change the directory that the IDE opens by default: | ||
// "workspaceFolder": "/workspaces/airbyte" | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
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
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
18 changes: 18 additions & 0 deletions
18
airbyte-integrations/connectors/source-faker/source_faker/run.py
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,18 @@ | ||
# | ||
# Copyright (c) 2023 Airbyte, Inc., all rights reserved. | ||
# | ||
|
||
|
||
import sys | ||
|
||
from airbyte_cdk.entrypoint import launch | ||
from source_faker import SourceFaker | ||
|
||
|
||
def run(): | ||
source = SourceFaker() | ||
launch(source, sys.argv[1:]) | ||
|
||
|
||
if __name__ == "__main__": | ||
run() |
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