From 48e506c0307519e49250ae57f234202047c01fc3 Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Tue, 30 Jan 2024 10:22:13 +0100 Subject: [PATCH] airbyte-lib: Refactor connectors (#34552) --- .../connectors/source-activecampaign/main.py | 9 ++--- .../connectors/source-activecampaign/setup.py | 19 +++++++++- .../source_activecampaign/run.py | 14 ++++++++ .../connectors/source-adjust/main.py | 9 ++--- .../connectors/source-adjust/setup.py | 19 +++++++++- .../source-adjust/source_adjust/run.py | 14 ++++++++ .../connectors/source-aha/main.py | 9 ++--- .../connectors/source-aha/setup.py | 19 +++++++++- .../connectors/source-aha/source_aha/run.py | 14 ++++++++ .../connectors/source-aircall/main.py | 9 ++--- .../connectors/source-aircall/setup.py | 19 +++++++++- .../source-aircall/source_aircall/run.py | 14 ++++++++ .../connectors/source-airtable/main.py | 9 ++--- .../connectors/source-airtable/setup.py | 5 +++ .../source-airtable/source_airtable/run.py | 14 ++++++++ .../connectors/source-alpha-vantage/main.py | 9 ++--- .../connectors/source-alpha-vantage/setup.py | 19 +++++++++- .../source_alpha_vantage/run.py | 14 ++++++++ .../connectors/source-amazon-ads/main.py | 11 ++---- .../connectors/source-amazon-ads/setup.py | 5 +++ .../source_amazon_ads/run.py | 16 +++++++++ .../source-amazon-seller-partner/main.py | 12 ++----- .../source-amazon-seller-partner/setup.py | 5 +++ .../source_amazon_seller_partner/run.py | 17 +++++++++ .../connectors/source-amazon-sqs/main.py | 9 ++--- .../connectors/source-amazon-sqs/setup.py | 5 +++ .../source_amazon_sqs/run.py | 14 ++++++++ .../connectors/source-amplitude/main.py | 9 ++--- .../connectors/source-amplitude/setup.py | 19 +++++++++- .../source-amplitude/source_amplitude/run.py | 14 ++++++++ .../connectors/source-apify-dataset/setup.py | 14 +++++++- .../connectors/source-appfollow/main.py | 9 ++--- .../connectors/source-appfollow/setup.py | 19 +++++++++- .../source-appfollow/source_appfollow/run.py | 14 ++++++++ .../source-apple-search-ads/main.py | 9 ++--- .../source-apple-search-ads/setup.py | 19 +++++++++- .../source_apple_search_ads/run.py | 14 ++++++++ .../connectors/source-appsflyer/main.py | 9 ++--- .../connectors/source-appsflyer/setup.py | 5 +++ .../source-appsflyer/source_appsflyer/run.py | 14 ++++++++ .../connectors/source-appstore-singer/main.py | 9 ++--- .../source-appstore-singer/setup.py | 5 +++ .../source_appstore_singer/run.py | 14 ++++++++ .../connectors/source-asana/main.py | 9 ++--- .../connectors/source-asana/setup.py | 5 +++ .../source-asana/source_asana/run.py | 14 ++++++++ .../connectors/source-ashby/main.py | 9 ++--- .../connectors/source-ashby/setup.py | 19 +++++++++- .../source-ashby/source_ashby/run.py | 14 ++++++++ .../connectors/source-auth0/main.py | 9 ++--- .../connectors/source-auth0/setup.py | 19 +++++++++- .../source-auth0/source_auth0/run.py | 14 ++++++++ .../connectors/source-aws-cloudtrail/main.py | 9 ++--- .../connectors/source-aws-cloudtrail/setup.py | 5 +++ .../source_aws_cloudtrail/run.py | 14 ++++++++ .../source-azure-blob-storage/main.py | 29 ++------------- .../source-azure-blob-storage/setup.py | 5 +++ .../source_azure_blob_storage/run.py | 34 ++++++++++++++++++ .../connectors/source-azure-table/main.py | 9 ++--- .../connectors/source-azure-table/setup.py | 5 +++ .../source_azure_table/run.py | 14 ++++++++ .../connectors/source-babelforce/main.py | 9 ++--- .../connectors/source-babelforce/setup.py | 19 +++++++++- .../source_babelforce/run.py | 14 ++++++++ .../connectors/source-bamboo-hr/main.py | 9 ++--- .../connectors/source-bamboo-hr/setup.py | 5 +++ .../source-bamboo-hr/source_bamboo_hr/run.py | 14 ++++++++ .../connectors/source-bigcommerce/main.py | 9 ++--- .../connectors/source-bigcommerce/setup.py | 19 +++++++++- .../source_bigcommerce/run.py | 14 ++++++++ .../connectors/source-bing-ads/main.py | 9 ++--- .../connectors/source-bing-ads/setup.py | 5 +++ .../source-bing-ads/source_bing_ads/run.py | 14 ++++++++ .../connectors/source-braintree/main.py | 9 ++--- .../connectors/source-braintree/setup.py | 19 +++++++++- .../source-braintree/source_braintree/run.py | 14 ++++++++ .../connectors/source-braze/main.py | 9 ++--- .../connectors/source-braze/setup.py | 19 +++++++++- .../source-braze/source_braze/run.py | 14 ++++++++ .../connectors/source-breezometer/main.py | 9 ++--- .../connectors/source-breezometer/setup.py | 19 +++++++++- .../source_breezometer/run.py | 14 ++++++++ .../connectors/source-callrail/main.py | 9 ++--- .../connectors/source-callrail/setup.py | 19 +++++++++- .../source-callrail/source_callrail/run.py | 14 ++++++++ .../connectors/source-captain-data/main.py | 9 ++--- .../connectors/source-captain-data/setup.py | 19 +++++++++- .../source_captain_data/run.py | 14 ++++++++ .../connectors/source-cart/main.py | 9 ++--- .../connectors/source-cart/setup.py | 5 +++ .../connectors/source-cart/source_cart/run.py | 14 ++++++++ .../connectors/source-chargebee/main.py | 9 ++--- .../connectors/source-chargebee/setup.py | 19 +++++++++- .../source-chargebee/source_chargebee/run.py | 14 ++++++++ .../connectors/source-chargify/main.py | 9 ++--- .../connectors/source-chargify/setup.py | 19 +++++++++- .../source-chargify/source_chargify/run.py | 14 ++++++++ .../connectors/source-chartmogul/main.py | 9 ++--- .../connectors/source-chartmogul/setup.py | 5 +++ .../source_chartmogul/run.py | 14 ++++++++ .../connectors/source-clickup-api/main.py | 9 ++--- .../connectors/source-clickup-api/setup.py | 19 +++++++++- .../source_clickup_api/run.py | 14 ++++++++ .../connectors/source-clockify/main.py | 9 ++--- .../connectors/source-clockify/setup.py | 19 +++++++++- .../source-clockify/source_clockify/run.py | 14 ++++++++ .../connectors/source-close-com/main.py | 9 ++--- .../connectors/source-close-com/setup.py | 5 +++ .../source-close-com/source_close_com/run.py | 14 ++++++++ .../connectors/source-coda/main.py | 9 ++--- .../connectors/source-coda/setup.py | 19 +++++++++- .../connectors/source-coda/source_coda/run.py | 14 ++++++++ .../connectors/source-coin-api/main.py | 9 ++--- .../connectors/source-coin-api/setup.py | 19 +++++++++- .../source-coin-api/source_coin_api/run.py | 14 ++++++++ .../connectors/source-coingecko-coins/main.py | 9 ++--- .../source-coingecko-coins/setup.py | 19 +++++++++- .../source_coingecko_coins/run.py | 14 ++++++++ .../connectors/source-coinmarketcap/main.py | 9 ++--- .../connectors/source-coinmarketcap/setup.py | 19 +++++++++- .../source_coinmarketcap/run.py | 14 ++++++++ .../connectors/source-commcare/main.py | 9 ++--- .../connectors/source-commcare/setup.py | 19 +++++++++- .../source-commcare/source_commcare/run.py | 14 ++++++++ .../connectors/source-commercetools/main.py | 9 ++--- .../connectors/source-commercetools/setup.py | 19 +++++++++- .../source_commercetools/run.py | 14 ++++++++ .../connectors/source-configcat/main.py | 9 ++--- .../connectors/source-configcat/setup.py | 19 +++++++++- .../source-configcat/source_configcat/run.py | 14 ++++++++ .../connectors/source-confluence/main.py | 9 ++--- .../connectors/source-confluence/setup.py | 19 +++++++++- .../source_confluence/run.py | 14 ++++++++ .../connectors/source-convertkit/main.py | 9 ++--- .../connectors/source-convertkit/setup.py | 19 +++++++++- .../source_convertkit/run.py | 14 ++++++++ .../connectors/source-convex/main.py | 9 ++--- .../connectors/source-convex/setup.py | 19 +++++++++- .../source-convex/source_convex/run.py | 14 ++++++++ .../connectors/source-copper/main.py | 9 ++--- .../connectors/source-copper/setup.py | 19 +++++++++- .../source-copper/source_copper/run.py | 14 ++++++++ .../connectors/source-courier/main.py | 9 ++--- .../connectors/source-courier/setup.py | 19 +++++++++- .../source-courier/source_courier/run.py | 14 ++++++++ .../connectors/source-customer-io/main.py | 9 ++--- .../connectors/source-customer-io/setup.py | 19 +++++++++- .../source_customer_io/run.py | 14 ++++++++ .../connectors/source-datadog/main.py | 9 ++--- .../connectors/source-datadog/setup.py | 19 +++++++++- .../source-datadog/source_datadog/run.py | 14 ++++++++ .../connectors/source-datascope/main.py | 9 ++--- .../connectors/source-datascope/setup.py | 19 +++++++++- .../source-datascope/source_datascope/run.py | 14 ++++++++ .../connectors/source-delighted/main.py | 31 ++-------------- .../connectors/source-delighted/setup.py | 5 +++ .../source-delighted/source_delighted/run.py | 36 +++++++++++++++++++ .../connectors/source-dixa/main.py | 9 ++--- .../connectors/source-dixa/setup.py | 19 +++++++++- .../connectors/source-dixa/source_dixa/run.py | 14 ++++++++ .../connectors/source-dockerhub/main.py | 9 ++--- .../connectors/source-dockerhub/setup.py | 19 +++++++++- .../source-dockerhub/source_dockerhub/run.py | 14 ++++++++ .../connectors/source-dremio/main.py | 9 ++--- .../connectors/source-dremio/setup.py | 19 +++++++++- .../source-dremio/source_dremio/run.py | 14 ++++++++ .../connectors/source-drift/main.py | 9 ++--- .../connectors/source-drift/setup.py | 19 +++++++++- .../source-drift/source_drift/run.py | 14 ++++++++ .../connectors/source-dv-360/main.py | 9 ++--- .../connectors/source-dv-360/setup.py | 5 +++ .../source-dv-360/source_dv_360/run.py | 14 ++++++++ .../connectors/source-emailoctopus/main.py | 9 ++--- .../connectors/source-emailoctopus/setup.py | 19 +++++++++- .../source_emailoctopus/run.py | 14 ++++++++ .../connectors/source-everhour/main.py | 9 ++--- .../connectors/source-everhour/setup.py | 19 +++++++++- .../source-everhour/source_everhour/run.py | 14 ++++++++ .../connectors/source-exchange-rates/main.py | 9 ++--- .../connectors/source-exchange-rates/setup.py | 19 +++++++++- .../source_exchange_rates/run.py | 14 ++++++++ .../connectors/source-facebook-pages/main.py | 9 ++--- .../connectors/source-facebook-pages/setup.py | 19 +++++++++- .../source_facebook_pages/run.py | 14 ++++++++ .../connectors/source-fastbill/main.py | 9 ++--- .../connectors/source-fastbill/setup.py | 19 +++++++++- .../source-fastbill/source_fastbill/run.py | 14 ++++++++ .../connectors/source-fauna/main.py | 9 ++--- .../connectors/source-fauna/setup.py | 5 +++ .../source-fauna/source_fauna/run.py | 14 ++++++++ .../connectors/source-file/main.py | 9 ++--- .../connectors/source-file/setup.py | 5 +++ .../connectors/source-file/source_file/run.py | 14 ++++++++ .../source-firebase-realtime-database/main.py | 9 ++--- .../setup.py | 5 +++ .../source_firebase_realtime_database/run.py | 14 ++++++++ .../connectors/source-firebolt/main.py | 9 ++--- .../connectors/source-firebolt/setup.py | 5 +++ .../source-firebolt/source_firebolt/run.py | 14 ++++++++ .../connectors/source-flexport/main.py | 9 ++--- .../connectors/source-flexport/setup.py | 19 +++++++++- .../source-flexport/source_flexport/run.py | 14 ++++++++ .../connectors/source-freshcaller/main.py | 9 ++--- .../connectors/source-freshcaller/setup.py | 19 +++++++++- .../source_freshcaller/run.py | 14 ++++++++ .../connectors/source-freshsales/main.py | 9 ++--- .../connectors/source-freshsales/setup.py | 19 +++++++++- .../source_freshsales/run.py | 14 ++++++++ .../connectors/source-freshservice/main.py | 9 ++--- .../connectors/source-freshservice/setup.py | 19 +++++++++- .../source_freshservice/run.py | 14 ++++++++ .../connectors/source-fullstory/main.py | 9 ++--- .../connectors/source-fullstory/setup.py | 19 +++++++++- .../source-fullstory/source_fullstory/run.py | 14 ++++++++ .../connectors/source-gainsight-px/main.py | 9 ++--- .../connectors/source-gainsight-px/setup.py | 19 +++++++++- .../source_gainsight_px/run.py | 14 ++++++++ .../connectors/source-gcs/main.py | 11 ++---- .../connectors/source-gcs/setup.py | 5 +++ .../connectors/source-gcs/source_gcs/run.py | 16 +++++++++ .../connectors/source-genesys/main.py | 9 ++--- .../connectors/source-genesys/setup.py | 19 +++++++++- .../source-genesys/source_genesys/run.py | 14 ++++++++ .../connectors/source-getlago/main.py | 9 ++--- .../connectors/source-getlago/setup.py | 19 +++++++++- .../source-getlago/source_getlago/run.py | 14 ++++++++ .../connectors/source-github/main.py | 12 ++----- .../connectors/source-github/setup.py | 5 +++ .../source-github/source_github/run.py | 17 +++++++++ .../connectors/source-glassfrog/main.py | 9 ++--- .../connectors/source-glassfrog/setup.py | 19 +++++++++- .../source-glassfrog/source_glassfrog/run.py | 14 ++++++++ .../connectors/source-gnews/main.py | 9 ++--- .../connectors/source-gnews/setup.py | 19 +++++++++- .../source-gnews/source_gnews/run.py | 14 ++++++++ .../connectors/source-gocardless/main.py | 9 ++--- .../connectors/source-gocardless/setup.py | 19 +++++++++- .../source_gocardless/run.py | 14 ++++++++ .../connectors/source-gong/main.py | 9 ++--- .../connectors/source-gong/setup.py | 19 +++++++++- .../connectors/source-gong/source_gong/run.py | 14 ++++++++ .../source-google-analytics-v4/main.py | 9 ++--- .../source-google-analytics-v4/setup.py | 5 +++ .../source_google_analytics_v4/run.py | 14 ++++++++ .../source-google-directory/main.py | 9 ++--- .../source-google-directory/setup.py | 5 +++ .../source_google_directory/run.py | 14 ++++++++ .../source-google-pagespeed-insights/main.py | 9 ++--- .../source-google-pagespeed-insights/setup.py | 19 +++++++++- .../source_google_pagespeed_insights/run.py | 14 ++++++++ .../source-google-search-console/main.py | 13 ++----- .../source-google-search-console/setup.py | 5 +++ .../source_google_search_console/run.py | 18 ++++++++++ .../connectors/source-google-sheets/setup.py | 14 +++++++- .../connectors/source-google-webfonts/main.py | 9 ++--- .../source-google-webfonts/setup.py | 19 +++++++++- .../source_google_webfonts/run.py | 14 ++++++++ .../main.py | 9 ++--- .../setup.py | 5 +++ .../run.py | 14 ++++++++ .../connectors/source-greenhouse/main.py | 9 ++--- .../connectors/source-greenhouse/setup.py | 5 +++ .../source_greenhouse/run.py | 14 ++++++++ .../connectors/source-gridly/main.py | 9 ++--- .../connectors/source-gridly/setup.py | 19 +++++++++- .../source-gridly/source_gridly/run.py | 14 ++++++++ .../connectors/source-gutendex/main.py | 9 ++--- .../connectors/source-gutendex/setup.py | 19 +++++++++- .../source-gutendex/source_gutendex/run.py | 14 ++++++++ .../connectors/source-harness/main.py | 9 ++--- .../connectors/source-harness/setup.py | 19 +++++++++- .../source-harness/source_harness/run.py | 14 ++++++++ .../connectors/source-harvest/main.py | 9 ++--- .../connectors/source-harvest/setup.py | 5 +++ .../source-harvest/source_harvest/run.py | 14 ++++++++ .../connectors/source-hellobaton/main.py | 9 ++--- .../connectors/source-hellobaton/setup.py | 19 +++++++++- .../source_hellobaton/run.py | 14 ++++++++ .../connectors/source-hubplanner/main.py | 9 ++--- .../connectors/source-hubplanner/setup.py | 19 +++++++++- .../source_hubplanner/run.py | 14 ++++++++ .../connectors/source-hubspot/main.py | 9 ++--- .../connectors/source-hubspot/setup.py | 5 +++ .../source-hubspot/source_hubspot/run.py | 14 ++++++++ .../connectors/source-insightly/main.py | 9 ++--- .../connectors/source-insightly/setup.py | 19 +++++++++- .../source-insightly/source_insightly/run.py | 14 ++++++++ .../connectors/source-instatus/main.py | 9 ++--- .../connectors/source-instatus/setup.py | 19 +++++++++- .../source-instatus/source_instatus/run.py | 14 ++++++++ .../connectors/source-intercom/main.py | 9 ++--- .../connectors/source-intercom/setup.py | 19 +++++++++- .../source-intercom/source_intercom/run.py | 14 ++++++++ .../connectors/source-intruder/main.py | 9 ++--- .../connectors/source-intruder/setup.py | 19 +++++++++- .../source-intruder/source_intruder/run.py | 14 ++++++++ .../connectors/source-ip2whois/main.py | 9 ++--- .../connectors/source-ip2whois/setup.py | 19 +++++++++- .../source-ip2whois/source_ip2whois/run.py | 14 ++++++++ .../connectors/source-jira/main.py | 9 ++--- .../connectors/source-jira/setup.py | 5 +++ .../connectors/source-jira/source_jira/run.py | 14 ++++++++ .../connectors/source-k6-cloud/main.py | 9 ++--- .../connectors/source-k6-cloud/setup.py | 19 +++++++++- .../source-k6-cloud/source_k6_cloud/run.py | 14 ++++++++ .../connectors/source-klarna/main.py | 9 ++--- .../connectors/source-klarna/setup.py | 19 +++++++++- .../source-klarna/source_klarna/run.py | 14 ++++++++ .../connectors/source-klaus-api/main.py | 9 ++--- .../connectors/source-klaus-api/setup.py | 19 +++++++++- .../source-klaus-api/source_klaus_api/run.py | 14 ++++++++ .../connectors/source-klaviyo/main.py | 9 ++--- .../connectors/source-klaviyo/setup.py | 5 +++ .../source-klaviyo/source_klaviyo/run.py | 14 ++++++++ .../connectors/source-kustomer-singer/main.py | 8 ++--- .../source-kustomer-singer/setup.py | 5 +++ .../source_kustomer_singer/run.py | 13 +++++++ .../connectors/source-kyriba/main.py | 9 ++--- .../connectors/source-kyriba/setup.py | 5 +++ .../source-kyriba/source_kyriba/run.py | 14 ++++++++ .../connectors/source-kyve/main.py | 9 ++--- .../connectors/source-kyve/setup.py | 5 +++ .../connectors/source-kyve/source_kyve/run.py | 14 ++++++++ .../connectors/source-launchdarkly/main.py | 9 ++--- .../connectors/source-launchdarkly/setup.py | 19 +++++++++- .../source_launchdarkly/run.py | 14 ++++++++ .../connectors/source-lemlist/main.py | 9 ++--- .../connectors/source-lemlist/setup.py | 19 +++++++++- .../source-lemlist/source_lemlist/run.py | 14 ++++++++ .../connectors/source-lever-hiring/main.py | 9 ++--- .../connectors/source-lever-hiring/setup.py | 5 +++ .../source_lever_hiring/run.py | 14 ++++++++ .../connectors/source-linkedin-pages/main.py | 9 ++--- .../connectors/source-linkedin-pages/setup.py | 5 +++ .../source_linkedin_pages/run.py | 14 ++++++++ .../connectors/source-linnworks/main.py | 9 ++--- .../connectors/source-linnworks/setup.py | 5 +++ .../source-linnworks/source_linnworks/run.py | 14 ++++++++ .../connectors/source-lokalise/main.py | 9 ++--- .../connectors/source-lokalise/setup.py | 19 +++++++++- .../source-lokalise/source_lokalise/run.py | 14 ++++++++ .../connectors/source-looker/main.py | 9 ++--- .../connectors/source-looker/setup.py | 5 +++ .../source-looker/source_looker/run.py | 14 ++++++++ .../connectors/source-mailerlite/main.py | 9 ++--- .../connectors/source-mailerlite/setup.py | 19 +++++++++- .../source_mailerlite/run.py | 14 ++++++++ .../connectors/source-mailersend/main.py | 9 ++--- .../connectors/source-mailersend/setup.py | 19 +++++++++- .../source_mailersend/run.py | 14 ++++++++ .../connectors/source-mailgun/main.py | 9 ++--- .../connectors/source-mailgun/setup.py | 19 +++++++++- .../source-mailgun/source_mailgun/run.py | 14 ++++++++ .../connectors/source-mailjet-mail/main.py | 9 ++--- .../connectors/source-mailjet-mail/setup.py | 19 +++++++++- .../source_mailjet_mail/run.py | 14 ++++++++ .../connectors/source-mailjet-sms/main.py | 9 ++--- .../connectors/source-mailjet-sms/setup.py | 19 +++++++++- .../source_mailjet_sms/run.py | 14 ++++++++ .../connectors/source-merge/main.py | 9 ++--- .../connectors/source-merge/setup.py | 19 +++++++++- .../source-merge/source_merge/run.py | 14 ++++++++ .../connectors/source-metabase/main.py | 9 ++--- .../connectors/source-metabase/setup.py | 19 +++++++++- .../source-metabase/source_metabase/run.py | 14 ++++++++ .../source-microsoft-dataverse/main.py | 9 ++--- .../source-microsoft-dataverse/setup.py | 19 +++++++++- .../source_microsoft_dataverse/run.py | 14 ++++++++ .../source-microsoft-onedrive/main.py | 12 ++----- .../source-microsoft-onedrive/setup.py | 19 +++++++++- .../source_microsoft_onedrive/run.py | 17 +++++++++ .../connectors/source-microsoft-teams/main.py | 9 ++--- .../source-microsoft-teams/setup.py | 5 +++ .../source_microsoft_teams/run.py | 14 ++++++++ .../connectors/source-monday/main.py | 9 ++--- .../connectors/source-monday/setup.py | 5 +++ .../source-monday/source_monday/run.py | 14 ++++++++ .../connectors/source-my-hours/main.py | 9 ++--- .../connectors/source-my-hours/setup.py | 5 +++ .../source-my-hours/source_my_hours/run.py | 14 ++++++++ .../connectors/source-n8n/main.py | 9 ++--- .../connectors/source-n8n/setup.py | 19 +++++++++- .../connectors/source-n8n/source_n8n/run.py | 14 ++++++++ .../connectors/source-nasa/main.py | 9 ++--- .../connectors/source-nasa/setup.py | 19 +++++++++- .../connectors/source-nasa/source_nasa/run.py | 14 ++++++++ .../connectors/source-netsuite/main.py | 9 ++--- .../connectors/source-netsuite/setup.py | 19 +++++++++- .../source-netsuite/source_netsuite/run.py | 14 ++++++++ .../connectors/source-news-api/main.py | 9 ++--- .../connectors/source-news-api/setup.py | 19 +++++++++- .../source-news-api/source_news_api/run.py | 14 ++++++++ .../connectors/source-newsdata/main.py | 9 ++--- .../connectors/source-newsdata/setup.py | 19 +++++++++- .../source-newsdata/source_newsdata/run.py | 14 ++++++++ .../connectors/source-notion/main.py | 9 ++--- .../connectors/source-notion/setup.py | 5 +++ .../source-notion/source_notion/run.py | 14 ++++++++ .../connectors/source-nytimes/main.py | 9 ++--- .../connectors/source-nytimes/setup.py | 19 +++++++++- .../source-nytimes/source_nytimes/run.py | 14 ++++++++ .../connectors/source-okta/main.py | 9 ++--- .../connectors/source-okta/setup.py | 5 +++ .../connectors/source-okta/source_okta/run.py | 14 ++++++++ .../connectors/source-omnisend/main.py | 9 ++--- .../connectors/source-omnisend/setup.py | 19 +++++++++- .../source-omnisend/source_omnisend/run.py | 14 ++++++++ .../connectors/source-onesignal/main.py | 9 ++--- .../connectors/source-onesignal/setup.py | 19 +++++++++- .../source-onesignal/source_onesignal/run.py | 14 ++++++++ .../source-open-exchange-rates/main.py | 9 ++--- .../source-open-exchange-rates/setup.py | 19 +++++++++- .../source_open_exchange_rates/run.py | 14 ++++++++ .../connectors/source-openweather/main.py | 9 ++--- .../connectors/source-openweather/setup.py | 19 +++++++++- .../source_openweather/run.py | 14 ++++++++ .../connectors/source-opsgenie/main.py | 9 ++--- .../connectors/source-opsgenie/setup.py | 19 +++++++++- .../source-opsgenie/source_opsgenie/run.py | 14 ++++++++ .../connectors/source-orb/main.py | 9 ++--- .../connectors/source-orb/setup.py | 5 +++ .../connectors/source-orb/source_orb/run.py | 14 ++++++++ .../connectors/source-orbit/main.py | 9 ++--- .../connectors/source-orbit/setup.py | 19 +++++++++- .../source-orbit/source_orbit/run.py | 14 ++++++++ .../connectors/source-oura/main.py | 9 ++--- .../connectors/source-oura/setup.py | 19 +++++++++- .../connectors/source-oura/source_oura/run.py | 14 ++++++++ .../source-outbrain-amplify/main.py | 9 ++--- .../source-outbrain-amplify/setup.py | 19 +++++++++- .../source_outbrain_amplify/run.py | 14 ++++++++ .../connectors/source-outreach/main.py | 9 ++--- .../connectors/source-outreach/setup.py | 5 +++ .../source-outreach/source_outreach/run.py | 14 ++++++++ .../connectors/source-pagerduty/main.py | 9 ++--- .../connectors/source-pagerduty/setup.py | 19 +++++++++- .../source-pagerduty/source_pagerduty/run.py | 14 ++++++++ .../connectors/source-pardot/main.py | 9 ++--- .../connectors/source-pardot/setup.py | 5 +++ .../source-pardot/source_pardot/run.py | 14 ++++++++ .../connectors/source-partnerstack/main.py | 9 ++--- .../connectors/source-partnerstack/setup.py | 19 +++++++++- .../source_partnerstack/run.py | 14 ++++++++ .../source-paypal-transaction/setup.py | 14 +++++++- .../connectors/source-paystack/main.py | 9 ++--- .../connectors/source-paystack/setup.py | 5 +++ .../source-paystack/source_paystack/run.py | 14 ++++++++ .../connectors/source-pendo/main.py | 9 ++--- .../connectors/source-pendo/setup.py | 19 +++++++++- .../source-pendo/source_pendo/run.py | 14 ++++++++ .../connectors/source-persistiq/main.py | 9 ++--- .../connectors/source-persistiq/setup.py | 19 +++++++++- .../source-persistiq/source_persistiq/run.py | 14 ++++++++ .../connectors/source-pexels-api/main.py | 9 ++--- .../connectors/source-pexels-api/setup.py | 19 +++++++++- .../source_pexels_api/run.py | 14 ++++++++ .../connectors/source-pinterest/main.py | 9 ++--- .../connectors/source-pinterest/setup.py | 5 +++ .../source-pinterest/source_pinterest/run.py | 14 ++++++++ .../connectors/source-pipedrive/setup.py | 14 +++++++- .../connectors/source-pivotal-tracker/main.py | 9 ++--- .../source-pivotal-tracker/setup.py | 5 +++ .../source_pivotal_tracker/run.py | 14 ++++++++ .../connectors/source-plaid/main.py | 9 ++--- .../connectors/source-plaid/setup.py | 19 +++++++++- .../source-plaid/source_plaid/run.py | 14 ++++++++ .../connectors/source-plausible/main.py | 9 ++--- .../connectors/source-plausible/setup.py | 19 +++++++++- .../source-plausible/source_plausible/run.py | 14 ++++++++ .../connectors/source-pocket/main.py | 9 ++--- .../connectors/source-pocket/setup.py | 19 +++++++++- .../source-pocket/source_pocket/run.py | 14 ++++++++ .../connectors/source-pokeapi/main.py | 8 ++--- .../connectors/source-pokeapi/setup.py | 19 +++++++++- .../source-pokeapi/source_pokeapi/run.py | 13 +++++++ .../source-polygon-stock-api/main.py | 9 ++--- .../source-polygon-stock-api/setup.py | 19 +++++++++- .../source_polygon_stock_api/run.py | 14 ++++++++ .../connectors/source-posthog/main.py | 9 ++--- .../connectors/source-posthog/setup.py | 5 +++ .../source-posthog/source_posthog/run.py | 14 ++++++++ .../connectors/source-postmarkapp/main.py | 9 ++--- .../connectors/source-postmarkapp/setup.py | 19 +++++++++- .../source_postmarkapp/run.py | 14 ++++++++ .../connectors/source-prestashop/main.py | 9 ++--- .../connectors/source-prestashop/setup.py | 19 +++++++++- .../source_prestashop/run.py | 14 ++++++++ .../connectors/source-primetric/main.py | 9 ++--- .../connectors/source-primetric/setup.py | 19 +++++++++- .../source-primetric/source_primetric/run.py | 14 ++++++++ .../connectors/source-public-apis/main.py | 9 ++--- .../connectors/source-public-apis/setup.py | 19 +++++++++- .../source_public_apis/run.py | 14 ++++++++ .../connectors/source-punk-api/main.py | 9 ++--- .../connectors/source-punk-api/setup.py | 19 +++++++++- .../source-punk-api/source_punk_api/run.py | 14 ++++++++ .../connectors/source-pypi/main.py | 9 ++--- .../connectors/source-pypi/setup.py | 19 +++++++++- .../connectors/source-pypi/source_pypi/run.py | 14 ++++++++ .../source-python-http-tutorial/main.py | 9 ++--- .../source-python-http-tutorial/setup.py | 5 +++ .../source_python_http_tutorial/run.py | 14 ++++++++ .../connectors/source-qonto/main.py | 9 ++--- .../connectors/source-qonto/setup.py | 19 +++++++++- .../source-qonto/source_qonto/run.py | 14 ++++++++ .../connectors/source-qualaroo/main.py | 9 ++--- .../connectors/source-qualaroo/setup.py | 19 +++++++++- .../source-qualaroo/source_qualaroo/run.py | 14 ++++++++ .../connectors/source-quickbooks/main.py | 9 ++--- .../connectors/source-quickbooks/setup.py | 19 +++++++++- .../source_quickbooks/run.py | 14 ++++++++ .../connectors/source-railz/main.py | 9 ++--- .../connectors/source-railz/setup.py | 19 +++++++++- .../source-railz/source_railz/run.py | 14 ++++++++ .../source-rd-station-marketing/main.py | 9 ++--- .../source-rd-station-marketing/setup.py | 19 +++++++++- .../source_rd_station_marketing/run.py | 14 ++++++++ .../connectors/source-recharge/main.py | 9 ++--- .../connectors/source-recharge/setup.py | 5 +++ .../source-recharge/source_recharge/run.py | 14 ++++++++ .../connectors/source-recreation/main.py | 9 ++--- .../connectors/source-recreation/setup.py | 19 +++++++++- .../source_recreation/run.py | 14 ++++++++ .../connectors/source-recruitee/main.py | 9 ++--- .../connectors/source-recruitee/setup.py | 19 +++++++++- .../source-recruitee/source_recruitee/run.py | 14 ++++++++ .../connectors/source-recurly/main.py | 9 ++--- .../connectors/source-recurly/setup.py | 5 +++ .../source-recurly/source_recurly/run.py | 14 ++++++++ .../connectors/source-reply-io/main.py | 9 ++--- .../connectors/source-reply-io/setup.py | 19 +++++++++- .../source-reply-io/source_reply_io/run.py | 14 ++++++++ .../connectors/source-retently/main.py | 9 ++--- .../connectors/source-retently/setup.py | 19 +++++++++- .../source-retently/source_retently/run.py | 14 ++++++++ .../connectors/source-ringcentral/main.py | 9 ++--- .../connectors/source-ringcentral/setup.py | 19 +++++++++- .../source_ringcentral/run.py | 14 ++++++++ .../connectors/source-rki-covid/main.py | 9 ++--- .../connectors/source-rki-covid/setup.py | 5 +++ .../source-rki-covid/source_rki_covid/run.py | 14 ++++++++ .../connectors/source-rocket-chat/main.py | 9 ++--- .../connectors/source-rocket-chat/setup.py | 19 +++++++++- .../source_rocket_chat/run.py | 14 ++++++++ .../connectors/source-rss/main.py | 9 ++--- .../connectors/source-rss/setup.py | 19 +++++++++- .../connectors/source-rss/source_rss/run.py | 14 ++++++++ .../connectors/source-salesforce/setup.py | 14 +++++++- .../connectors/source-salesloft/main.py | 9 ++--- .../connectors/source-salesloft/setup.py | 5 +++ .../source-salesloft/source_salesloft/run.py | 14 ++++++++ .../connectors/source-sap-fieldglass/main.py | 9 ++--- .../connectors/source-sap-fieldglass/setup.py | 19 +++++++++- .../source_sap_fieldglass/run.py | 14 ++++++++ .../source-scaffold-source-http/main.py | 9 ++--- .../source-scaffold-source-http/setup.py | 19 +++++++++- .../source_scaffold_source_http/run.py | 14 ++++++++ .../source-scaffold-source-python/main.py | 9 ++--- .../source-scaffold-source-python/setup.py | 5 +++ .../source_scaffold_source_python/run.py | 14 ++++++++ .../connectors/source-search-metrics/main.py | 9 ++--- .../connectors/source-search-metrics/setup.py | 5 +++ .../source_search_metrics/run.py | 14 ++++++++ .../connectors/source-secoda/main.py | 9 ++--- .../connectors/source-secoda/setup.py | 19 +++++++++- .../source-secoda/source_secoda/run.py | 14 ++++++++ .../connectors/source-sendgrid/main.py | 9 ++--- .../connectors/source-sendgrid/setup.py | 5 +++ .../source-sendgrid/source_sendgrid/run.py | 14 ++++++++ .../connectors/source-sendinblue/main.py | 9 ++--- .../connectors/source-sendinblue/setup.py | 19 +++++++++- .../source_sendinblue/run.py | 14 ++++++++ .../connectors/source-senseforce/main.py | 9 ++--- .../connectors/source-senseforce/setup.py | 19 +++++++++- .../source_senseforce/run.py | 14 ++++++++ .../connectors/source-sentry/main.py | 9 ++--- .../connectors/source-sentry/setup.py | 5 +++ .../source-sentry/source_sentry/run.py | 14 ++++++++ .../connectors/source-serpstat/main.py | 9 ++--- .../connectors/source-serpstat/setup.py | 19 +++++++++- .../source-serpstat/source_serpstat/run.py | 14 ++++++++ .../connectors/source-sftp-bulk/main.py | 9 ++--- .../connectors/source-sftp-bulk/setup.py | 5 +++ .../source-sftp-bulk/source_sftp_bulk/run.py | 14 ++++++++ .../connectors/source-shortio/main.py | 9 ++--- .../connectors/source-shortio/setup.py | 19 +++++++++- .../source-shortio/source_shortio/run.py | 14 ++++++++ .../connectors/source-smaily/main.py | 9 ++--- .../connectors/source-smaily/setup.py | 19 +++++++++- .../source-smaily/source_smaily/run.py | 14 ++++++++ .../connectors/source-smartengage/main.py | 9 ++--- .../connectors/source-smartengage/setup.py | 19 +++++++++- .../source_smartengage/run.py | 14 ++++++++ .../source-snapchat-marketing/main.py | 9 ++--- .../source-snapchat-marketing/setup.py | 5 +++ .../source_snapchat_marketing/run.py | 14 ++++++++ .../connectors/source-sonar-cloud/main.py | 9 ++--- .../connectors/source-sonar-cloud/setup.py | 19 +++++++++- .../source_sonar_cloud/run.py | 14 ++++++++ .../connectors/source-spacex-api/main.py | 9 ++--- .../connectors/source-spacex-api/setup.py | 19 +++++++++- .../source_spacex_api/run.py | 14 ++++++++ .../connectors/source-square/main.py | 9 ++--- .../connectors/source-square/setup.py | 19 +++++++++- .../source-square/source_square/run.py | 14 ++++++++ .../connectors/source-statuspage/main.py | 9 ++--- .../connectors/source-statuspage/setup.py | 19 +++++++++- .../source_statuspage/run.py | 14 ++++++++ .../connectors/source-strava/main.py | 9 ++--- .../connectors/source-strava/setup.py | 19 +++++++++- .../source-strava/source_strava/run.py | 14 ++++++++ .../connectors/source-stripe/setup.py | 14 +++++++- .../connectors/source-survey-sparrow/main.py | 9 ++--- .../connectors/source-survey-sparrow/setup.py | 19 +++++++++- .../source_survey_sparrow/run.py | 14 ++++++++ .../connectors/source-surveycto/main.py | 9 ++--- .../connectors/source-surveycto/setup.py | 19 +++++++++- .../source-surveycto/source_surveycto/run.py | 14 ++++++++ .../connectors/source-surveymonkey/main.py | 9 ++--- .../connectors/source-surveymonkey/setup.py | 5 +++ .../source_surveymonkey/run.py | 14 ++++++++ .../source-talkdesk-explore/main.py | 9 ++--- .../source-talkdesk-explore/setup.py | 5 +++ .../source_talkdesk_explore/run.py | 14 ++++++++ .../connectors/source-tempo/main.py | 9 ++--- .../connectors/source-tempo/setup.py | 5 +++ .../source-tempo/source_tempo/run.py | 14 ++++++++ .../source-the-guardian-api/main.py | 9 ++--- .../source-the-guardian-api/setup.py | 19 +++++++++- .../source_the_guardian_api/run.py | 14 ++++++++ .../source-tiktok-marketing/main.py | 9 ++--- .../source-tiktok-marketing/setup.py | 5 +++ .../source_tiktok_marketing/run.py | 14 ++++++++ .../connectors/source-timely/main.py | 9 ++--- .../connectors/source-timely/setup.py | 19 +++++++++- .../source-timely/source_timely/run.py | 14 ++++++++ .../connectors/source-tmdb/main.py | 9 ++--- .../connectors/source-tmdb/setup.py | 19 +++++++++- .../connectors/source-tmdb/source_tmdb/run.py | 14 ++++++++ .../connectors/source-todoist/main.py | 9 ++--- .../connectors/source-todoist/setup.py | 19 +++++++++- .../source-todoist/source_todoist/run.py | 14 ++++++++ .../connectors/source-toggl/main.py | 9 ++--- .../connectors/source-toggl/setup.py | 19 +++++++++- .../source-toggl/source_toggl/run.py | 14 ++++++++ .../connectors/source-tplcentral/main.py | 9 ++--- .../connectors/source-tplcentral/setup.py | 5 +++ .../source_tplcentral/run.py | 14 ++++++++ .../connectors/source-trello/main.py | 9 ++--- .../connectors/source-trello/setup.py | 19 +++++++++- .../source-trello/source_trello/run.py | 14 ++++++++ .../connectors/source-trustpilot/main.py | 9 ++--- .../connectors/source-trustpilot/setup.py | 19 +++++++++- .../source_trustpilot/run.py | 14 ++++++++ .../connectors/source-tvmaze-schedule/main.py | 9 ++--- .../source-tvmaze-schedule/setup.py | 19 +++++++++- .../source_tvmaze_schedule/run.py | 14 ++++++++ .../source-twilio-taskrouter/main.py | 9 ++--- .../source-twilio-taskrouter/setup.py | 19 +++++++++- .../source_twilio_taskrouter/run.py | 14 ++++++++ .../connectors/source-twilio/main.py | 9 ++--- .../connectors/source-twilio/setup.py | 5 +++ .../source-twilio/source_twilio/run.py | 14 ++++++++ .../connectors/source-twitter/main.py | 9 ++--- .../connectors/source-twitter/setup.py | 19 +++++++++- .../source-twitter/source_twitter/run.py | 14 ++++++++ .../connectors/source-tyntec-sms/main.py | 9 ++--- .../connectors/source-tyntec-sms/setup.py | 19 +++++++++- .../source_tyntec_sms/run.py | 14 ++++++++ .../connectors/source-typeform/setup.py | 14 +++++++- .../connectors/source-unleash/main.py | 9 ++--- .../connectors/source-unleash/setup.py | 19 +++++++++- .../source-unleash/source_unleash/run.py | 14 ++++++++ .../connectors/source-us-census/main.py | 9 ++--- .../connectors/source-us-census/setup.py | 5 +++ .../source-us-census/source_us_census/run.py | 14 ++++++++ .../connectors/source-vantage/main.py | 9 ++--- .../connectors/source-vantage/setup.py | 19 +++++++++- .../source-vantage/source_vantage/run.py | 14 ++++++++ .../connectors/source-visma-economic/main.py | 9 ++--- .../connectors/source-visma-economic/setup.py | 19 +++++++++- .../source_visma_economic/run.py | 14 ++++++++ .../connectors/source-vitally/main.py | 9 ++--- .../connectors/source-vitally/setup.py | 19 +++++++++- .../source-vitally/source_vitally/run.py | 14 ++++++++ .../connectors/source-waiteraid/main.py | 9 ++--- .../connectors/source-waiteraid/setup.py | 19 +++++++++- .../source-waiteraid/source_waiteraid/run.py | 14 ++++++++ .../connectors/source-weatherstack/main.py | 9 ++--- .../connectors/source-weatherstack/setup.py | 19 +++++++++- .../source_weatherstack/run.py | 14 ++++++++ .../connectors/source-webflow/main.py | 9 ++--- .../connectors/source-webflow/setup.py | 19 +++++++++- .../source-webflow/source_webflow/run.py | 14 ++++++++ .../connectors/source-whisky-hunter/main.py | 9 ++--- .../connectors/source-whisky-hunter/setup.py | 19 +++++++++- .../source_whisky_hunter/run.py | 14 ++++++++ .../source-wikipedia-pageviews/main.py | 9 ++--- .../source-wikipedia-pageviews/setup.py | 19 +++++++++- .../source_wikipedia_pageviews/run.py | 14 ++++++++ .../connectors/source-woocommerce/main.py | 9 ++--- .../connectors/source-woocommerce/setup.py | 19 +++++++++- .../source_woocommerce/run.py | 14 ++++++++ .../connectors/source-workable/main.py | 9 ++--- .../connectors/source-workable/setup.py | 19 +++++++++- .../source-workable/source_workable/run.py | 14 ++++++++ .../connectors/source-workramp/main.py | 9 ++--- .../connectors/source-workramp/setup.py | 19 +++++++++- .../source-workramp/source_workramp/run.py | 14 ++++++++ .../connectors/source-wrike/main.py | 9 ++--- .../connectors/source-wrike/setup.py | 19 +++++++++- .../source-wrike/source_wrike/run.py | 14 ++++++++ .../connectors/source-xero/setup.py | 14 +++++++- .../connectors/source-xkcd/main.py | 9 ++--- .../connectors/source-xkcd/setup.py | 19 +++++++++- .../connectors/source-xkcd/source_xkcd/run.py | 14 ++++++++ .../source-yahoo-finance-price/main.py | 9 ++--- .../source-yahoo-finance-price/setup.py | 19 +++++++++- .../source_yahoo_finance_price/run.py | 14 ++++++++ .../connectors/source-yandex-metrica/main.py | 9 ++--- .../connectors/source-yandex-metrica/setup.py | 19 +++++++++- .../source_yandex_metrica/run.py | 14 ++++++++ .../connectors/source-yotpo/main.py | 9 ++--- .../connectors/source-yotpo/setup.py | 19 +++++++++- .../source-yotpo/source_yotpo/run.py | 14 ++++++++ .../connectors/source-younium/main.py | 9 ++--- .../connectors/source-younium/setup.py | 19 +++++++++- .../source-younium/source_younium/run.py | 14 ++++++++ .../source-youtube-analytics/main.py | 9 ++--- .../source-youtube-analytics/setup.py | 5 +++ .../source_youtube_analytics/run.py | 14 ++++++++ .../source-zapier-supported-storage/main.py | 9 ++--- .../source-zapier-supported-storage/setup.py | 19 +++++++++- .../source_zapier_supported_storage/run.py | 14 ++++++++ .../connectors/source-zendesk-sell/main.py | 9 ++--- .../connectors/source-zendesk-sell/setup.py | 19 +++++++++- .../source_zendesk_sell/run.py | 14 ++++++++ .../source-zendesk-sunshine/main.py | 9 ++--- .../source-zendesk-sunshine/setup.py | 19 +++++++++- .../source_zendesk_sunshine/run.py | 14 ++++++++ .../connectors/source-zenefits/main.py | 9 ++--- .../connectors/source-zenefits/setup.py | 19 +++++++++- .../source-zenefits/source_zenefits/run.py | 14 ++++++++ .../connectors/source-zenloop/main.py | 9 ++--- .../connectors/source-zenloop/setup.py | 5 +++ .../source-zenloop/source_zenloop/run.py | 14 ++++++++ .../connectors/source-zoho-crm/main.py | 9 ++--- .../connectors/source-zoho-crm/setup.py | 5 +++ .../source-zoho-crm/source_zoho_crm/run.py | 14 ++++++++ .../connectors/source-zoom/main.py | 9 ++--- .../connectors/source-zoom/setup.py | 19 +++++++++- .../connectors/source-zoom/source_zoom/run.py | 14 ++++++++ .../connectors/source-zuora/main.py | 9 ++--- .../connectors/source-zuora/setup.py | 5 +++ .../source-zuora/source_zuora/run.py | 14 ++++++++ 755 files changed, 7678 insertions(+), 1984 deletions(-) create mode 100644 airbyte-integrations/connectors/source-activecampaign/source_activecampaign/run.py create mode 100644 airbyte-integrations/connectors/source-adjust/source_adjust/run.py create mode 100644 airbyte-integrations/connectors/source-aha/source_aha/run.py create mode 100644 airbyte-integrations/connectors/source-aircall/source_aircall/run.py create mode 100644 airbyte-integrations/connectors/source-airtable/source_airtable/run.py create mode 100644 airbyte-integrations/connectors/source-alpha-vantage/source_alpha_vantage/run.py create mode 100644 airbyte-integrations/connectors/source-amazon-ads/source_amazon_ads/run.py create mode 100644 airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/run.py create mode 100644 airbyte-integrations/connectors/source-amazon-sqs/source_amazon_sqs/run.py create mode 100644 airbyte-integrations/connectors/source-amplitude/source_amplitude/run.py create mode 100644 airbyte-integrations/connectors/source-appfollow/source_appfollow/run.py create mode 100644 airbyte-integrations/connectors/source-apple-search-ads/source_apple_search_ads/run.py create mode 100644 airbyte-integrations/connectors/source-appsflyer/source_appsflyer/run.py create mode 100644 airbyte-integrations/connectors/source-appstore-singer/source_appstore_singer/run.py create mode 100644 airbyte-integrations/connectors/source-asana/source_asana/run.py create mode 100644 airbyte-integrations/connectors/source-ashby/source_ashby/run.py create mode 100644 airbyte-integrations/connectors/source-auth0/source_auth0/run.py create mode 100644 airbyte-integrations/connectors/source-aws-cloudtrail/source_aws_cloudtrail/run.py create mode 100644 airbyte-integrations/connectors/source-azure-blob-storage/source_azure_blob_storage/run.py create mode 100644 airbyte-integrations/connectors/source-azure-table/source_azure_table/run.py create mode 100644 airbyte-integrations/connectors/source-babelforce/source_babelforce/run.py create mode 100644 airbyte-integrations/connectors/source-bamboo-hr/source_bamboo_hr/run.py create mode 100644 airbyte-integrations/connectors/source-bigcommerce/source_bigcommerce/run.py create mode 100644 airbyte-integrations/connectors/source-bing-ads/source_bing_ads/run.py create mode 100644 airbyte-integrations/connectors/source-braintree/source_braintree/run.py create mode 100644 airbyte-integrations/connectors/source-braze/source_braze/run.py create mode 100644 airbyte-integrations/connectors/source-breezometer/source_breezometer/run.py create mode 100644 airbyte-integrations/connectors/source-callrail/source_callrail/run.py create mode 100644 airbyte-integrations/connectors/source-captain-data/source_captain_data/run.py create mode 100644 airbyte-integrations/connectors/source-cart/source_cart/run.py create mode 100644 airbyte-integrations/connectors/source-chargebee/source_chargebee/run.py create mode 100644 airbyte-integrations/connectors/source-chargify/source_chargify/run.py create mode 100644 airbyte-integrations/connectors/source-chartmogul/source_chartmogul/run.py create mode 100644 airbyte-integrations/connectors/source-clickup-api/source_clickup_api/run.py create mode 100644 airbyte-integrations/connectors/source-clockify/source_clockify/run.py create mode 100644 airbyte-integrations/connectors/source-close-com/source_close_com/run.py create mode 100644 airbyte-integrations/connectors/source-coda/source_coda/run.py create mode 100644 airbyte-integrations/connectors/source-coin-api/source_coin_api/run.py create mode 100644 airbyte-integrations/connectors/source-coingecko-coins/source_coingecko_coins/run.py create mode 100644 airbyte-integrations/connectors/source-coinmarketcap/source_coinmarketcap/run.py create mode 100644 airbyte-integrations/connectors/source-commcare/source_commcare/run.py create mode 100644 airbyte-integrations/connectors/source-commercetools/source_commercetools/run.py create mode 100644 airbyte-integrations/connectors/source-configcat/source_configcat/run.py create mode 100644 airbyte-integrations/connectors/source-confluence/source_confluence/run.py create mode 100644 airbyte-integrations/connectors/source-convertkit/source_convertkit/run.py create mode 100644 airbyte-integrations/connectors/source-convex/source_convex/run.py create mode 100644 airbyte-integrations/connectors/source-copper/source_copper/run.py create mode 100644 airbyte-integrations/connectors/source-courier/source_courier/run.py create mode 100644 airbyte-integrations/connectors/source-customer-io/source_customer_io/run.py create mode 100644 airbyte-integrations/connectors/source-datadog/source_datadog/run.py create mode 100644 airbyte-integrations/connectors/source-datascope/source_datascope/run.py create mode 100644 airbyte-integrations/connectors/source-delighted/source_delighted/run.py create mode 100644 airbyte-integrations/connectors/source-dixa/source_dixa/run.py create mode 100644 airbyte-integrations/connectors/source-dockerhub/source_dockerhub/run.py create mode 100644 airbyte-integrations/connectors/source-dremio/source_dremio/run.py create mode 100644 airbyte-integrations/connectors/source-drift/source_drift/run.py create mode 100644 airbyte-integrations/connectors/source-dv-360/source_dv_360/run.py create mode 100644 airbyte-integrations/connectors/source-emailoctopus/source_emailoctopus/run.py create mode 100644 airbyte-integrations/connectors/source-everhour/source_everhour/run.py create mode 100644 airbyte-integrations/connectors/source-exchange-rates/source_exchange_rates/run.py create mode 100644 airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/run.py create mode 100644 airbyte-integrations/connectors/source-fastbill/source_fastbill/run.py create mode 100644 airbyte-integrations/connectors/source-fauna/source_fauna/run.py create mode 100644 airbyte-integrations/connectors/source-file/source_file/run.py create mode 100644 airbyte-integrations/connectors/source-firebase-realtime-database/source_firebase_realtime_database/run.py create mode 100644 airbyte-integrations/connectors/source-firebolt/source_firebolt/run.py create mode 100644 airbyte-integrations/connectors/source-flexport/source_flexport/run.py create mode 100644 airbyte-integrations/connectors/source-freshcaller/source_freshcaller/run.py create mode 100644 airbyte-integrations/connectors/source-freshsales/source_freshsales/run.py create mode 100644 airbyte-integrations/connectors/source-freshservice/source_freshservice/run.py create mode 100644 airbyte-integrations/connectors/source-fullstory/source_fullstory/run.py create mode 100644 airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/run.py create mode 100644 airbyte-integrations/connectors/source-gcs/source_gcs/run.py create mode 100644 airbyte-integrations/connectors/source-genesys/source_genesys/run.py create mode 100644 airbyte-integrations/connectors/source-getlago/source_getlago/run.py create mode 100644 airbyte-integrations/connectors/source-github/source_github/run.py create mode 100644 airbyte-integrations/connectors/source-glassfrog/source_glassfrog/run.py create mode 100644 airbyte-integrations/connectors/source-gnews/source_gnews/run.py create mode 100644 airbyte-integrations/connectors/source-gocardless/source_gocardless/run.py create mode 100644 airbyte-integrations/connectors/source-gong/source_gong/run.py create mode 100644 airbyte-integrations/connectors/source-google-analytics-v4/source_google_analytics_v4/run.py create mode 100644 airbyte-integrations/connectors/source-google-directory/source_google_directory/run.py create mode 100644 airbyte-integrations/connectors/source-google-pagespeed-insights/source_google_pagespeed_insights/run.py create mode 100755 airbyte-integrations/connectors/source-google-search-console/source_google_search_console/run.py create mode 100644 airbyte-integrations/connectors/source-google-webfonts/source_google_webfonts/run.py create mode 100644 airbyte-integrations/connectors/source-google-workspace-admin-reports/source_google_workspace_admin_reports/run.py create mode 100644 airbyte-integrations/connectors/source-greenhouse/source_greenhouse/run.py create mode 100644 airbyte-integrations/connectors/source-gridly/source_gridly/run.py create mode 100644 airbyte-integrations/connectors/source-gutendex/source_gutendex/run.py create mode 100644 airbyte-integrations/connectors/source-harness/source_harness/run.py create mode 100644 airbyte-integrations/connectors/source-harvest/source_harvest/run.py create mode 100644 airbyte-integrations/connectors/source-hellobaton/source_hellobaton/run.py create mode 100644 airbyte-integrations/connectors/source-hubplanner/source_hubplanner/run.py create mode 100644 airbyte-integrations/connectors/source-hubspot/source_hubspot/run.py create mode 100644 airbyte-integrations/connectors/source-insightly/source_insightly/run.py create mode 100644 airbyte-integrations/connectors/source-instatus/source_instatus/run.py create mode 100644 airbyte-integrations/connectors/source-intercom/source_intercom/run.py create mode 100644 airbyte-integrations/connectors/source-intruder/source_intruder/run.py create mode 100644 airbyte-integrations/connectors/source-ip2whois/source_ip2whois/run.py create mode 100644 airbyte-integrations/connectors/source-jira/source_jira/run.py create mode 100644 airbyte-integrations/connectors/source-k6-cloud/source_k6_cloud/run.py create mode 100644 airbyte-integrations/connectors/source-klarna/source_klarna/run.py create mode 100644 airbyte-integrations/connectors/source-klaus-api/source_klaus_api/run.py create mode 100644 airbyte-integrations/connectors/source-klaviyo/source_klaviyo/run.py create mode 100644 airbyte-integrations/connectors/source-kustomer-singer/source_kustomer_singer/run.py create mode 100644 airbyte-integrations/connectors/source-kyriba/source_kyriba/run.py create mode 100644 airbyte-integrations/connectors/source-kyve/source_kyve/run.py create mode 100644 airbyte-integrations/connectors/source-launchdarkly/source_launchdarkly/run.py create mode 100644 airbyte-integrations/connectors/source-lemlist/source_lemlist/run.py create mode 100644 airbyte-integrations/connectors/source-lever-hiring/source_lever_hiring/run.py create mode 100644 airbyte-integrations/connectors/source-linkedin-pages/source_linkedin_pages/run.py create mode 100644 airbyte-integrations/connectors/source-linnworks/source_linnworks/run.py create mode 100644 airbyte-integrations/connectors/source-lokalise/source_lokalise/run.py create mode 100644 airbyte-integrations/connectors/source-looker/source_looker/run.py create mode 100644 airbyte-integrations/connectors/source-mailerlite/source_mailerlite/run.py create mode 100644 airbyte-integrations/connectors/source-mailersend/source_mailersend/run.py create mode 100644 airbyte-integrations/connectors/source-mailgun/source_mailgun/run.py create mode 100644 airbyte-integrations/connectors/source-mailjet-mail/source_mailjet_mail/run.py create mode 100644 airbyte-integrations/connectors/source-mailjet-sms/source_mailjet_sms/run.py create mode 100644 airbyte-integrations/connectors/source-merge/source_merge/run.py create mode 100644 airbyte-integrations/connectors/source-metabase/source_metabase/run.py create mode 100644 airbyte-integrations/connectors/source-microsoft-dataverse/source_microsoft_dataverse/run.py create mode 100644 airbyte-integrations/connectors/source-microsoft-onedrive/source_microsoft_onedrive/run.py create mode 100644 airbyte-integrations/connectors/source-microsoft-teams/source_microsoft_teams/run.py create mode 100644 airbyte-integrations/connectors/source-monday/source_monday/run.py create mode 100644 airbyte-integrations/connectors/source-my-hours/source_my_hours/run.py create mode 100644 airbyte-integrations/connectors/source-n8n/source_n8n/run.py create mode 100644 airbyte-integrations/connectors/source-nasa/source_nasa/run.py create mode 100644 airbyte-integrations/connectors/source-netsuite/source_netsuite/run.py create mode 100644 airbyte-integrations/connectors/source-news-api/source_news_api/run.py create mode 100644 airbyte-integrations/connectors/source-newsdata/source_newsdata/run.py create mode 100644 airbyte-integrations/connectors/source-notion/source_notion/run.py create mode 100644 airbyte-integrations/connectors/source-nytimes/source_nytimes/run.py create mode 100644 airbyte-integrations/connectors/source-okta/source_okta/run.py create mode 100644 airbyte-integrations/connectors/source-omnisend/source_omnisend/run.py create mode 100644 airbyte-integrations/connectors/source-onesignal/source_onesignal/run.py create mode 100644 airbyte-integrations/connectors/source-open-exchange-rates/source_open_exchange_rates/run.py create mode 100644 airbyte-integrations/connectors/source-openweather/source_openweather/run.py create mode 100644 airbyte-integrations/connectors/source-opsgenie/source_opsgenie/run.py create mode 100644 airbyte-integrations/connectors/source-orb/source_orb/run.py create mode 100644 airbyte-integrations/connectors/source-orbit/source_orbit/run.py create mode 100644 airbyte-integrations/connectors/source-oura/source_oura/run.py create mode 100644 airbyte-integrations/connectors/source-outbrain-amplify/source_outbrain_amplify/run.py create mode 100644 airbyte-integrations/connectors/source-outreach/source_outreach/run.py create mode 100644 airbyte-integrations/connectors/source-pagerduty/source_pagerduty/run.py create mode 100644 airbyte-integrations/connectors/source-pardot/source_pardot/run.py create mode 100644 airbyte-integrations/connectors/source-partnerstack/source_partnerstack/run.py create mode 100644 airbyte-integrations/connectors/source-paystack/source_paystack/run.py create mode 100644 airbyte-integrations/connectors/source-pendo/source_pendo/run.py create mode 100644 airbyte-integrations/connectors/source-persistiq/source_persistiq/run.py create mode 100644 airbyte-integrations/connectors/source-pexels-api/source_pexels_api/run.py create mode 100644 airbyte-integrations/connectors/source-pinterest/source_pinterest/run.py create mode 100644 airbyte-integrations/connectors/source-pivotal-tracker/source_pivotal_tracker/run.py create mode 100644 airbyte-integrations/connectors/source-plaid/source_plaid/run.py create mode 100644 airbyte-integrations/connectors/source-plausible/source_plausible/run.py create mode 100644 airbyte-integrations/connectors/source-pocket/source_pocket/run.py create mode 100644 airbyte-integrations/connectors/source-pokeapi/source_pokeapi/run.py create mode 100644 airbyte-integrations/connectors/source-polygon-stock-api/source_polygon_stock_api/run.py create mode 100644 airbyte-integrations/connectors/source-posthog/source_posthog/run.py create mode 100644 airbyte-integrations/connectors/source-postmarkapp/source_postmarkapp/run.py create mode 100644 airbyte-integrations/connectors/source-prestashop/source_prestashop/run.py create mode 100644 airbyte-integrations/connectors/source-primetric/source_primetric/run.py create mode 100644 airbyte-integrations/connectors/source-public-apis/source_public_apis/run.py create mode 100644 airbyte-integrations/connectors/source-punk-api/source_punk_api/run.py create mode 100644 airbyte-integrations/connectors/source-pypi/source_pypi/run.py create mode 100644 airbyte-integrations/connectors/source-python-http-tutorial/source_python_http_tutorial/run.py create mode 100644 airbyte-integrations/connectors/source-qonto/source_qonto/run.py create mode 100644 airbyte-integrations/connectors/source-qualaroo/source_qualaroo/run.py create mode 100644 airbyte-integrations/connectors/source-quickbooks/source_quickbooks/run.py create mode 100644 airbyte-integrations/connectors/source-railz/source_railz/run.py create mode 100644 airbyte-integrations/connectors/source-rd-station-marketing/source_rd_station_marketing/run.py create mode 100644 airbyte-integrations/connectors/source-recharge/source_recharge/run.py create mode 100644 airbyte-integrations/connectors/source-recreation/source_recreation/run.py create mode 100644 airbyte-integrations/connectors/source-recruitee/source_recruitee/run.py create mode 100644 airbyte-integrations/connectors/source-recurly/source_recurly/run.py create mode 100644 airbyte-integrations/connectors/source-reply-io/source_reply_io/run.py create mode 100644 airbyte-integrations/connectors/source-retently/source_retently/run.py create mode 100644 airbyte-integrations/connectors/source-ringcentral/source_ringcentral/run.py create mode 100644 airbyte-integrations/connectors/source-rki-covid/source_rki_covid/run.py create mode 100644 airbyte-integrations/connectors/source-rocket-chat/source_rocket_chat/run.py create mode 100644 airbyte-integrations/connectors/source-rss/source_rss/run.py create mode 100644 airbyte-integrations/connectors/source-salesloft/source_salesloft/run.py create mode 100644 airbyte-integrations/connectors/source-sap-fieldglass/source_sap_fieldglass/run.py create mode 100644 airbyte-integrations/connectors/source-scaffold-source-http/source_scaffold_source_http/run.py create mode 100644 airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/run.py create mode 100644 airbyte-integrations/connectors/source-search-metrics/source_search_metrics/run.py create mode 100644 airbyte-integrations/connectors/source-secoda/source_secoda/run.py create mode 100644 airbyte-integrations/connectors/source-sendgrid/source_sendgrid/run.py create mode 100644 airbyte-integrations/connectors/source-sendinblue/source_sendinblue/run.py create mode 100644 airbyte-integrations/connectors/source-senseforce/source_senseforce/run.py create mode 100644 airbyte-integrations/connectors/source-sentry/source_sentry/run.py create mode 100644 airbyte-integrations/connectors/source-serpstat/source_serpstat/run.py create mode 100644 airbyte-integrations/connectors/source-sftp-bulk/source_sftp_bulk/run.py create mode 100644 airbyte-integrations/connectors/source-shortio/source_shortio/run.py create mode 100644 airbyte-integrations/connectors/source-smaily/source_smaily/run.py create mode 100644 airbyte-integrations/connectors/source-smartengage/source_smartengage/run.py create mode 100644 airbyte-integrations/connectors/source-snapchat-marketing/source_snapchat_marketing/run.py create mode 100644 airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/run.py create mode 100644 airbyte-integrations/connectors/source-spacex-api/source_spacex_api/run.py create mode 100644 airbyte-integrations/connectors/source-square/source_square/run.py create mode 100644 airbyte-integrations/connectors/source-statuspage/source_statuspage/run.py create mode 100644 airbyte-integrations/connectors/source-strava/source_strava/run.py create mode 100644 airbyte-integrations/connectors/source-survey-sparrow/source_survey_sparrow/run.py create mode 100644 airbyte-integrations/connectors/source-surveycto/source_surveycto/run.py create mode 100644 airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/run.py create mode 100644 airbyte-integrations/connectors/source-talkdesk-explore/source_talkdesk_explore/run.py create mode 100644 airbyte-integrations/connectors/source-tempo/source_tempo/run.py create mode 100644 airbyte-integrations/connectors/source-the-guardian-api/source_the_guardian_api/run.py create mode 100644 airbyte-integrations/connectors/source-tiktok-marketing/source_tiktok_marketing/run.py create mode 100644 airbyte-integrations/connectors/source-timely/source_timely/run.py create mode 100644 airbyte-integrations/connectors/source-tmdb/source_tmdb/run.py create mode 100644 airbyte-integrations/connectors/source-todoist/source_todoist/run.py create mode 100644 airbyte-integrations/connectors/source-toggl/source_toggl/run.py create mode 100644 airbyte-integrations/connectors/source-tplcentral/source_tplcentral/run.py create mode 100644 airbyte-integrations/connectors/source-trello/source_trello/run.py create mode 100644 airbyte-integrations/connectors/source-trustpilot/source_trustpilot/run.py create mode 100644 airbyte-integrations/connectors/source-tvmaze-schedule/source_tvmaze_schedule/run.py create mode 100644 airbyte-integrations/connectors/source-twilio-taskrouter/source_twilio_taskrouter/run.py create mode 100644 airbyte-integrations/connectors/source-twilio/source_twilio/run.py create mode 100644 airbyte-integrations/connectors/source-twitter/source_twitter/run.py create mode 100644 airbyte-integrations/connectors/source-tyntec-sms/source_tyntec_sms/run.py create mode 100644 airbyte-integrations/connectors/source-unleash/source_unleash/run.py create mode 100644 airbyte-integrations/connectors/source-us-census/source_us_census/run.py create mode 100644 airbyte-integrations/connectors/source-vantage/source_vantage/run.py create mode 100644 airbyte-integrations/connectors/source-visma-economic/source_visma_economic/run.py create mode 100644 airbyte-integrations/connectors/source-vitally/source_vitally/run.py create mode 100644 airbyte-integrations/connectors/source-waiteraid/source_waiteraid/run.py create mode 100644 airbyte-integrations/connectors/source-weatherstack/source_weatherstack/run.py create mode 100644 airbyte-integrations/connectors/source-webflow/source_webflow/run.py create mode 100644 airbyte-integrations/connectors/source-whisky-hunter/source_whisky_hunter/run.py create mode 100755 airbyte-integrations/connectors/source-wikipedia-pageviews/source_wikipedia_pageviews/run.py create mode 100644 airbyte-integrations/connectors/source-woocommerce/source_woocommerce/run.py create mode 100644 airbyte-integrations/connectors/source-workable/source_workable/run.py create mode 100644 airbyte-integrations/connectors/source-workramp/source_workramp/run.py create mode 100644 airbyte-integrations/connectors/source-wrike/source_wrike/run.py create mode 100644 airbyte-integrations/connectors/source-xkcd/source_xkcd/run.py create mode 100644 airbyte-integrations/connectors/source-yahoo-finance-price/source_yahoo_finance_price/run.py create mode 100644 airbyte-integrations/connectors/source-yandex-metrica/source_yandex_metrica/run.py create mode 100644 airbyte-integrations/connectors/source-yotpo/source_yotpo/run.py create mode 100644 airbyte-integrations/connectors/source-younium/source_younium/run.py create mode 100644 airbyte-integrations/connectors/source-youtube-analytics/source_youtube_analytics/run.py create mode 100644 airbyte-integrations/connectors/source-zapier-supported-storage/source_zapier_supported_storage/run.py create mode 100644 airbyte-integrations/connectors/source-zendesk-sell/source_zendesk_sell/run.py create mode 100644 airbyte-integrations/connectors/source-zendesk-sunshine/source_zendesk_sunshine/run.py create mode 100644 airbyte-integrations/connectors/source-zenefits/source_zenefits/run.py create mode 100644 airbyte-integrations/connectors/source-zenloop/source_zenloop/run.py create mode 100644 airbyte-integrations/connectors/source-zoho-crm/source_zoho_crm/run.py create mode 100644 airbyte-integrations/connectors/source-zoom/source_zoom/run.py create mode 100644 airbyte-integrations/connectors/source-zuora/source_zuora/run.py diff --git a/airbyte-integrations/connectors/source-activecampaign/main.py b/airbyte-integrations/connectors/source-activecampaign/main.py index 289325e3c27e..52ba47917495 100644 --- a/airbyte-integrations/connectors/source-activecampaign/main.py +++ b/airbyte-integrations/connectors/source-activecampaign/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_activecampaign import SourceActivecampaign +from source_activecampaign.run import run if __name__ == "__main__": - source = SourceActivecampaign() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-activecampaign/setup.py b/airbyte-integrations/connectors/source-activecampaign/setup.py index d539a3c2757c..3c64964fcef1 100644 --- a/airbyte-integrations/connectors/source-activecampaign/setup.py +++ b/airbyte-integrations/connectors/source-activecampaign/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-activecampaign=source_activecampaign.run:run", + ], + }, name="source_activecampaign", description="Source implementation for Activecampaign.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-activecampaign/source_activecampaign/run.py b/airbyte-integrations/connectors/source-activecampaign/source_activecampaign/run.py new file mode 100644 index 000000000000..adc9dbcc7e05 --- /dev/null +++ b/airbyte-integrations/connectors/source-activecampaign/source_activecampaign/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_activecampaign import SourceActivecampaign + + +def run(): + source = SourceActivecampaign() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-adjust/main.py b/airbyte-integrations/connectors/source-adjust/main.py index 1639515b23ae..06eebde5d55c 100644 --- a/airbyte-integrations/connectors/source-adjust/main.py +++ b/airbyte-integrations/connectors/source-adjust/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_adjust import SourceAdjust +from source_adjust.run import run if __name__ == "__main__": - source = SourceAdjust() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-adjust/setup.py b/airbyte-integrations/connectors/source-adjust/setup.py index 99691631d22c..7195646cdfce 100644 --- a/airbyte-integrations/connectors/source-adjust/setup.py +++ b/airbyte-integrations/connectors/source-adjust/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-adjust=source_adjust.run:run", + ], + }, name="source_adjust", description="Source implementation for Adjust.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-adjust/source_adjust/run.py b/airbyte-integrations/connectors/source-adjust/source_adjust/run.py new file mode 100644 index 000000000000..db3689a7552d --- /dev/null +++ b/airbyte-integrations/connectors/source-adjust/source_adjust/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_adjust import SourceAdjust + + +def run(): + source = SourceAdjust() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-aha/main.py b/airbyte-integrations/connectors/source-aha/main.py index 79ed7a087f63..b07aafa3db46 100644 --- a/airbyte-integrations/connectors/source-aha/main.py +++ b/airbyte-integrations/connectors/source-aha/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_aha import SourceAha +from source_aha.run import run if __name__ == "__main__": - source = SourceAha() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-aha/setup.py b/airbyte-integrations/connectors/source-aha/setup.py index 30789cbe1a0a..bbcedc901f75 100644 --- a/airbyte-integrations/connectors/source-aha/setup.py +++ b/airbyte-integrations/connectors/source-aha/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-aha=source_aha.run:run", + ], + }, name="source_aha", description="Source implementation for Aha.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-aha/source_aha/run.py b/airbyte-integrations/connectors/source-aha/source_aha/run.py new file mode 100644 index 000000000000..7a67cc7e710c --- /dev/null +++ b/airbyte-integrations/connectors/source-aha/source_aha/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_aha import SourceAha + + +def run(): + source = SourceAha() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-aircall/main.py b/airbyte-integrations/connectors/source-aircall/main.py index ff8cceaf862c..3a1a1acff9b2 100644 --- a/airbyte-integrations/connectors/source-aircall/main.py +++ b/airbyte-integrations/connectors/source-aircall/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_aircall import SourceAircall +from source_aircall.run import run if __name__ == "__main__": - source = SourceAircall() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-aircall/setup.py b/airbyte-integrations/connectors/source-aircall/setup.py index 25b830a1e3cc..8453ded69fca 100644 --- a/airbyte-integrations/connectors/source-aircall/setup.py +++ b/airbyte-integrations/connectors/source-aircall/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-aircall=source_aircall.run:run", + ], + }, name="source_aircall", description="Source implementation for Aircall.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-aircall/source_aircall/run.py b/airbyte-integrations/connectors/source-aircall/source_aircall/run.py new file mode 100644 index 000000000000..b6d0e6bb463c --- /dev/null +++ b/airbyte-integrations/connectors/source-aircall/source_aircall/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_aircall import SourceAircall + + +def run(): + source = SourceAircall() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-airtable/main.py b/airbyte-integrations/connectors/source-airtable/main.py index 61aedaa8b88d..170d6caf75b1 100644 --- a/airbyte-integrations/connectors/source-airtable/main.py +++ b/airbyte-integrations/connectors/source-airtable/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_airtable import SourceAirtable +from source_airtable.run import run if __name__ == "__main__": - source = SourceAirtable() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-airtable/setup.py b/airbyte-integrations/connectors/source-airtable/setup.py index 2c294e0b0dfb..9cae02970539 100644 --- a/airbyte-integrations/connectors/source-airtable/setup.py +++ b/airbyte-integrations/connectors/source-airtable/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-airtable=source_airtable.run:run", + ], + }, name="source_airtable", description="Source implementation for Airtable.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-airtable/source_airtable/run.py b/airbyte-integrations/connectors/source-airtable/source_airtable/run.py new file mode 100644 index 000000000000..e993fd6eaa7d --- /dev/null +++ b/airbyte-integrations/connectors/source-airtable/source_airtable/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_airtable import SourceAirtable + + +def run(): + source = SourceAirtable() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-alpha-vantage/main.py b/airbyte-integrations/connectors/source-alpha-vantage/main.py index 422447d19ea6..dcccfe7a535c 100644 --- a/airbyte-integrations/connectors/source-alpha-vantage/main.py +++ b/airbyte-integrations/connectors/source-alpha-vantage/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_alpha_vantage import SourceAlphaVantage +from source_alpha_vantage.run import run if __name__ == "__main__": - source = SourceAlphaVantage() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-alpha-vantage/setup.py b/airbyte-integrations/connectors/source-alpha-vantage/setup.py index bf4ebe78c025..22bb9790ab51 100644 --- a/airbyte-integrations/connectors/source-alpha-vantage/setup.py +++ b/airbyte-integrations/connectors/source-alpha-vantage/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-alpha-vantage=source_alpha_vantage.run:run", + ], + }, name="source_alpha_vantage", description="Source implementation for Alpha Vantage.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-alpha-vantage/source_alpha_vantage/run.py b/airbyte-integrations/connectors/source-alpha-vantage/source_alpha_vantage/run.py new file mode 100644 index 000000000000..fe5a71ac01fb --- /dev/null +++ b/airbyte-integrations/connectors/source-alpha-vantage/source_alpha_vantage/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_alpha_vantage import SourceAlphaVantage + + +def run(): + source = SourceAlphaVantage() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-amazon-ads/main.py b/airbyte-integrations/connectors/source-amazon-ads/main.py index 1c292d29e4ca..30a0b6957860 100644 --- a/airbyte-integrations/connectors/source-amazon-ads/main.py +++ b/airbyte-integrations/connectors/source-amazon-ads/main.py @@ -2,14 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_amazon_ads import SourceAmazonAds -from source_amazon_ads.config_migrations import MigrateStartDate +from source_amazon_ads.run import run if __name__ == "__main__": - source = SourceAmazonAds() - MigrateStartDate.migrate(sys.argv[1:], source) - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-amazon-ads/setup.py b/airbyte-integrations/connectors/source-amazon-ads/setup.py index 7d612fffeaaa..18026e193950 100644 --- a/airbyte-integrations/connectors/source-amazon-ads/setup.py +++ b/airbyte-integrations/connectors/source-amazon-ads/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-amazon-ads=source_amazon_ads.run:run", + ], + }, name="source_amazon_ads", description="Source implementation for Amazon Ads.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-amazon-ads/source_amazon_ads/run.py b/airbyte-integrations/connectors/source-amazon-ads/source_amazon_ads/run.py new file mode 100644 index 000000000000..a8012240de66 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-ads/source_amazon_ads/run.py @@ -0,0 +1,16 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_amazon_ads import SourceAmazonAds +from source_amazon_ads.config_migrations import MigrateStartDate + + +def run(): + source = SourceAmazonAds() + MigrateStartDate.migrate(sys.argv[1:], source) + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/main.py b/airbyte-integrations/connectors/source-amazon-seller-partner/main.py index d53252191baf..ee7f33aa3ce5 100644 --- a/airbyte-integrations/connectors/source-amazon-seller-partner/main.py +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/main.py @@ -2,15 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_amazon_seller_partner import SourceAmazonSellerPartner -from source_amazon_seller_partner.config_migrations import MigrateAccountType, MigrateReportOptions +from source_amazon_seller_partner.run import run if __name__ == "__main__": - source = SourceAmazonSellerPartner() - MigrateAccountType.migrate(sys.argv[1:], source) - MigrateReportOptions.migrate(sys.argv[1:], source) - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/setup.py b/airbyte-integrations/connectors/source-amazon-seller-partner/setup.py index 8a171d3ee035..2b9f48ca5e81 100644 --- a/airbyte-integrations/connectors/source-amazon-seller-partner/setup.py +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/setup.py @@ -10,6 +10,11 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.1", "pytest-mock"] setup( + entry_points={ + "console_scripts": [ + "source-amazon-seller-partner=source_amazon_seller_partner.run:run", + ], + }, name="source_amazon_seller_partner", description="Source implementation for Amazon Seller Partner.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/run.py b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/run.py new file mode 100644 index 000000000000..538cf70c8afc --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/run.py @@ -0,0 +1,17 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_amazon_seller_partner import SourceAmazonSellerPartner +from source_amazon_seller_partner.config_migrations import MigrateAccountType, MigrateReportOptions + + +def run(): + source = SourceAmazonSellerPartner() + MigrateAccountType.migrate(sys.argv[1:], source) + MigrateReportOptions.migrate(sys.argv[1:], source) + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-amazon-sqs/main.py b/airbyte-integrations/connectors/source-amazon-sqs/main.py index bbf86753b1de..3e218a144f8f 100644 --- a/airbyte-integrations/connectors/source-amazon-sqs/main.py +++ b/airbyte-integrations/connectors/source-amazon-sqs/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_amazon_sqs import SourceAmazonSqs +from source_amazon_sqs.run import run if __name__ == "__main__": - source = SourceAmazonSqs() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-amazon-sqs/setup.py b/airbyte-integrations/connectors/source-amazon-sqs/setup.py index 3ca84d0f1041..12414e180650 100644 --- a/airbyte-integrations/connectors/source-amazon-sqs/setup.py +++ b/airbyte-integrations/connectors/source-amazon-sqs/setup.py @@ -10,6 +10,11 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest-mock~=3.6.1", "pytest~=6.1", "moto[sqs, iam]"] setup( + entry_points={ + "console_scripts": [ + "source-amazon-sqs=source_amazon_sqs.run:run", + ], + }, name="source_amazon_sqs", description="Source implementation for Amazon Sqs.", author="Alasdair Brown", diff --git a/airbyte-integrations/connectors/source-amazon-sqs/source_amazon_sqs/run.py b/airbyte-integrations/connectors/source-amazon-sqs/source_amazon_sqs/run.py new file mode 100644 index 000000000000..428858388b63 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-sqs/source_amazon_sqs/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_amazon_sqs import SourceAmazonSqs + + +def run(): + source = SourceAmazonSqs() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-amplitude/main.py b/airbyte-integrations/connectors/source-amplitude/main.py index 7bf14f9904f8..14500e9c73e6 100644 --- a/airbyte-integrations/connectors/source-amplitude/main.py +++ b/airbyte-integrations/connectors/source-amplitude/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_amplitude import SourceAmplitude +from source_amplitude.run import run if __name__ == "__main__": - source = SourceAmplitude() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-amplitude/setup.py b/airbyte-integrations/connectors/source-amplitude/setup.py index 29cccb75e13f..2f3809b7ffe9 100644 --- a/airbyte-integrations/connectors/source-amplitude/setup.py +++ b/airbyte-integrations/connectors/source-amplitude/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-amplitude=source_amplitude.run:run", + ], + }, name="source_amplitude", description="Source implementation for Amplitude.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-amplitude/source_amplitude/run.py b/airbyte-integrations/connectors/source-amplitude/source_amplitude/run.py new file mode 100644 index 000000000000..3649e5d9b311 --- /dev/null +++ b/airbyte-integrations/connectors/source-amplitude/source_amplitude/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_amplitude import SourceAmplitude + + +def run(): + source = SourceAmplitude() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-apify-dataset/setup.py b/airbyte-integrations/connectors/source-apify-dataset/setup.py index eb3a7db40ab2..994bf4b0f951 100644 --- a/airbyte-integrations/connectors/source-apify-dataset/setup.py +++ b/airbyte-integrations/connectors/source-apify-dataset/setup.py @@ -16,7 +16,19 @@ author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-appfollow/main.py b/airbyte-integrations/connectors/source-appfollow/main.py index a4cd4bd63690..79dea68512c5 100644 --- a/airbyte-integrations/connectors/source-appfollow/main.py +++ b/airbyte-integrations/connectors/source-appfollow/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_appfollow import SourceAppfollow +from source_appfollow.run import run if __name__ == "__main__": - source = SourceAppfollow() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-appfollow/setup.py b/airbyte-integrations/connectors/source-appfollow/setup.py index c808dd5682e9..73e20b4ae8b1 100644 --- a/airbyte-integrations/connectors/source-appfollow/setup.py +++ b/airbyte-integrations/connectors/source-appfollow/setup.py @@ -12,13 +12,30 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.1", "pytest-mock~=3.6.1", "requests_mock~=1.9"] setup( + entry_points={ + "console_scripts": [ + "source-appfollow=source_appfollow.run:run", + ], + }, name="source_appfollow", description="Source implementation for Appfollow.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-appfollow/source_appfollow/run.py b/airbyte-integrations/connectors/source-appfollow/source_appfollow/run.py new file mode 100644 index 000000000000..019ce80f3ba5 --- /dev/null +++ b/airbyte-integrations/connectors/source-appfollow/source_appfollow/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_appfollow import SourceAppfollow + + +def run(): + source = SourceAppfollow() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-apple-search-ads/main.py b/airbyte-integrations/connectors/source-apple-search-ads/main.py index 8998f6bd4388..df8b0f70775c 100644 --- a/airbyte-integrations/connectors/source-apple-search-ads/main.py +++ b/airbyte-integrations/connectors/source-apple-search-ads/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_apple_search_ads import SourceAppleSearchAds +from source_apple_search_ads.run import run if __name__ == "__main__": - source = SourceAppleSearchAds() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-apple-search-ads/setup.py b/airbyte-integrations/connectors/source-apple-search-ads/setup.py index a66de217e0fd..c70cfcb0168b 100644 --- a/airbyte-integrations/connectors/source-apple-search-ads/setup.py +++ b/airbyte-integrations/connectors/source-apple-search-ads/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-apple-search-ads=source_apple_search_ads.run:run", + ], + }, name="source_apple_search_ads", description="Source implementation for Apple Search Ads.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-apple-search-ads/source_apple_search_ads/run.py b/airbyte-integrations/connectors/source-apple-search-ads/source_apple_search_ads/run.py new file mode 100644 index 000000000000..dc2def6147ad --- /dev/null +++ b/airbyte-integrations/connectors/source-apple-search-ads/source_apple_search_ads/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_apple_search_ads import SourceAppleSearchAds + + +def run(): + source = SourceAppleSearchAds() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-appsflyer/main.py b/airbyte-integrations/connectors/source-appsflyer/main.py index 1dee48f3f0ab..ebf2655b2ec4 100644 --- a/airbyte-integrations/connectors/source-appsflyer/main.py +++ b/airbyte-integrations/connectors/source-appsflyer/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_appsflyer import SourceAppsflyer +from source_appsflyer.run import run if __name__ == "__main__": - source = SourceAppsflyer() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-appsflyer/setup.py b/airbyte-integrations/connectors/source-appsflyer/setup.py index ac74ebcabfc9..cabee5977060 100644 --- a/airbyte-integrations/connectors/source-appsflyer/setup.py +++ b/airbyte-integrations/connectors/source-appsflyer/setup.py @@ -14,6 +14,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-appsflyer=source_appsflyer.run:run", + ], + }, name="source_appsflyer", description="Source implementation for Appsflyer.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/run.py b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/run.py new file mode 100644 index 000000000000..40c1e2feb038 --- /dev/null +++ b/airbyte-integrations/connectors/source-appsflyer/source_appsflyer/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_appsflyer import SourceAppsflyer + + +def run(): + source = SourceAppsflyer() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-appstore-singer/main.py b/airbyte-integrations/connectors/source-appstore-singer/main.py index 5e0f99d007be..34e585afeeed 100644 --- a/airbyte-integrations/connectors/source-appstore-singer/main.py +++ b/airbyte-integrations/connectors/source-appstore-singer/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_appstore_singer import SourceAppstoreSinger +from source_appstore_singer.run import run if __name__ == "__main__": - source = SourceAppstoreSinger() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-appstore-singer/setup.py b/airbyte-integrations/connectors/source-appstore-singer/setup.py index b6ecccc99a03..d85ef5d07f43 100644 --- a/airbyte-integrations/connectors/source-appstore-singer/setup.py +++ b/airbyte-integrations/connectors/source-appstore-singer/setup.py @@ -19,6 +19,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-appstore-singer=source_appstore_singer.run:run", + ], + }, name="source_appstore_singer", description="Source implementation for Appstore, built on the Singer tap implementation.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-appstore-singer/source_appstore_singer/run.py b/airbyte-integrations/connectors/source-appstore-singer/source_appstore_singer/run.py new file mode 100644 index 000000000000..ef9f845e8d81 --- /dev/null +++ b/airbyte-integrations/connectors/source-appstore-singer/source_appstore_singer/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_appstore_singer import SourceAppstoreSinger + + +def run(): + source = SourceAppstoreSinger() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-asana/main.py b/airbyte-integrations/connectors/source-asana/main.py index ac64981a1e3e..5fde4e3c72d6 100644 --- a/airbyte-integrations/connectors/source-asana/main.py +++ b/airbyte-integrations/connectors/source-asana/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_asana import SourceAsana +from source_asana.run import run if __name__ == "__main__": - source = SourceAsana() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-asana/setup.py b/airbyte-integrations/connectors/source-asana/setup.py index dda6ee977db1..7d19a10aad8a 100644 --- a/airbyte-integrations/connectors/source-asana/setup.py +++ b/airbyte-integrations/connectors/source-asana/setup.py @@ -12,6 +12,11 @@ TEST_REQUIREMENTS = ["pytest-mock~=3.6.1", "pytest~=6.1", "requests-mock~=1.9.3"] setup( + entry_points={ + "console_scripts": [ + "source-asana=source_asana.run:run", + ], + }, name="source_asana", description="Source implementation for Asana.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-asana/source_asana/run.py b/airbyte-integrations/connectors/source-asana/source_asana/run.py new file mode 100644 index 000000000000..cf9dbf1ffa48 --- /dev/null +++ b/airbyte-integrations/connectors/source-asana/source_asana/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_asana import SourceAsana + + +def run(): + source = SourceAsana() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-ashby/main.py b/airbyte-integrations/connectors/source-ashby/main.py index a19039ecb615..96b5bfe556e3 100644 --- a/airbyte-integrations/connectors/source-ashby/main.py +++ b/airbyte-integrations/connectors/source-ashby/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_ashby import SourceAshby +from source_ashby.run import run if __name__ == "__main__": - source = SourceAshby() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-ashby/setup.py b/airbyte-integrations/connectors/source-ashby/setup.py index d4fd781c5f1e..d506c08b0965 100644 --- a/airbyte-integrations/connectors/source-ashby/setup.py +++ b/airbyte-integrations/connectors/source-ashby/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-ashby=source_ashby.run:run", + ], + }, name="source_ashby", description="Source implementation for Ashby.", author="Elliot Trabac", author_email="elliot.trabac1@gmail.com", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-ashby/source_ashby/run.py b/airbyte-integrations/connectors/source-ashby/source_ashby/run.py new file mode 100644 index 000000000000..2330c6f910b5 --- /dev/null +++ b/airbyte-integrations/connectors/source-ashby/source_ashby/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_ashby import SourceAshby + + +def run(): + source = SourceAshby() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-auth0/main.py b/airbyte-integrations/connectors/source-auth0/main.py index 3904766c4ec2..f29790fbabd7 100644 --- a/airbyte-integrations/connectors/source-auth0/main.py +++ b/airbyte-integrations/connectors/source-auth0/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_auth0 import SourceAuth0 +from source_auth0.run import run if __name__ == "__main__": - source = SourceAuth0() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-auth0/setup.py b/airbyte-integrations/connectors/source-auth0/setup.py index 29b448c8c0de..ed772442f1e0 100644 --- a/airbyte-integrations/connectors/source-auth0/setup.py +++ b/airbyte-integrations/connectors/source-auth0/setup.py @@ -15,13 +15,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-auth0=source_auth0.run:run", + ], + }, name="source_auth0", description="Source implementation for Auth0.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-auth0/source_auth0/run.py b/airbyte-integrations/connectors/source-auth0/source_auth0/run.py new file mode 100644 index 000000000000..bae97c9f5cb4 --- /dev/null +++ b/airbyte-integrations/connectors/source-auth0/source_auth0/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_auth0 import SourceAuth0 + + +def run(): + source = SourceAuth0() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-aws-cloudtrail/main.py b/airbyte-integrations/connectors/source-aws-cloudtrail/main.py index 7ae051b2be22..f2324dfe8812 100644 --- a/airbyte-integrations/connectors/source-aws-cloudtrail/main.py +++ b/airbyte-integrations/connectors/source-aws-cloudtrail/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_aws_cloudtrail import SourceAwsCloudtrail +from source_aws_cloudtrail.run import run if __name__ == "__main__": - source = SourceAwsCloudtrail() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-aws-cloudtrail/setup.py b/airbyte-integrations/connectors/source-aws-cloudtrail/setup.py index bda35b60aa1e..77d6bdf20486 100644 --- a/airbyte-integrations/connectors/source-aws-cloudtrail/setup.py +++ b/airbyte-integrations/connectors/source-aws-cloudtrail/setup.py @@ -14,6 +14,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-aws-cloudtrail=source_aws_cloudtrail.run:run", + ], + }, name="source_aws_cloudtrail", description="Source implementation for Aws Cloudtrail.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-aws-cloudtrail/source_aws_cloudtrail/run.py b/airbyte-integrations/connectors/source-aws-cloudtrail/source_aws_cloudtrail/run.py new file mode 100644 index 000000000000..576aae749bc2 --- /dev/null +++ b/airbyte-integrations/connectors/source-aws-cloudtrail/source_aws_cloudtrail/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_aws_cloudtrail import SourceAwsCloudtrail + + +def run(): + source = SourceAwsCloudtrail() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-azure-blob-storage/main.py b/airbyte-integrations/connectors/source-azure-blob-storage/main.py index b3361a6556d7..5e798013d9e4 100644 --- a/airbyte-integrations/connectors/source-azure-blob-storage/main.py +++ b/airbyte-integrations/connectors/source-azure-blob-storage/main.py @@ -2,32 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # -import sys -import traceback -from datetime import datetime - -from airbyte_cdk.entrypoint import AirbyteEntrypoint, launch -from airbyte_cdk.models import AirbyteErrorTraceMessage, AirbyteMessage, AirbyteTraceMessage, TraceType, Type -from source_azure_blob_storage import Config, SourceAzureBlobStorage, SourceAzureBlobStorageStreamReader +from source_azure_blob_storage.run import run if __name__ == "__main__": - args = sys.argv[1:] - catalog_path = AirbyteEntrypoint.extract_catalog(args) - try: - source = SourceAzureBlobStorage(SourceAzureBlobStorageStreamReader(), Config, catalog_path) - except Exception: - print( - AirbyteMessage( - type=Type.TRACE, - trace=AirbyteTraceMessage( - type=TraceType.ERROR, - emitted_at=int(datetime.now().timestamp() * 1000), - error=AirbyteErrorTraceMessage( - message="Error starting the sync. This could be due to an invalid configuration or catalog. Please contact Support for assistance.", - stack_trace=traceback.format_exc(), - ), - ), - ).json() - ) - else: - launch(source, args) + run() diff --git a/airbyte-integrations/connectors/source-azure-blob-storage/setup.py b/airbyte-integrations/connectors/source-azure-blob-storage/setup.py index 4246eb43364c..1dc7c4a275c4 100644 --- a/airbyte-integrations/connectors/source-azure-blob-storage/setup.py +++ b/airbyte-integrations/connectors/source-azure-blob-storage/setup.py @@ -14,6 +14,11 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest-mock~=3.6.1", "pytest~=6.2"] setup( + entry_points={ + "console_scripts": [ + "source-azure-blob-storage=source_azure_blob_storage.run:run", + ], + }, name="source_azure_blob_storage", description="Source implementation for Azure Blob Storage.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-azure-blob-storage/source_azure_blob_storage/run.py b/airbyte-integrations/connectors/source-azure-blob-storage/source_azure_blob_storage/run.py new file mode 100644 index 000000000000..404d919b60f3 --- /dev/null +++ b/airbyte-integrations/connectors/source-azure-blob-storage/source_azure_blob_storage/run.py @@ -0,0 +1,34 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + +import sys +import traceback +from datetime import datetime + +from airbyte_cdk.entrypoint import AirbyteEntrypoint, launch +from airbyte_cdk.models import AirbyteErrorTraceMessage, AirbyteMessage, AirbyteTraceMessage, TraceType, Type +from source_azure_blob_storage import Config, SourceAzureBlobStorage, SourceAzureBlobStorageStreamReader + + +def run(): + args = sys.argv[1:] + catalog_path = AirbyteEntrypoint.extract_catalog(args) + try: + source = SourceAzureBlobStorage(SourceAzureBlobStorageStreamReader(), Config, catalog_path) + except Exception: + print( + AirbyteMessage( + type=Type.TRACE, + trace=AirbyteTraceMessage( + type=TraceType.ERROR, + emitted_at=int(datetime.now().timestamp() * 1000), + error=AirbyteErrorTraceMessage( + message="Error starting the sync. This could be due to an invalid configuration or catalog. Please contact Support for assistance.", + stack_trace=traceback.format_exc(), + ), + ), + ).json() + ) + else: + launch(source, args) diff --git a/airbyte-integrations/connectors/source-azure-table/main.py b/airbyte-integrations/connectors/source-azure-table/main.py index ffdca7c26cef..0831f8065766 100644 --- a/airbyte-integrations/connectors/source-azure-table/main.py +++ b/airbyte-integrations/connectors/source-azure-table/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_azure_table import SourceAzureTable +from source_azure_table.run import run if __name__ == "__main__": - source = SourceAzureTable() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-azure-table/setup.py b/airbyte-integrations/connectors/source-azure-table/setup.py index a04c790cbb8f..31eceef9c80e 100644 --- a/airbyte-integrations/connectors/source-azure-table/setup.py +++ b/airbyte-integrations/connectors/source-azure-table/setup.py @@ -14,6 +14,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-azure-table=source_azure_table.run:run", + ], + }, name="source_azure_table", description="Source implementation for Azure Table.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-azure-table/source_azure_table/run.py b/airbyte-integrations/connectors/source-azure-table/source_azure_table/run.py new file mode 100644 index 000000000000..b39667cd684a --- /dev/null +++ b/airbyte-integrations/connectors/source-azure-table/source_azure_table/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_azure_table import SourceAzureTable + + +def run(): + source = SourceAzureTable() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-babelforce/main.py b/airbyte-integrations/connectors/source-babelforce/main.py index 33b4c6d35a82..da6273a1dca9 100644 --- a/airbyte-integrations/connectors/source-babelforce/main.py +++ b/airbyte-integrations/connectors/source-babelforce/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_babelforce import SourceBabelforce +from source_babelforce.run import run if __name__ == "__main__": - source = SourceBabelforce() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-babelforce/setup.py b/airbyte-integrations/connectors/source-babelforce/setup.py index 36286f264643..5033ec7b34e2 100644 --- a/airbyte-integrations/connectors/source-babelforce/setup.py +++ b/airbyte-integrations/connectors/source-babelforce/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-babelforce=source_babelforce.run:run", + ], + }, name="source_babelforce", description="Source implementation for Babelforce.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-babelforce/source_babelforce/run.py b/airbyte-integrations/connectors/source-babelforce/source_babelforce/run.py new file mode 100644 index 000000000000..056cf590f326 --- /dev/null +++ b/airbyte-integrations/connectors/source-babelforce/source_babelforce/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_babelforce import SourceBabelforce + + +def run(): + source = SourceBabelforce() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-bamboo-hr/main.py b/airbyte-integrations/connectors/source-bamboo-hr/main.py index 2ebc95cb1256..0118185a67fc 100644 --- a/airbyte-integrations/connectors/source-bamboo-hr/main.py +++ b/airbyte-integrations/connectors/source-bamboo-hr/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_bamboo_hr import SourceBambooHr +from source_bamboo_hr.run import run if __name__ == "__main__": - source = SourceBambooHr() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-bamboo-hr/setup.py b/airbyte-integrations/connectors/source-bamboo-hr/setup.py index a81279a9f2dd..52914c4c34d4 100644 --- a/airbyte-integrations/connectors/source-bamboo-hr/setup.py +++ b/airbyte-integrations/connectors/source-bamboo-hr/setup.py @@ -14,6 +14,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-bamboo-hr=source_bamboo_hr.run:run", + ], + }, name="source_bamboo_hr", description="Source implementation for Bamboo Hr.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-bamboo-hr/source_bamboo_hr/run.py b/airbyte-integrations/connectors/source-bamboo-hr/source_bamboo_hr/run.py new file mode 100644 index 000000000000..d9a04d56a964 --- /dev/null +++ b/airbyte-integrations/connectors/source-bamboo-hr/source_bamboo_hr/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_bamboo_hr import SourceBambooHr + + +def run(): + source = SourceBambooHr() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-bigcommerce/main.py b/airbyte-integrations/connectors/source-bigcommerce/main.py index 2d28000deab0..7830bf519a65 100644 --- a/airbyte-integrations/connectors/source-bigcommerce/main.py +++ b/airbyte-integrations/connectors/source-bigcommerce/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_bigcommerce import SourceBigcommerce +from source_bigcommerce.run import run if __name__ == "__main__": - source = SourceBigcommerce() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-bigcommerce/setup.py b/airbyte-integrations/connectors/source-bigcommerce/setup.py index 7189d313888f..43cc76692ad7 100644 --- a/airbyte-integrations/connectors/source-bigcommerce/setup.py +++ b/airbyte-integrations/connectors/source-bigcommerce/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-bigcommerce=source_bigcommerce.run:run", + ], + }, name="source_bigcommerce", description="Source implementation for Bigcommerce.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-bigcommerce/source_bigcommerce/run.py b/airbyte-integrations/connectors/source-bigcommerce/source_bigcommerce/run.py new file mode 100644 index 000000000000..7e5234a1b2b1 --- /dev/null +++ b/airbyte-integrations/connectors/source-bigcommerce/source_bigcommerce/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_bigcommerce import SourceBigcommerce + + +def run(): + source = SourceBigcommerce() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-bing-ads/main.py b/airbyte-integrations/connectors/source-bing-ads/main.py index 11548ad408a8..c05297b01ad8 100644 --- a/airbyte-integrations/connectors/source-bing-ads/main.py +++ b/airbyte-integrations/connectors/source-bing-ads/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_bing_ads import SourceBingAds +from source_bing_ads.run import run if __name__ == "__main__": - source = SourceBingAds() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-bing-ads/setup.py b/airbyte-integrations/connectors/source-bing-ads/setup.py index e586d0ea27ae..68f92f541a5f 100644 --- a/airbyte-integrations/connectors/source-bing-ads/setup.py +++ b/airbyte-integrations/connectors/source-bing-ads/setup.py @@ -15,6 +15,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-bing-ads=source_bing_ads.run:run", + ], + }, name="source_bing_ads", description="Source implementation for Bing Ads.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-bing-ads/source_bing_ads/run.py b/airbyte-integrations/connectors/source-bing-ads/source_bing_ads/run.py new file mode 100644 index 000000000000..3dd73c2fec5e --- /dev/null +++ b/airbyte-integrations/connectors/source-bing-ads/source_bing_ads/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_bing_ads import SourceBingAds + + +def run(): + source = SourceBingAds() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-braintree/main.py b/airbyte-integrations/connectors/source-braintree/main.py index 3b3c6039f9fe..d4ae7bec5223 100644 --- a/airbyte-integrations/connectors/source-braintree/main.py +++ b/airbyte-integrations/connectors/source-braintree/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_braintree import SourceBraintree +from source_braintree.run import run if __name__ == "__main__": - source = SourceBraintree() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-braintree/setup.py b/airbyte-integrations/connectors/source-braintree/setup.py index 0a6f5d53752e..cd584b74e699 100644 --- a/airbyte-integrations/connectors/source-braintree/setup.py +++ b/airbyte-integrations/connectors/source-braintree/setup.py @@ -13,13 +13,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-braintree=source_braintree.run:run", + ], + }, name="source_braintree_no_code", description="Source implementation for Braintree No Code.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-braintree/source_braintree/run.py b/airbyte-integrations/connectors/source-braintree/source_braintree/run.py new file mode 100644 index 000000000000..df776d3952c6 --- /dev/null +++ b/airbyte-integrations/connectors/source-braintree/source_braintree/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_braintree import SourceBraintree + + +def run(): + source = SourceBraintree() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-braze/main.py b/airbyte-integrations/connectors/source-braze/main.py index 15453641a7f0..723116b28098 100644 --- a/airbyte-integrations/connectors/source-braze/main.py +++ b/airbyte-integrations/connectors/source-braze/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_braze import SourceBraze +from source_braze.run import run if __name__ == "__main__": - source = SourceBraze() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-braze/setup.py b/airbyte-integrations/connectors/source-braze/setup.py index aade45358b41..43f778382f75 100644 --- a/airbyte-integrations/connectors/source-braze/setup.py +++ b/airbyte-integrations/connectors/source-braze/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-braze=source_braze.run:run", + ], + }, name="source_braze", description="Source implementation for Braze.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-braze/source_braze/run.py b/airbyte-integrations/connectors/source-braze/source_braze/run.py new file mode 100644 index 000000000000..645b7a31df24 --- /dev/null +++ b/airbyte-integrations/connectors/source-braze/source_braze/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_braze import SourceBraze + + +def run(): + source = SourceBraze() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-breezometer/main.py b/airbyte-integrations/connectors/source-breezometer/main.py index e14371ac83bb..3fc185eec93c 100644 --- a/airbyte-integrations/connectors/source-breezometer/main.py +++ b/airbyte-integrations/connectors/source-breezometer/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_breezometer import SourceBreezometer +from source_breezometer.run import run if __name__ == "__main__": - source = SourceBreezometer() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-breezometer/setup.py b/airbyte-integrations/connectors/source-breezometer/setup.py index 61bd2c525610..fc9d1e85cd20 100644 --- a/airbyte-integrations/connectors/source-breezometer/setup.py +++ b/airbyte-integrations/connectors/source-breezometer/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-breezometer=source_breezometer.run:run", + ], + }, name="source_breezometer", description="Source implementation for Breezometer.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-breezometer/source_breezometer/run.py b/airbyte-integrations/connectors/source-breezometer/source_breezometer/run.py new file mode 100644 index 000000000000..6855613e5586 --- /dev/null +++ b/airbyte-integrations/connectors/source-breezometer/source_breezometer/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_breezometer import SourceBreezometer + + +def run(): + source = SourceBreezometer() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-callrail/main.py b/airbyte-integrations/connectors/source-callrail/main.py index cb3607679473..d5651af4f615 100644 --- a/airbyte-integrations/connectors/source-callrail/main.py +++ b/airbyte-integrations/connectors/source-callrail/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_callrail import SourceCallrail +from source_callrail.run import run if __name__ == "__main__": - source = SourceCallrail() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-callrail/setup.py b/airbyte-integrations/connectors/source-callrail/setup.py index c744bbc957ff..e6d0d00d5d46 100644 --- a/airbyte-integrations/connectors/source-callrail/setup.py +++ b/airbyte-integrations/connectors/source-callrail/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-callrail=source_callrail.run:run", + ], + }, name="source_callrail", description="Source implementation for Callrail.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-callrail/source_callrail/run.py b/airbyte-integrations/connectors/source-callrail/source_callrail/run.py new file mode 100644 index 000000000000..d271cf7a502b --- /dev/null +++ b/airbyte-integrations/connectors/source-callrail/source_callrail/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_callrail import SourceCallrail + + +def run(): + source = SourceCallrail() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-captain-data/main.py b/airbyte-integrations/connectors/source-captain-data/main.py index 765d967fad15..50a0dfd7944d 100644 --- a/airbyte-integrations/connectors/source-captain-data/main.py +++ b/airbyte-integrations/connectors/source-captain-data/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_captain_data import SourceCaptainData +from source_captain_data.run import run if __name__ == "__main__": - source = SourceCaptainData() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-captain-data/setup.py b/airbyte-integrations/connectors/source-captain-data/setup.py index f6121791ddd8..cf4b2f7f5fc7 100644 --- a/airbyte-integrations/connectors/source-captain-data/setup.py +++ b/airbyte-integrations/connectors/source-captain-data/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-captain-data=source_captain_data.run:run", + ], + }, name="source_captain_data", description="Source implementation for Captain Data.", author="Elliot Trabac", author_email="elliot.trabac1@gmail.com", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-captain-data/source_captain_data/run.py b/airbyte-integrations/connectors/source-captain-data/source_captain_data/run.py new file mode 100644 index 000000000000..5b25fd1be5a4 --- /dev/null +++ b/airbyte-integrations/connectors/source-captain-data/source_captain_data/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_captain_data import SourceCaptainData + + +def run(): + source = SourceCaptainData() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-cart/main.py b/airbyte-integrations/connectors/source-cart/main.py index b294ae4e2c15..c7f69c914848 100644 --- a/airbyte-integrations/connectors/source-cart/main.py +++ b/airbyte-integrations/connectors/source-cart/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_cart import SourceCart +from source_cart.run import run if __name__ == "__main__": - source = SourceCart() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-cart/setup.py b/airbyte-integrations/connectors/source-cart/setup.py index 69df33c757d3..fe389ea16d47 100644 --- a/airbyte-integrations/connectors/source-cart/setup.py +++ b/airbyte-integrations/connectors/source-cart/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-cart=source_cart.run:run", + ], + }, name="source_cart", description="Source implementation for Cart.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-cart/source_cart/run.py b/airbyte-integrations/connectors/source-cart/source_cart/run.py new file mode 100644 index 000000000000..7f639ab6c694 --- /dev/null +++ b/airbyte-integrations/connectors/source-cart/source_cart/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_cart import SourceCart + + +def run(): + source = SourceCart() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-chargebee/main.py b/airbyte-integrations/connectors/source-chargebee/main.py index 946cf215df2d..351ea1590b35 100644 --- a/airbyte-integrations/connectors/source-chargebee/main.py +++ b/airbyte-integrations/connectors/source-chargebee/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_chargebee import SourceChargebee +from source_chargebee.run import run if __name__ == "__main__": - source = SourceChargebee() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-chargebee/setup.py b/airbyte-integrations/connectors/source-chargebee/setup.py index 5c3b625e0b4c..f201051e3f11 100644 --- a/airbyte-integrations/connectors/source-chargebee/setup.py +++ b/airbyte-integrations/connectors/source-chargebee/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-chargebee=source_chargebee.run:run", + ], + }, name="source_chargebee", description="Source implementation for Chargebee.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/run.py b/airbyte-integrations/connectors/source-chargebee/source_chargebee/run.py new file mode 100644 index 000000000000..5c0b427da197 --- /dev/null +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_chargebee import SourceChargebee + + +def run(): + source = SourceChargebee() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-chargify/main.py b/airbyte-integrations/connectors/source-chargify/main.py index 1a4568ff615b..44e0f1156271 100644 --- a/airbyte-integrations/connectors/source-chargify/main.py +++ b/airbyte-integrations/connectors/source-chargify/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_chargify import SourceChargify +from source_chargify.run import run if __name__ == "__main__": - source = SourceChargify() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-chargify/setup.py b/airbyte-integrations/connectors/source-chargify/setup.py index 521c61646023..deda5abcc0b0 100644 --- a/airbyte-integrations/connectors/source-chargify/setup.py +++ b/airbyte-integrations/connectors/source-chargify/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-chargify=source_chargify.run:run", + ], + }, name="source_chargify", description="Source implementation for Chargify.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-chargify/source_chargify/run.py b/airbyte-integrations/connectors/source-chargify/source_chargify/run.py new file mode 100644 index 000000000000..88f4450c9bcf --- /dev/null +++ b/airbyte-integrations/connectors/source-chargify/source_chargify/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_chargify import SourceChargify + + +def run(): + source = SourceChargify() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-chartmogul/main.py b/airbyte-integrations/connectors/source-chartmogul/main.py index 5dc03e8a74a9..bf13dab9878d 100644 --- a/airbyte-integrations/connectors/source-chartmogul/main.py +++ b/airbyte-integrations/connectors/source-chartmogul/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_chartmogul import SourceChartmogul +from source_chartmogul.run import run if __name__ == "__main__": - source = SourceChartmogul() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-chartmogul/setup.py b/airbyte-integrations/connectors/source-chartmogul/setup.py index fa0d73f436c9..57b6c73fbac8 100644 --- a/airbyte-integrations/connectors/source-chartmogul/setup.py +++ b/airbyte-integrations/connectors/source-chartmogul/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-chartmogul=source_chartmogul.run:run", + ], + }, name="source_chartmogul", description="Source implementation for Chartmogul.", author="Titas Skrebe", diff --git a/airbyte-integrations/connectors/source-chartmogul/source_chartmogul/run.py b/airbyte-integrations/connectors/source-chartmogul/source_chartmogul/run.py new file mode 100644 index 000000000000..f8e5bbd30e63 --- /dev/null +++ b/airbyte-integrations/connectors/source-chartmogul/source_chartmogul/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_chartmogul import SourceChartmogul + + +def run(): + source = SourceChartmogul() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-clickup-api/main.py b/airbyte-integrations/connectors/source-clickup-api/main.py index 01d656f16c43..76c09b38846f 100644 --- a/airbyte-integrations/connectors/source-clickup-api/main.py +++ b/airbyte-integrations/connectors/source-clickup-api/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_clickup_api import SourceClickupApi +from source_clickup_api.run import run if __name__ == "__main__": - source = SourceClickupApi() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-clickup-api/setup.py b/airbyte-integrations/connectors/source-clickup-api/setup.py index 4fb2367a7516..b23f4ed53a1a 100644 --- a/airbyte-integrations/connectors/source-clickup-api/setup.py +++ b/airbyte-integrations/connectors/source-clickup-api/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-clickup-api=source_clickup_api.run:run", + ], + }, name="source_clickup_api", description="Source implementation for Clickup Api.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-clickup-api/source_clickup_api/run.py b/airbyte-integrations/connectors/source-clickup-api/source_clickup_api/run.py new file mode 100644 index 000000000000..3767b66395e9 --- /dev/null +++ b/airbyte-integrations/connectors/source-clickup-api/source_clickup_api/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_clickup_api import SourceClickupApi + + +def run(): + source = SourceClickupApi() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-clockify/main.py b/airbyte-integrations/connectors/source-clockify/main.py index 9f04d4eb176c..486525f0e293 100644 --- a/airbyte-integrations/connectors/source-clockify/main.py +++ b/airbyte-integrations/connectors/source-clockify/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_clockify import SourceClockify +from source_clockify.run import run if __name__ == "__main__": - source = SourceClockify() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-clockify/setup.py b/airbyte-integrations/connectors/source-clockify/setup.py index bcd38b28c29a..940c87ba74b4 100644 --- a/airbyte-integrations/connectors/source-clockify/setup.py +++ b/airbyte-integrations/connectors/source-clockify/setup.py @@ -17,13 +17,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-clockify=source_clockify.run:run", + ], + }, name="source_clockify", description="Source implementation for Clockify.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-clockify/source_clockify/run.py b/airbyte-integrations/connectors/source-clockify/source_clockify/run.py new file mode 100644 index 000000000000..ef88995f79dd --- /dev/null +++ b/airbyte-integrations/connectors/source-clockify/source_clockify/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_clockify import SourceClockify + + +def run(): + source = SourceClockify() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-close-com/main.py b/airbyte-integrations/connectors/source-close-com/main.py index 22787dfbd89e..f80e76315939 100644 --- a/airbyte-integrations/connectors/source-close-com/main.py +++ b/airbyte-integrations/connectors/source-close-com/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_close_com import SourceCloseCom +from source_close_com.run import run if __name__ == "__main__": - source = SourceCloseCom() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-close-com/setup.py b/airbyte-integrations/connectors/source-close-com/setup.py index b9d9aaf53e7d..a67ed8241bb0 100644 --- a/airbyte-integrations/connectors/source-close-com/setup.py +++ b/airbyte-integrations/connectors/source-close-com/setup.py @@ -14,6 +14,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-close-com=source_close_com.run:run", + ], + }, name="source_close_com", description="Source implementation for Close.com.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-close-com/source_close_com/run.py b/airbyte-integrations/connectors/source-close-com/source_close_com/run.py new file mode 100644 index 000000000000..eb80c6eab53e --- /dev/null +++ b/airbyte-integrations/connectors/source-close-com/source_close_com/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_close_com import SourceCloseCom + + +def run(): + source = SourceCloseCom() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-coda/main.py b/airbyte-integrations/connectors/source-coda/main.py index aae501071c7d..dbc36f9d6886 100644 --- a/airbyte-integrations/connectors/source-coda/main.py +++ b/airbyte-integrations/connectors/source-coda/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_coda import SourceCoda +from source_coda.run import run if __name__ == "__main__": - source = SourceCoda() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-coda/setup.py b/airbyte-integrations/connectors/source-coda/setup.py index 446b5807dcec..92e0b6526fe7 100644 --- a/airbyte-integrations/connectors/source-coda/setup.py +++ b/airbyte-integrations/connectors/source-coda/setup.py @@ -15,13 +15,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-coda=source_coda.run:run", + ], + }, name="source_coda", description="Source implementation for Coda.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-coda/source_coda/run.py b/airbyte-integrations/connectors/source-coda/source_coda/run.py new file mode 100644 index 000000000000..0a1547db7b47 --- /dev/null +++ b/airbyte-integrations/connectors/source-coda/source_coda/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_coda import SourceCoda + + +def run(): + source = SourceCoda() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-coin-api/main.py b/airbyte-integrations/connectors/source-coin-api/main.py index 44b7d1ff5d1a..0a62eaad6b92 100644 --- a/airbyte-integrations/connectors/source-coin-api/main.py +++ b/airbyte-integrations/connectors/source-coin-api/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_coin_api import SourceCoinApi +from source_coin_api.run import run if __name__ == "__main__": - source = SourceCoinApi() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-coin-api/setup.py b/airbyte-integrations/connectors/source-coin-api/setup.py index b4c098be7797..904de0b88661 100644 --- a/airbyte-integrations/connectors/source-coin-api/setup.py +++ b/airbyte-integrations/connectors/source-coin-api/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-coin-api=source_coin_api.run:run", + ], + }, name="source_coin_api", description="Source implementation for Coin Api.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-coin-api/source_coin_api/run.py b/airbyte-integrations/connectors/source-coin-api/source_coin_api/run.py new file mode 100644 index 000000000000..d0d729797ece --- /dev/null +++ b/airbyte-integrations/connectors/source-coin-api/source_coin_api/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_coin_api import SourceCoinApi + + +def run(): + source = SourceCoinApi() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-coingecko-coins/main.py b/airbyte-integrations/connectors/source-coingecko-coins/main.py index 6ab339e39a73..0317d9bbf40b 100644 --- a/airbyte-integrations/connectors/source-coingecko-coins/main.py +++ b/airbyte-integrations/connectors/source-coingecko-coins/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_coingecko_coins import SourceCoingeckoCoins +from source_coingecko_coins.run import run if __name__ == "__main__": - source = SourceCoingeckoCoins() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-coingecko-coins/setup.py b/airbyte-integrations/connectors/source-coingecko-coins/setup.py index 39a959dcdc27..efc1c015a4df 100644 --- a/airbyte-integrations/connectors/source-coingecko-coins/setup.py +++ b/airbyte-integrations/connectors/source-coingecko-coins/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-coingecko-coins=source_coingecko_coins.run:run", + ], + }, name="source_coingecko_coins", description="Source implementation for Coingecko Coins.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-coingecko-coins/source_coingecko_coins/run.py b/airbyte-integrations/connectors/source-coingecko-coins/source_coingecko_coins/run.py new file mode 100644 index 000000000000..c652fd9af6d0 --- /dev/null +++ b/airbyte-integrations/connectors/source-coingecko-coins/source_coingecko_coins/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_coingecko_coins import SourceCoingeckoCoins + + +def run(): + source = SourceCoingeckoCoins() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-coinmarketcap/main.py b/airbyte-integrations/connectors/source-coinmarketcap/main.py index e2c19d866514..908e01700613 100644 --- a/airbyte-integrations/connectors/source-coinmarketcap/main.py +++ b/airbyte-integrations/connectors/source-coinmarketcap/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_coinmarketcap import SourceCoinmarketcap +from source_coinmarketcap.run import run if __name__ == "__main__": - source = SourceCoinmarketcap() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-coinmarketcap/setup.py b/airbyte-integrations/connectors/source-coinmarketcap/setup.py index 64fd1b41273b..608c7f92baef 100644 --- a/airbyte-integrations/connectors/source-coinmarketcap/setup.py +++ b/airbyte-integrations/connectors/source-coinmarketcap/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-coinmarketcap=source_coinmarketcap.run:run", + ], + }, name="source_coinmarketcap", description="Source implementation for Coinmarketcap.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-coinmarketcap/source_coinmarketcap/run.py b/airbyte-integrations/connectors/source-coinmarketcap/source_coinmarketcap/run.py new file mode 100644 index 000000000000..523d670c3aa9 --- /dev/null +++ b/airbyte-integrations/connectors/source-coinmarketcap/source_coinmarketcap/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_coinmarketcap import SourceCoinmarketcap + + +def run(): + source = SourceCoinmarketcap() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-commcare/main.py b/airbyte-integrations/connectors/source-commcare/main.py index 362386c57b33..edd438bde5be 100644 --- a/airbyte-integrations/connectors/source-commcare/main.py +++ b/airbyte-integrations/connectors/source-commcare/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_commcare import SourceCommcare +from source_commcare.run import run if __name__ == "__main__": - source = SourceCommcare() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-commcare/setup.py b/airbyte-integrations/connectors/source-commcare/setup.py index fd011eec2b1f..44ba9e72640a 100644 --- a/airbyte-integrations/connectors/source-commcare/setup.py +++ b/airbyte-integrations/connectors/source-commcare/setup.py @@ -19,13 +19,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-commcare=source_commcare.run:run", + ], + }, name="source_commcare", description="Source implementation for Commcare.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-commcare/source_commcare/run.py b/airbyte-integrations/connectors/source-commcare/source_commcare/run.py new file mode 100644 index 000000000000..d42251049d08 --- /dev/null +++ b/airbyte-integrations/connectors/source-commcare/source_commcare/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_commcare import SourceCommcare + + +def run(): + source = SourceCommcare() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-commercetools/main.py b/airbyte-integrations/connectors/source-commercetools/main.py index 32aac6ed9f30..44dd2fb8f952 100644 --- a/airbyte-integrations/connectors/source-commercetools/main.py +++ b/airbyte-integrations/connectors/source-commercetools/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_commercetools import SourceCommercetools +from source_commercetools.run import run if __name__ == "__main__": - source = SourceCommercetools() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-commercetools/setup.py b/airbyte-integrations/connectors/source-commercetools/setup.py index 9622d7ad2c24..386e9738b744 100644 --- a/airbyte-integrations/connectors/source-commercetools/setup.py +++ b/airbyte-integrations/connectors/source-commercetools/setup.py @@ -10,13 +10,30 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.2", "pytest-mock~=3.6.1"] setup( + entry_points={ + "console_scripts": [ + "source-commercetools=source_commercetools.run:run", + ], + }, name="source_commercetools", description="Source implementation for Commercetools.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-commercetools/source_commercetools/run.py b/airbyte-integrations/connectors/source-commercetools/source_commercetools/run.py new file mode 100644 index 000000000000..0d264787f978 --- /dev/null +++ b/airbyte-integrations/connectors/source-commercetools/source_commercetools/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_commercetools import SourceCommercetools + + +def run(): + source = SourceCommercetools() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-configcat/main.py b/airbyte-integrations/connectors/source-configcat/main.py index b398a6dc8c92..9b554d1d713f 100644 --- a/airbyte-integrations/connectors/source-configcat/main.py +++ b/airbyte-integrations/connectors/source-configcat/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_configcat import SourceConfigcat +from source_configcat.run import run if __name__ == "__main__": - source = SourceConfigcat() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-configcat/setup.py b/airbyte-integrations/connectors/source-configcat/setup.py index 0bfbad2e7170..0f65dc21183f 100644 --- a/airbyte-integrations/connectors/source-configcat/setup.py +++ b/airbyte-integrations/connectors/source-configcat/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-configcat=source_configcat.run:run", + ], + }, name="source_configcat", description="Source implementation for Configcat.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-configcat/source_configcat/run.py b/airbyte-integrations/connectors/source-configcat/source_configcat/run.py new file mode 100644 index 000000000000..9167f73fa44c --- /dev/null +++ b/airbyte-integrations/connectors/source-configcat/source_configcat/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_configcat import SourceConfigcat + + +def run(): + source = SourceConfigcat() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-confluence/main.py b/airbyte-integrations/connectors/source-confluence/main.py index 5cf3cd879713..eb38dbbac0f0 100644 --- a/airbyte-integrations/connectors/source-confluence/main.py +++ b/airbyte-integrations/connectors/source-confluence/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_confluence import SourceConfluence +from source_confluence.run import run if __name__ == "__main__": - source = SourceConfluence() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-confluence/setup.py b/airbyte-integrations/connectors/source-confluence/setup.py index aaacdff5bbe3..993c131b35f9 100644 --- a/airbyte-integrations/connectors/source-confluence/setup.py +++ b/airbyte-integrations/connectors/source-confluence/setup.py @@ -17,13 +17,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-confluence=source_confluence.run:run", + ], + }, name="source_confluence", description="Source implementation for Confluence.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-confluence/source_confluence/run.py b/airbyte-integrations/connectors/source-confluence/source_confluence/run.py new file mode 100644 index 000000000000..b52381028de6 --- /dev/null +++ b/airbyte-integrations/connectors/source-confluence/source_confluence/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_confluence import SourceConfluence + + +def run(): + source = SourceConfluence() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-convertkit/main.py b/airbyte-integrations/connectors/source-convertkit/main.py index 95b40e4a8c42..0338150054eb 100644 --- a/airbyte-integrations/connectors/source-convertkit/main.py +++ b/airbyte-integrations/connectors/source-convertkit/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_convertkit import SourceConvertkit +from source_convertkit.run import run if __name__ == "__main__": - source = SourceConvertkit() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-convertkit/setup.py b/airbyte-integrations/connectors/source-convertkit/setup.py index a4a3f97a2b7d..1f8512be419f 100644 --- a/airbyte-integrations/connectors/source-convertkit/setup.py +++ b/airbyte-integrations/connectors/source-convertkit/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-convertkit=source_convertkit.run:run", + ], + }, name="source_convertkit", description="Source implementation for Convertkit.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-convertkit/source_convertkit/run.py b/airbyte-integrations/connectors/source-convertkit/source_convertkit/run.py new file mode 100644 index 000000000000..0db38a005bc4 --- /dev/null +++ b/airbyte-integrations/connectors/source-convertkit/source_convertkit/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_convertkit import SourceConvertkit + + +def run(): + source = SourceConvertkit() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-convex/main.py b/airbyte-integrations/connectors/source-convex/main.py index 90037cfed046..751ae667fae2 100644 --- a/airbyte-integrations/connectors/source-convex/main.py +++ b/airbyte-integrations/connectors/source-convex/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_convex import SourceConvex +from source_convex.run import run if __name__ == "__main__": - source = SourceConvex() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-convex/setup.py b/airbyte-integrations/connectors/source-convex/setup.py index 22937fa853f1..82f937d289d9 100644 --- a/airbyte-integrations/connectors/source-convex/setup.py +++ b/airbyte-integrations/connectors/source-convex/setup.py @@ -17,13 +17,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-convex=source_convex.run:run", + ], + }, name="source_convex", description="Source implementation for Convex.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-convex/source_convex/run.py b/airbyte-integrations/connectors/source-convex/source_convex/run.py new file mode 100644 index 000000000000..94ff036e088c --- /dev/null +++ b/airbyte-integrations/connectors/source-convex/source_convex/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_convex import SourceConvex + + +def run(): + source = SourceConvex() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-copper/main.py b/airbyte-integrations/connectors/source-copper/main.py index 5c45e3420a77..090988115e85 100644 --- a/airbyte-integrations/connectors/source-copper/main.py +++ b/airbyte-integrations/connectors/source-copper/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_copper import SourceCopper +from source_copper.run import run if __name__ == "__main__": - source = SourceCopper() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-copper/setup.py b/airbyte-integrations/connectors/source-copper/setup.py index 15fe92381858..f4a0f506acbb 100644 --- a/airbyte-integrations/connectors/source-copper/setup.py +++ b/airbyte-integrations/connectors/source-copper/setup.py @@ -10,13 +10,30 @@ TEST_REQUIREMENTS = ["pytest~=6.2", "pytest-mock~=3.6.1"] setup( + entry_points={ + "console_scripts": [ + "source-copper=source_copper.run:run", + ], + }, name="source_copper", description="Source implementation for Copper.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-copper/source_copper/run.py b/airbyte-integrations/connectors/source-copper/source_copper/run.py new file mode 100644 index 000000000000..1267cf2c4722 --- /dev/null +++ b/airbyte-integrations/connectors/source-copper/source_copper/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_copper import SourceCopper + + +def run(): + source = SourceCopper() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-courier/main.py b/airbyte-integrations/connectors/source-courier/main.py index df87edbfaf1d..d4de8fbdc917 100644 --- a/airbyte-integrations/connectors/source-courier/main.py +++ b/airbyte-integrations/connectors/source-courier/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_courier import SourceCourier +from source_courier.run import run if __name__ == "__main__": - source = SourceCourier() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-courier/setup.py b/airbyte-integrations/connectors/source-courier/setup.py index 883332ece7a6..9bb4390f1913 100644 --- a/airbyte-integrations/connectors/source-courier/setup.py +++ b/airbyte-integrations/connectors/source-courier/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-courier=source_courier.run:run", + ], + }, name="source_courier", description="Source implementation for Courier.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-courier/source_courier/run.py b/airbyte-integrations/connectors/source-courier/source_courier/run.py new file mode 100644 index 000000000000..c6e85fbde238 --- /dev/null +++ b/airbyte-integrations/connectors/source-courier/source_courier/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_courier import SourceCourier + + +def run(): + source = SourceCourier() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-customer-io/main.py b/airbyte-integrations/connectors/source-customer-io/main.py index 835bc1df92ba..ce54e7ce6db6 100644 --- a/airbyte-integrations/connectors/source-customer-io/main.py +++ b/airbyte-integrations/connectors/source-customer-io/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_customer_io import SourceCustomerIo +from source_customer_io.run import run if __name__ == "__main__": - source = SourceCustomerIo() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-customer-io/setup.py b/airbyte-integrations/connectors/source-customer-io/setup.py index 04cd8664c8a1..eb13cd73bbea 100644 --- a/airbyte-integrations/connectors/source-customer-io/setup.py +++ b/airbyte-integrations/connectors/source-customer-io/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-customer-io=source_customer_io.run:run", + ], + }, name="source_customer_io", description="Source implementation for Customer Io.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-customer-io/source_customer_io/run.py b/airbyte-integrations/connectors/source-customer-io/source_customer_io/run.py new file mode 100644 index 000000000000..b122bbd03497 --- /dev/null +++ b/airbyte-integrations/connectors/source-customer-io/source_customer_io/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_customer_io import SourceCustomerIo + + +def run(): + source = SourceCustomerIo() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-datadog/main.py b/airbyte-integrations/connectors/source-datadog/main.py index 768db52beb4f..d8e7d33f093e 100644 --- a/airbyte-integrations/connectors/source-datadog/main.py +++ b/airbyte-integrations/connectors/source-datadog/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_datadog import SourceDatadog +from source_datadog.run import run if __name__ == "__main__": - source = SourceDatadog() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-datadog/setup.py b/airbyte-integrations/connectors/source-datadog/setup.py index 432515ebd8f0..59b397984d78 100644 --- a/airbyte-integrations/connectors/source-datadog/setup.py +++ b/airbyte-integrations/connectors/source-datadog/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-datadog=source_datadog.run:run", + ], + }, name="source_datadog", description="Source implementation for Datadog.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-datadog/source_datadog/run.py b/airbyte-integrations/connectors/source-datadog/source_datadog/run.py new file mode 100644 index 000000000000..62adbe197666 --- /dev/null +++ b/airbyte-integrations/connectors/source-datadog/source_datadog/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_datadog import SourceDatadog + + +def run(): + source = SourceDatadog() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-datascope/main.py b/airbyte-integrations/connectors/source-datascope/main.py index dbdd6b9cc1a5..59b428ca2396 100644 --- a/airbyte-integrations/connectors/source-datascope/main.py +++ b/airbyte-integrations/connectors/source-datascope/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_datascope import SourceDatascope +from source_datascope.run import run if __name__ == "__main__": - source = SourceDatascope() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-datascope/setup.py b/airbyte-integrations/connectors/source-datascope/setup.py index 4a3a8864ddf4..d999c1e72290 100644 --- a/airbyte-integrations/connectors/source-datascope/setup.py +++ b/airbyte-integrations/connectors/source-datascope/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-datascope=source_datascope.run:run", + ], + }, name="source_datascope", description="Source implementation for Datascope.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-datascope/source_datascope/run.py b/airbyte-integrations/connectors/source-datascope/source_datascope/run.py new file mode 100644 index 000000000000..e1543c70c39c --- /dev/null +++ b/airbyte-integrations/connectors/source-datascope/source_datascope/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_datascope import SourceDatascope + + +def run(): + source = SourceDatascope() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-delighted/main.py b/airbyte-integrations/connectors/source-delighted/main.py index 2ba66b4bf80a..f2a80745b8cd 100644 --- a/airbyte-integrations/connectors/source-delighted/main.py +++ b/airbyte-integrations/connectors/source-delighted/main.py @@ -2,34 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # -# MIT License -# -# Copyright (c) 2020 Airbyte -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. - - -import sys - -from airbyte_cdk.entrypoint import launch -from source_delighted import SourceDelighted +from source_delighted.run import run if __name__ == "__main__": - source = SourceDelighted() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-delighted/setup.py b/airbyte-integrations/connectors/source-delighted/setup.py index ca92c54ec6fe..f1f4a7be9d78 100644 --- a/airbyte-integrations/connectors/source-delighted/setup.py +++ b/airbyte-integrations/connectors/source-delighted/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-delighted=source_delighted.run:run", + ], + }, name="source_delighted", description="Source implementation for Delighted.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-delighted/source_delighted/run.py b/airbyte-integrations/connectors/source-delighted/source_delighted/run.py new file mode 100644 index 000000000000..b38535e5962d --- /dev/null +++ b/airbyte-integrations/connectors/source-delighted/source_delighted/run.py @@ -0,0 +1,36 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + +# MIT License +# +# Copyright (c) 2020 Airbyte +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_delighted import SourceDelighted + + +def run(): + source = SourceDelighted() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-dixa/main.py b/airbyte-integrations/connectors/source-dixa/main.py index 5ec7b113ae37..cf2dc464235a 100644 --- a/airbyte-integrations/connectors/source-dixa/main.py +++ b/airbyte-integrations/connectors/source-dixa/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_dixa import SourceDixa +from source_dixa.run import run if __name__ == "__main__": - source = SourceDixa() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-dixa/setup.py b/airbyte-integrations/connectors/source-dixa/setup.py index be6537c6a3cd..5a08f6fc5552 100644 --- a/airbyte-integrations/connectors/source-dixa/setup.py +++ b/airbyte-integrations/connectors/source-dixa/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-dixa=source_dixa.run:run", + ], + }, name="source_dixa", description="Source implementation for Dixa.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-dixa/source_dixa/run.py b/airbyte-integrations/connectors/source-dixa/source_dixa/run.py new file mode 100644 index 000000000000..f264dd78af8e --- /dev/null +++ b/airbyte-integrations/connectors/source-dixa/source_dixa/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_dixa import SourceDixa + + +def run(): + source = SourceDixa() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-dockerhub/main.py b/airbyte-integrations/connectors/source-dockerhub/main.py index fffced0a26b7..c7bf0a5fadc9 100644 --- a/airbyte-integrations/connectors/source-dockerhub/main.py +++ b/airbyte-integrations/connectors/source-dockerhub/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_dockerhub import SourceDockerhub +from source_dockerhub.run import run if __name__ == "__main__": - source = SourceDockerhub() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-dockerhub/setup.py b/airbyte-integrations/connectors/source-dockerhub/setup.py index ea4b2d5873c8..9d382d831668 100644 --- a/airbyte-integrations/connectors/source-dockerhub/setup.py +++ b/airbyte-integrations/connectors/source-dockerhub/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-dockerhub=source_dockerhub.run:run", + ], + }, name="source_dockerhub", description="Source implementation for Dockerhub.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-dockerhub/source_dockerhub/run.py b/airbyte-integrations/connectors/source-dockerhub/source_dockerhub/run.py new file mode 100644 index 000000000000..40df913e37e5 --- /dev/null +++ b/airbyte-integrations/connectors/source-dockerhub/source_dockerhub/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_dockerhub import SourceDockerhub + + +def run(): + source = SourceDockerhub() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-dremio/main.py b/airbyte-integrations/connectors/source-dremio/main.py index 10c2231becd9..2a7f7fbaabd4 100644 --- a/airbyte-integrations/connectors/source-dremio/main.py +++ b/airbyte-integrations/connectors/source-dremio/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_dremio import SourceDremio +from source_dremio.run import run if __name__ == "__main__": - source = SourceDremio() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-dremio/setup.py b/airbyte-integrations/connectors/source-dremio/setup.py index 290c8fcf4fbe..0d89e8a42fe6 100644 --- a/airbyte-integrations/connectors/source-dremio/setup.py +++ b/airbyte-integrations/connectors/source-dremio/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-dremio=source_dremio.run:run", + ], + }, name="source_dremio", description="Source implementation for Dremio.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-dremio/source_dremio/run.py b/airbyte-integrations/connectors/source-dremio/source_dremio/run.py new file mode 100644 index 000000000000..8df023f7eff9 --- /dev/null +++ b/airbyte-integrations/connectors/source-dremio/source_dremio/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_dremio import SourceDremio + + +def run(): + source = SourceDremio() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-drift/main.py b/airbyte-integrations/connectors/source-drift/main.py index 0e0072ac04c3..7f9fdd2ad3df 100644 --- a/airbyte-integrations/connectors/source-drift/main.py +++ b/airbyte-integrations/connectors/source-drift/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_drift import SourceDrift +from source_drift.run import run if __name__ == "__main__": - source = SourceDrift() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-drift/setup.py b/airbyte-integrations/connectors/source-drift/setup.py index 5407ab8ae1e5..7e6632fa4725 100644 --- a/airbyte-integrations/connectors/source-drift/setup.py +++ b/airbyte-integrations/connectors/source-drift/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-drift=source_drift.run:run", + ], + }, name="source_drift", description="Source implementation for Drift.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-drift/source_drift/run.py b/airbyte-integrations/connectors/source-drift/source_drift/run.py new file mode 100644 index 000000000000..b9b04289c276 --- /dev/null +++ b/airbyte-integrations/connectors/source-drift/source_drift/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_drift import SourceDrift + + +def run(): + source = SourceDrift() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-dv-360/main.py b/airbyte-integrations/connectors/source-dv-360/main.py index 483df6f4de96..4d7158d2a11d 100644 --- a/airbyte-integrations/connectors/source-dv-360/main.py +++ b/airbyte-integrations/connectors/source-dv-360/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_dv_360 import SourceDV360 +from source_dv_360.run import run if __name__ == "__main__": - source = SourceDV360() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-dv-360/setup.py b/airbyte-integrations/connectors/source-dv-360/setup.py index a8198206559e..99188791455c 100644 --- a/airbyte-integrations/connectors/source-dv-360/setup.py +++ b/airbyte-integrations/connectors/source-dv-360/setup.py @@ -10,6 +10,11 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.1", "pytest-mock"] setup( + entry_points={ + "console_scripts": [ + "source-dv-360=source_dv_360.run:run", + ], + }, name="source_dv_360", description="Source implementation for Display & Video 360.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-dv-360/source_dv_360/run.py b/airbyte-integrations/connectors/source-dv-360/source_dv_360/run.py new file mode 100644 index 000000000000..a869331c4dbf --- /dev/null +++ b/airbyte-integrations/connectors/source-dv-360/source_dv_360/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_dv_360 import SourceDV360 + + +def run(): + source = SourceDV360() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-emailoctopus/main.py b/airbyte-integrations/connectors/source-emailoctopus/main.py index 18d45ef8ae6f..c0c08dfdd774 100644 --- a/airbyte-integrations/connectors/source-emailoctopus/main.py +++ b/airbyte-integrations/connectors/source-emailoctopus/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_emailoctopus import SourceEmailoctopus +from source_emailoctopus.run import run if __name__ == "__main__": - source = SourceEmailoctopus() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-emailoctopus/setup.py b/airbyte-integrations/connectors/source-emailoctopus/setup.py index 9cd42d8b7050..4c4d0b6e863c 100644 --- a/airbyte-integrations/connectors/source-emailoctopus/setup.py +++ b/airbyte-integrations/connectors/source-emailoctopus/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-emailoctopus=source_emailoctopus.run:run", + ], + }, name="source_emailoctopus", description="Source implementation for Emailoctopus.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-emailoctopus/source_emailoctopus/run.py b/airbyte-integrations/connectors/source-emailoctopus/source_emailoctopus/run.py new file mode 100644 index 000000000000..407e0e086c97 --- /dev/null +++ b/airbyte-integrations/connectors/source-emailoctopus/source_emailoctopus/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_emailoctopus import SourceEmailoctopus + + +def run(): + source = SourceEmailoctopus() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-everhour/main.py b/airbyte-integrations/connectors/source-everhour/main.py index 8c44913d9ddf..d69ca6247ce6 100644 --- a/airbyte-integrations/connectors/source-everhour/main.py +++ b/airbyte-integrations/connectors/source-everhour/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_everhour import SourceEverhour +from source_everhour.run import run if __name__ == "__main__": - source = SourceEverhour() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-everhour/setup.py b/airbyte-integrations/connectors/source-everhour/setup.py index e1838cba9eda..40c9560ff254 100644 --- a/airbyte-integrations/connectors/source-everhour/setup.py +++ b/airbyte-integrations/connectors/source-everhour/setup.py @@ -12,13 +12,30 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.1", "pytest-mock~=3.6.1"] setup( + entry_points={ + "console_scripts": [ + "source-everhour=source_everhour.run:run", + ], + }, name="source_everhour", description="Source implementation for Everhour.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-everhour/source_everhour/run.py b/airbyte-integrations/connectors/source-everhour/source_everhour/run.py new file mode 100644 index 000000000000..4e36ccaaf781 --- /dev/null +++ b/airbyte-integrations/connectors/source-everhour/source_everhour/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_everhour import SourceEverhour + + +def run(): + source = SourceEverhour() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-exchange-rates/main.py b/airbyte-integrations/connectors/source-exchange-rates/main.py index ffdcfd706cff..ce703c9da571 100644 --- a/airbyte-integrations/connectors/source-exchange-rates/main.py +++ b/airbyte-integrations/connectors/source-exchange-rates/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_exchange_rates import SourceExchangeRates +from source_exchange_rates.run import run if __name__ == "__main__": - source = SourceExchangeRates() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-exchange-rates/setup.py b/airbyte-integrations/connectors/source-exchange-rates/setup.py index 120437119f72..c7832abdf32d 100644 --- a/airbyte-integrations/connectors/source-exchange-rates/setup.py +++ b/airbyte-integrations/connectors/source-exchange-rates/setup.py @@ -15,13 +15,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-exchange-rates=source_exchange_rates.run:run", + ], + }, name="source_exchange_rates", description="Source implementation for Exchange Rates.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-exchange-rates/source_exchange_rates/run.py b/airbyte-integrations/connectors/source-exchange-rates/source_exchange_rates/run.py new file mode 100644 index 000000000000..c710a7e23d0d --- /dev/null +++ b/airbyte-integrations/connectors/source-exchange-rates/source_exchange_rates/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_exchange_rates import SourceExchangeRates + + +def run(): + source = SourceExchangeRates() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-facebook-pages/main.py b/airbyte-integrations/connectors/source-facebook-pages/main.py index aba9ffd9f0ea..466fc2800442 100644 --- a/airbyte-integrations/connectors/source-facebook-pages/main.py +++ b/airbyte-integrations/connectors/source-facebook-pages/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_facebook_pages import SourceFacebookPages +from source_facebook_pages.run import run if __name__ == "__main__": - source = SourceFacebookPages() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-facebook-pages/setup.py b/airbyte-integrations/connectors/source-facebook-pages/setup.py index 7bce89eaea9d..808c6ffb27c7 100644 --- a/airbyte-integrations/connectors/source-facebook-pages/setup.py +++ b/airbyte-integrations/connectors/source-facebook-pages/setup.py @@ -12,13 +12,30 @@ TEST_REQUIREMENTS = ["pytest~=6.1", "pytest-mock~=3.6.1", "requests-mock"] setup( + entry_points={ + "console_scripts": [ + "source-facebook-pages=source_facebook_pages.run:run", + ], + }, name="source_facebook_pages", description="Source implementation for Facebook Pages.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/run.py b/airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/run.py new file mode 100644 index 000000000000..3b70710fe59d --- /dev/null +++ b/airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_facebook_pages import SourceFacebookPages + + +def run(): + source = SourceFacebookPages() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-fastbill/main.py b/airbyte-integrations/connectors/source-fastbill/main.py index d807714bce50..acf657a8214d 100644 --- a/airbyte-integrations/connectors/source-fastbill/main.py +++ b/airbyte-integrations/connectors/source-fastbill/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_fastbill import SourceFastbill +from source_fastbill.run import run if __name__ == "__main__": - source = SourceFastbill() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-fastbill/setup.py b/airbyte-integrations/connectors/source-fastbill/setup.py index 843e992da23a..a83e4e1d307a 100644 --- a/airbyte-integrations/connectors/source-fastbill/setup.py +++ b/airbyte-integrations/connectors/source-fastbill/setup.py @@ -10,13 +10,30 @@ TEST_REQUIREMENTS = ["pytest~=6.2", "pytest-mock~=3.6.1"] setup( + entry_points={ + "console_scripts": [ + "source-fastbill=source_fastbill.run:run", + ], + }, name="source_fastbill", description="Source implementation for Fastbill.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-fastbill/source_fastbill/run.py b/airbyte-integrations/connectors/source-fastbill/source_fastbill/run.py new file mode 100644 index 000000000000..eee32cd7dd6c --- /dev/null +++ b/airbyte-integrations/connectors/source-fastbill/source_fastbill/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_fastbill import SourceFastbill + + +def run(): + source = SourceFastbill() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-fauna/main.py b/airbyte-integrations/connectors/source-fauna/main.py index 86b4f167af64..9e4bc25307ed 100644 --- a/airbyte-integrations/connectors/source-fauna/main.py +++ b/airbyte-integrations/connectors/source-fauna/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_fauna import SourceFauna +from source_fauna.run import run if __name__ == "__main__": - source = SourceFauna() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-fauna/setup.py b/airbyte-integrations/connectors/source-fauna/setup.py index 552523c1eb37..db1a676e8035 100644 --- a/airbyte-integrations/connectors/source-fauna/setup.py +++ b/airbyte-integrations/connectors/source-fauna/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-fauna=source_fauna.run:run", + ], + }, name="source_fauna", description="Source implementation for Fauna.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-fauna/source_fauna/run.py b/airbyte-integrations/connectors/source-fauna/source_fauna/run.py new file mode 100644 index 000000000000..20d6ee8bb021 --- /dev/null +++ b/airbyte-integrations/connectors/source-fauna/source_fauna/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_fauna import SourceFauna + + +def run(): + source = SourceFauna() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-file/main.py b/airbyte-integrations/connectors/source-file/main.py index 3ab698c087c0..3e7e82fd61d8 100644 --- a/airbyte-integrations/connectors/source-file/main.py +++ b/airbyte-integrations/connectors/source-file/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_file import SourceFile +from source_file.run import run if __name__ == "__main__": - source = SourceFile() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-file/setup.py b/airbyte-integrations/connectors/source-file/setup.py index 513527062877..b2ae12af1513 100644 --- a/airbyte-integrations/connectors/source-file/setup.py +++ b/airbyte-integrations/connectors/source-file/setup.py @@ -27,6 +27,11 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.2", "pytest-docker~=2.0.1", "pytest-mock~=3.6.1"] setup( + entry_points={ + "console_scripts": [ + "source-file=source_file.run:run", + ], + }, name="source_file", description="Source implementation for File", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-file/source_file/run.py b/airbyte-integrations/connectors/source-file/source_file/run.py new file mode 100644 index 000000000000..646b35cb4c93 --- /dev/null +++ b/airbyte-integrations/connectors/source-file/source_file/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_file import SourceFile + + +def run(): + source = SourceFile() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-firebase-realtime-database/main.py b/airbyte-integrations/connectors/source-firebase-realtime-database/main.py index 54d63471838e..708648fa8c15 100644 --- a/airbyte-integrations/connectors/source-firebase-realtime-database/main.py +++ b/airbyte-integrations/connectors/source-firebase-realtime-database/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_firebase_realtime_database import SourceFirebaseRealtimeDatabase +from source_firebase_realtime_database.run import run if __name__ == "__main__": - source = SourceFirebaseRealtimeDatabase() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-firebase-realtime-database/setup.py b/airbyte-integrations/connectors/source-firebase-realtime-database/setup.py index 1424bb5b1b68..84f7e112ff68 100644 --- a/airbyte-integrations/connectors/source-firebase-realtime-database/setup.py +++ b/airbyte-integrations/connectors/source-firebase-realtime-database/setup.py @@ -18,6 +18,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-firebase-realtime-database=source_firebase_realtime_database.run:run", + ], + }, name="source_firebase_realtime_database", description="Source implementation for Firebase Realtime Database.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-firebase-realtime-database/source_firebase_realtime_database/run.py b/airbyte-integrations/connectors/source-firebase-realtime-database/source_firebase_realtime_database/run.py new file mode 100644 index 000000000000..19b835a4a7a2 --- /dev/null +++ b/airbyte-integrations/connectors/source-firebase-realtime-database/source_firebase_realtime_database/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_firebase_realtime_database import SourceFirebaseRealtimeDatabase + + +def run(): + source = SourceFirebaseRealtimeDatabase() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-firebolt/main.py b/airbyte-integrations/connectors/source-firebolt/main.py index babb5aad001b..a901e9c4ae29 100644 --- a/airbyte-integrations/connectors/source-firebolt/main.py +++ b/airbyte-integrations/connectors/source-firebolt/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_firebolt import SourceFirebolt +from source_firebolt.run import run if __name__ == "__main__": - source = SourceFirebolt() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-firebolt/setup.py b/airbyte-integrations/connectors/source-firebolt/setup.py index 13bb7d102b18..7c342fd2ae16 100644 --- a/airbyte-integrations/connectors/source-firebolt/setup.py +++ b/airbyte-integrations/connectors/source-firebolt/setup.py @@ -15,6 +15,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-firebolt=source_firebolt.run:run", + ], + }, name="source_firebolt", description="Source implementation for Firebolt.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-firebolt/source_firebolt/run.py b/airbyte-integrations/connectors/source-firebolt/source_firebolt/run.py new file mode 100644 index 000000000000..d37e5a6ba911 --- /dev/null +++ b/airbyte-integrations/connectors/source-firebolt/source_firebolt/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_firebolt import SourceFirebolt + + +def run(): + source = SourceFirebolt() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-flexport/main.py b/airbyte-integrations/connectors/source-flexport/main.py index e65198a5e67d..2370e6f8868a 100644 --- a/airbyte-integrations/connectors/source-flexport/main.py +++ b/airbyte-integrations/connectors/source-flexport/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_flexport import SourceFlexport +from source_flexport.run import run if __name__ == "__main__": - source = SourceFlexport() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-flexport/setup.py b/airbyte-integrations/connectors/source-flexport/setup.py index 0deaf76a6445..8a0a2f201f9b 100644 --- a/airbyte-integrations/connectors/source-flexport/setup.py +++ b/airbyte-integrations/connectors/source-flexport/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-flexport=source_flexport.run:run", + ], + }, name="source_flexport", description="Source implementation for Flexport.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-flexport/source_flexport/run.py b/airbyte-integrations/connectors/source-flexport/source_flexport/run.py new file mode 100644 index 000000000000..9bba4b7e96a4 --- /dev/null +++ b/airbyte-integrations/connectors/source-flexport/source_flexport/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_flexport import SourceFlexport + + +def run(): + source = SourceFlexport() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-freshcaller/main.py b/airbyte-integrations/connectors/source-freshcaller/main.py index e0bc9f142e11..7039ceb25a6d 100644 --- a/airbyte-integrations/connectors/source-freshcaller/main.py +++ b/airbyte-integrations/connectors/source-freshcaller/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_freshcaller import SourceFreshcaller +from source_freshcaller.run import run if __name__ == "__main__": - source = SourceFreshcaller() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-freshcaller/setup.py b/airbyte-integrations/connectors/source-freshcaller/setup.py index 27b47c30913f..3c1ee9c3ca91 100644 --- a/airbyte-integrations/connectors/source-freshcaller/setup.py +++ b/airbyte-integrations/connectors/source-freshcaller/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-freshcaller=source_freshcaller.run:run", + ], + }, name="source_freshcaller", description="Source implementation for Freshcaller.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-freshcaller/source_freshcaller/run.py b/airbyte-integrations/connectors/source-freshcaller/source_freshcaller/run.py new file mode 100644 index 000000000000..b6757d75d1aa --- /dev/null +++ b/airbyte-integrations/connectors/source-freshcaller/source_freshcaller/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_freshcaller import SourceFreshcaller + + +def run(): + source = SourceFreshcaller() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-freshsales/main.py b/airbyte-integrations/connectors/source-freshsales/main.py index c5069e9490e2..cdb22eb76f98 100644 --- a/airbyte-integrations/connectors/source-freshsales/main.py +++ b/airbyte-integrations/connectors/source-freshsales/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_freshsales import SourceFreshsales +from source_freshsales.run import run if __name__ == "__main__": - source = SourceFreshsales() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-freshsales/setup.py b/airbyte-integrations/connectors/source-freshsales/setup.py index 2cc1107f0c8b..664bc7a4ff49 100644 --- a/airbyte-integrations/connectors/source-freshsales/setup.py +++ b/airbyte-integrations/connectors/source-freshsales/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-freshsales=source_freshsales.run:run", + ], + }, name="source_freshsales", description="Source implementation for Freshsales.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-freshsales/source_freshsales/run.py b/airbyte-integrations/connectors/source-freshsales/source_freshsales/run.py new file mode 100644 index 000000000000..5eed96da068e --- /dev/null +++ b/airbyte-integrations/connectors/source-freshsales/source_freshsales/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_freshsales import SourceFreshsales + + +def run(): + source = SourceFreshsales() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-freshservice/main.py b/airbyte-integrations/connectors/source-freshservice/main.py index 5048dde91929..084c02978df9 100644 --- a/airbyte-integrations/connectors/source-freshservice/main.py +++ b/airbyte-integrations/connectors/source-freshservice/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_freshservice import SourceFreshservice +from source_freshservice.run import run if __name__ == "__main__": - source = SourceFreshservice() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-freshservice/setup.py b/airbyte-integrations/connectors/source-freshservice/setup.py index 422531f33640..87806214b3dc 100644 --- a/airbyte-integrations/connectors/source-freshservice/setup.py +++ b/airbyte-integrations/connectors/source-freshservice/setup.py @@ -12,13 +12,30 @@ TEST_REQUIREMENTS = ["pytest~=6.2", "pytest-mock~=3.6.1"] setup( + entry_points={ + "console_scripts": [ + "source-freshservice=source_freshservice.run:run", + ], + }, name="source_freshservice", description="Source implementation for Freshservice.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-freshservice/source_freshservice/run.py b/airbyte-integrations/connectors/source-freshservice/source_freshservice/run.py new file mode 100644 index 000000000000..c7a979f0a59b --- /dev/null +++ b/airbyte-integrations/connectors/source-freshservice/source_freshservice/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_freshservice import SourceFreshservice + + +def run(): + source = SourceFreshservice() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-fullstory/main.py b/airbyte-integrations/connectors/source-fullstory/main.py index d9696f00cd3d..ee3e71e54ed5 100644 --- a/airbyte-integrations/connectors/source-fullstory/main.py +++ b/airbyte-integrations/connectors/source-fullstory/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_fullstory import SourceFullstory +from source_fullstory.run import run if __name__ == "__main__": - source = SourceFullstory() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-fullstory/setup.py b/airbyte-integrations/connectors/source-fullstory/setup.py index 99bc576b124a..4bc344fd16c3 100644 --- a/airbyte-integrations/connectors/source-fullstory/setup.py +++ b/airbyte-integrations/connectors/source-fullstory/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-fullstory=source_fullstory.run:run", + ], + }, name="source_fullstory", description="Source implementation for Fullstory.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-fullstory/source_fullstory/run.py b/airbyte-integrations/connectors/source-fullstory/source_fullstory/run.py new file mode 100644 index 000000000000..3b6be606bf59 --- /dev/null +++ b/airbyte-integrations/connectors/source-fullstory/source_fullstory/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_fullstory import SourceFullstory + + +def run(): + source = SourceFullstory() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-gainsight-px/main.py b/airbyte-integrations/connectors/source-gainsight-px/main.py index 5ae4980cd0e0..35146e9ca972 100644 --- a/airbyte-integrations/connectors/source-gainsight-px/main.py +++ b/airbyte-integrations/connectors/source-gainsight-px/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_gainsight_px import SourceGainsightPx +from source_gainsight_px.run import run if __name__ == "__main__": - source = SourceGainsightPx() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-gainsight-px/setup.py b/airbyte-integrations/connectors/source-gainsight-px/setup.py index 3ba161a38e22..4510521fa81c 100644 --- a/airbyte-integrations/connectors/source-gainsight-px/setup.py +++ b/airbyte-integrations/connectors/source-gainsight-px/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-gainsight-px=source_gainsight_px.run:run", + ], + }, name="source_gainsight_px", description="Source implementation for Gainsight Px.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/run.py b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/run.py new file mode 100644 index 000000000000..f0e263867dd8 --- /dev/null +++ b/airbyte-integrations/connectors/source-gainsight-px/source_gainsight_px/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_gainsight_px import SourceGainsightPx + + +def run(): + source = SourceGainsightPx() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-gcs/main.py b/airbyte-integrations/connectors/source-gcs/main.py index c98b5b943cc7..a3a044fb142d 100644 --- a/airbyte-integrations/connectors/source-gcs/main.py +++ b/airbyte-integrations/connectors/source-gcs/main.py @@ -2,14 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import AirbyteEntrypoint, launch -from source_gcs import Config, Cursor, SourceGCS, SourceGCSStreamReader +from source_gcs.run import run if __name__ == "__main__": - _args = sys.argv[1:] - catalog_path = AirbyteEntrypoint.extract_catalog(_args) - source = SourceGCS(SourceGCSStreamReader(), Config, catalog_path, cursor_cls=Cursor) - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-gcs/setup.py b/airbyte-integrations/connectors/source-gcs/setup.py index b9574a838971..f218f69dcb09 100644 --- a/airbyte-integrations/connectors/source-gcs/setup.py +++ b/airbyte-integrations/connectors/source-gcs/setup.py @@ -19,6 +19,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-gcs=source_gcs.run:run", + ], + }, name="source_gcs", description="Source implementation for Gcs.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-gcs/source_gcs/run.py b/airbyte-integrations/connectors/source-gcs/source_gcs/run.py new file mode 100644 index 000000000000..d91a6b40df2a --- /dev/null +++ b/airbyte-integrations/connectors/source-gcs/source_gcs/run.py @@ -0,0 +1,16 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import AirbyteEntrypoint, launch +from source_gcs import Config, Cursor, SourceGCS, SourceGCSStreamReader + + +def run(): + _args = sys.argv[1:] + catalog_path = AirbyteEntrypoint.extract_catalog(_args) + source = SourceGCS(SourceGCSStreamReader(), Config, catalog_path, cursor_cls=Cursor) + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-genesys/main.py b/airbyte-integrations/connectors/source-genesys/main.py index 603590f5fe12..d34643d2aa21 100644 --- a/airbyte-integrations/connectors/source-genesys/main.py +++ b/airbyte-integrations/connectors/source-genesys/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_genesys import SourceGenesys +from source_genesys.run import run if __name__ == "__main__": - source = SourceGenesys() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-genesys/setup.py b/airbyte-integrations/connectors/source-genesys/setup.py index 1c118e316680..723222c413e3 100644 --- a/airbyte-integrations/connectors/source-genesys/setup.py +++ b/airbyte-integrations/connectors/source-genesys/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-genesys=source_genesys.run:run", + ], + }, name="source_genesys", description="Source implementation for Genesys.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-genesys/source_genesys/run.py b/airbyte-integrations/connectors/source-genesys/source_genesys/run.py new file mode 100644 index 000000000000..1c7ee790a0ca --- /dev/null +++ b/airbyte-integrations/connectors/source-genesys/source_genesys/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_genesys import SourceGenesys + + +def run(): + source = SourceGenesys() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-getlago/main.py b/airbyte-integrations/connectors/source-getlago/main.py index 0748c658182d..979e8b779cc5 100644 --- a/airbyte-integrations/connectors/source-getlago/main.py +++ b/airbyte-integrations/connectors/source-getlago/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_getlago import SourceGetlago +from source_getlago.run import run if __name__ == "__main__": - source = SourceGetlago() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-getlago/setup.py b/airbyte-integrations/connectors/source-getlago/setup.py index 37d77842438d..b4d2e1a140eb 100644 --- a/airbyte-integrations/connectors/source-getlago/setup.py +++ b/airbyte-integrations/connectors/source-getlago/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-getlago=source_getlago.run:run", + ], + }, name="source_getlago", description="Source implementation for Getlago.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-getlago/source_getlago/run.py b/airbyte-integrations/connectors/source-getlago/source_getlago/run.py new file mode 100644 index 000000000000..a7822c1b112a --- /dev/null +++ b/airbyte-integrations/connectors/source-getlago/source_getlago/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_getlago import SourceGetlago + + +def run(): + source = SourceGetlago() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-github/main.py b/airbyte-integrations/connectors/source-github/main.py index aa6b652e953c..4d37ce6cccf5 100644 --- a/airbyte-integrations/connectors/source-github/main.py +++ b/airbyte-integrations/connectors/source-github/main.py @@ -2,15 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_github import SourceGithub -from source_github.config_migrations import MigrateBranch, MigrateRepository +from source_github.run import run if __name__ == "__main__": - source = SourceGithub() - MigrateRepository.migrate(sys.argv[1:], source) - MigrateBranch.migrate(sys.argv[1:], source) - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-github/setup.py b/airbyte-integrations/connectors/source-github/setup.py index 8b5f90f29e12..822fd9e37edf 100644 --- a/airbyte-integrations/connectors/source-github/setup.py +++ b/airbyte-integrations/connectors/source-github/setup.py @@ -10,6 +10,11 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest-mock~=3.6.1", "pytest~=6.2", "responses~=0.23.1", "freezegun~=1.2"] setup( + entry_points={ + "console_scripts": [ + "source-github=source_github.run:run", + ], + }, name="source_github", description="Source implementation for Github.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-github/source_github/run.py b/airbyte-integrations/connectors/source-github/source_github/run.py new file mode 100644 index 000000000000..3abce9724842 --- /dev/null +++ b/airbyte-integrations/connectors/source-github/source_github/run.py @@ -0,0 +1,17 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_github import SourceGithub +from source_github.config_migrations import MigrateBranch, MigrateRepository + + +def run(): + source = SourceGithub() + MigrateRepository.migrate(sys.argv[1:], source) + MigrateBranch.migrate(sys.argv[1:], source) + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-glassfrog/main.py b/airbyte-integrations/connectors/source-glassfrog/main.py index 22d58701db3d..f063b41ef47f 100644 --- a/airbyte-integrations/connectors/source-glassfrog/main.py +++ b/airbyte-integrations/connectors/source-glassfrog/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_glassfrog import SourceGlassfrog +from source_glassfrog.run import run if __name__ == "__main__": - source = SourceGlassfrog() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-glassfrog/setup.py b/airbyte-integrations/connectors/source-glassfrog/setup.py index e62098fca78b..531a1c2a7d87 100644 --- a/airbyte-integrations/connectors/source-glassfrog/setup.py +++ b/airbyte-integrations/connectors/source-glassfrog/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-glassfrog=source_glassfrog.run:run", + ], + }, name="source_glassfrog", description="Source implementation for Glassfrog.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-glassfrog/source_glassfrog/run.py b/airbyte-integrations/connectors/source-glassfrog/source_glassfrog/run.py new file mode 100644 index 000000000000..618d3873c80c --- /dev/null +++ b/airbyte-integrations/connectors/source-glassfrog/source_glassfrog/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_glassfrog import SourceGlassfrog + + +def run(): + source = SourceGlassfrog() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-gnews/main.py b/airbyte-integrations/connectors/source-gnews/main.py index 2d7fef617053..4702ac5fd364 100644 --- a/airbyte-integrations/connectors/source-gnews/main.py +++ b/airbyte-integrations/connectors/source-gnews/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_gnews import SourceGnews +from source_gnews.run import run if __name__ == "__main__": - source = SourceGnews() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-gnews/setup.py b/airbyte-integrations/connectors/source-gnews/setup.py index 3e4cf6f2cc28..564eaf258c85 100644 --- a/airbyte-integrations/connectors/source-gnews/setup.py +++ b/airbyte-integrations/connectors/source-gnews/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-gnews=source_gnews.run:run", + ], + }, name="source_gnews", description="Source implementation for Gnews.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-gnews/source_gnews/run.py b/airbyte-integrations/connectors/source-gnews/source_gnews/run.py new file mode 100644 index 000000000000..c2bf1ff536a4 --- /dev/null +++ b/airbyte-integrations/connectors/source-gnews/source_gnews/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_gnews import SourceGnews + + +def run(): + source = SourceGnews() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-gocardless/main.py b/airbyte-integrations/connectors/source-gocardless/main.py index 0c7fbe5c27ed..b7d51bd717b7 100644 --- a/airbyte-integrations/connectors/source-gocardless/main.py +++ b/airbyte-integrations/connectors/source-gocardless/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_gocardless import SourceGocardless +from source_gocardless.run import run if __name__ == "__main__": - source = SourceGocardless() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-gocardless/setup.py b/airbyte-integrations/connectors/source-gocardless/setup.py index b49d3b8111e0..46bcd590d002 100644 --- a/airbyte-integrations/connectors/source-gocardless/setup.py +++ b/airbyte-integrations/connectors/source-gocardless/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-gocardless=source_gocardless.run:run", + ], + }, name="source_gocardless", description="Source implementation for Gocardless.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-gocardless/source_gocardless/run.py b/airbyte-integrations/connectors/source-gocardless/source_gocardless/run.py new file mode 100644 index 000000000000..1884dd380ed4 --- /dev/null +++ b/airbyte-integrations/connectors/source-gocardless/source_gocardless/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_gocardless import SourceGocardless + + +def run(): + source = SourceGocardless() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-gong/main.py b/airbyte-integrations/connectors/source-gong/main.py index d30389447551..dc012c0e42c0 100644 --- a/airbyte-integrations/connectors/source-gong/main.py +++ b/airbyte-integrations/connectors/source-gong/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_gong import SourceGong +from source_gong.run import run if __name__ == "__main__": - source = SourceGong() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-gong/setup.py b/airbyte-integrations/connectors/source-gong/setup.py index e87d4ea56771..2232e3fe24a1 100644 --- a/airbyte-integrations/connectors/source-gong/setup.py +++ b/airbyte-integrations/connectors/source-gong/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-gong=source_gong.run:run", + ], + }, name="source_gong", description="Source implementation for Gong.", author="Elliot Trabac", author_email="elliot.trabac1@gmail.com", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-gong/source_gong/run.py b/airbyte-integrations/connectors/source-gong/source_gong/run.py new file mode 100644 index 000000000000..95da404269f9 --- /dev/null +++ b/airbyte-integrations/connectors/source-gong/source_gong/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_gong import SourceGong + + +def run(): + source = SourceGong() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-google-analytics-v4/main.py b/airbyte-integrations/connectors/source-google-analytics-v4/main.py index 45b902bd6ced..3fd58bc1d5f6 100644 --- a/airbyte-integrations/connectors/source-google-analytics-v4/main.py +++ b/airbyte-integrations/connectors/source-google-analytics-v4/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_google_analytics_v4 import SourceGoogleAnalyticsV4 +from source_google_analytics_v4.run import run if __name__ == "__main__": - source = SourceGoogleAnalyticsV4() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-google-analytics-v4/setup.py b/airbyte-integrations/connectors/source-google-analytics-v4/setup.py index 62ec012a72f9..43f18fd04b37 100644 --- a/airbyte-integrations/connectors/source-google-analytics-v4/setup.py +++ b/airbyte-integrations/connectors/source-google-analytics-v4/setup.py @@ -15,6 +15,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-google-analytics-v4=source_google_analytics_v4.run:run", + ], + }, name="source_google_analytics_v4", description="Source implementation for Google Analytics V4.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-google-analytics-v4/source_google_analytics_v4/run.py b/airbyte-integrations/connectors/source-google-analytics-v4/source_google_analytics_v4/run.py new file mode 100644 index 000000000000..ebb414319fab --- /dev/null +++ b/airbyte-integrations/connectors/source-google-analytics-v4/source_google_analytics_v4/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_google_analytics_v4 import SourceGoogleAnalyticsV4 + + +def run(): + source = SourceGoogleAnalyticsV4() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-google-directory/main.py b/airbyte-integrations/connectors/source-google-directory/main.py index 97076817e3a7..fa60e31af90e 100644 --- a/airbyte-integrations/connectors/source-google-directory/main.py +++ b/airbyte-integrations/connectors/source-google-directory/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_google_directory import SourceGoogleDirectory +from source_google_directory.run import run if __name__ == "__main__": - source = SourceGoogleDirectory() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-google-directory/setup.py b/airbyte-integrations/connectors/source-google-directory/setup.py index a4dbf5967f65..e10411bc2668 100644 --- a/airbyte-integrations/connectors/source-google-directory/setup.py +++ b/airbyte-integrations/connectors/source-google-directory/setup.py @@ -20,6 +20,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-google-directory=source_google_directory.run:run", + ], + }, name="source_google_directory", description="Source implementation for Google Directory.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-google-directory/source_google_directory/run.py b/airbyte-integrations/connectors/source-google-directory/source_google_directory/run.py new file mode 100644 index 000000000000..d7110346906b --- /dev/null +++ b/airbyte-integrations/connectors/source-google-directory/source_google_directory/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_google_directory import SourceGoogleDirectory + + +def run(): + source = SourceGoogleDirectory() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-google-pagespeed-insights/main.py b/airbyte-integrations/connectors/source-google-pagespeed-insights/main.py index 8265a27b1edb..956a0e47d3cb 100644 --- a/airbyte-integrations/connectors/source-google-pagespeed-insights/main.py +++ b/airbyte-integrations/connectors/source-google-pagespeed-insights/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_google_pagespeed_insights import SourceGooglePagespeedInsights +from source_google_pagespeed_insights.run import run if __name__ == "__main__": - source = SourceGooglePagespeedInsights() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-google-pagespeed-insights/setup.py b/airbyte-integrations/connectors/source-google-pagespeed-insights/setup.py index 07d5d4a738ff..e1c998d1d69d 100644 --- a/airbyte-integrations/connectors/source-google-pagespeed-insights/setup.py +++ b/airbyte-integrations/connectors/source-google-pagespeed-insights/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-google-pagespeed-insights=source_google_pagespeed_insights.run:run", + ], + }, name="source_google_pagespeed_insights", description="Source implementation for Google Pagespeed Insights.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-google-pagespeed-insights/source_google_pagespeed_insights/run.py b/airbyte-integrations/connectors/source-google-pagespeed-insights/source_google_pagespeed_insights/run.py new file mode 100644 index 000000000000..e4bb2c99def7 --- /dev/null +++ b/airbyte-integrations/connectors/source-google-pagespeed-insights/source_google_pagespeed_insights/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_google_pagespeed_insights import SourceGooglePagespeedInsights + + +def run(): + source = SourceGooglePagespeedInsights() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-google-search-console/main.py b/airbyte-integrations/connectors/source-google-search-console/main.py index 117df652ca76..845383457bb7 100755 --- a/airbyte-integrations/connectors/source-google-search-console/main.py +++ b/airbyte-integrations/connectors/source-google-search-console/main.py @@ -2,16 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_google_search_console import SourceGoogleSearchConsole -from source_google_search_console.config_migrations import MigrateCustomReports +from source_google_search_console.run import run if __name__ == "__main__": - source = SourceGoogleSearchConsole() - # migrate config at runtime - MigrateCustomReports.migrate(sys.argv[1:], source) - # run the connector - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-google-search-console/setup.py b/airbyte-integrations/connectors/source-google-search-console/setup.py index fd73d6450d37..9888c3a79d5e 100755 --- a/airbyte-integrations/connectors/source-google-search-console/setup.py +++ b/airbyte-integrations/connectors/source-google-search-console/setup.py @@ -19,6 +19,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-google-search-console=source_google_search_console.run:run", + ], + }, name="source_google_search_console", description="Source implementation for Google Search Console.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-google-search-console/source_google_search_console/run.py b/airbyte-integrations/connectors/source-google-search-console/source_google_search_console/run.py new file mode 100755 index 000000000000..3de91fb3cc50 --- /dev/null +++ b/airbyte-integrations/connectors/source-google-search-console/source_google_search_console/run.py @@ -0,0 +1,18 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_google_search_console import SourceGoogleSearchConsole +from source_google_search_console.config_migrations import MigrateCustomReports + + +def run(): + source = SourceGoogleSearchConsole() + # migrate config at runtime + MigrateCustomReports.migrate(sys.argv[1:], source) + # run the connector + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-google-sheets/setup.py b/airbyte-integrations/connectors/source-google-sheets/setup.py index 921d19138dbe..af6935a4686f 100644 --- a/airbyte-integrations/connectors/source-google-sheets/setup.py +++ b/airbyte-integrations/connectors/source-google-sheets/setup.py @@ -29,7 +29,19 @@ author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-google-webfonts/main.py b/airbyte-integrations/connectors/source-google-webfonts/main.py index 99b5b45a2ba9..70cd774d0a01 100644 --- a/airbyte-integrations/connectors/source-google-webfonts/main.py +++ b/airbyte-integrations/connectors/source-google-webfonts/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_google_webfonts import SourceGoogleWebfonts +from source_google_webfonts.run import run if __name__ == "__main__": - source = SourceGoogleWebfonts() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-google-webfonts/setup.py b/airbyte-integrations/connectors/source-google-webfonts/setup.py index 863003482ff1..1b50e26184ce 100644 --- a/airbyte-integrations/connectors/source-google-webfonts/setup.py +++ b/airbyte-integrations/connectors/source-google-webfonts/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-google-webfonts=source_google_webfonts.run:run", + ], + }, name="source_google_webfonts", description="Source implementation for Google Webfonts.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-google-webfonts/source_google_webfonts/run.py b/airbyte-integrations/connectors/source-google-webfonts/source_google_webfonts/run.py new file mode 100644 index 000000000000..fbce9176984d --- /dev/null +++ b/airbyte-integrations/connectors/source-google-webfonts/source_google_webfonts/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_google_webfonts import SourceGoogleWebfonts + + +def run(): + source = SourceGoogleWebfonts() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-google-workspace-admin-reports/main.py b/airbyte-integrations/connectors/source-google-workspace-admin-reports/main.py index 010d9559e95b..1e88c29a963d 100644 --- a/airbyte-integrations/connectors/source-google-workspace-admin-reports/main.py +++ b/airbyte-integrations/connectors/source-google-workspace-admin-reports/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_google_workspace_admin_reports import SourceGoogleWorkspaceAdminReports +from source_google_workspace_admin_reports.run import run if __name__ == "__main__": - source = SourceGoogleWorkspaceAdminReports() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-google-workspace-admin-reports/setup.py b/airbyte-integrations/connectors/source-google-workspace-admin-reports/setup.py index 7170103bf496..787e9f8981b4 100644 --- a/airbyte-integrations/connectors/source-google-workspace-admin-reports/setup.py +++ b/airbyte-integrations/connectors/source-google-workspace-admin-reports/setup.py @@ -21,6 +21,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-google-workspace-admin-reports=source_google_workspace_admin_reports.run:run", + ], + }, name="source_google_workspace_admin_reports", description="Source implementation for Google Workspace Admin Reports.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-google-workspace-admin-reports/source_google_workspace_admin_reports/run.py b/airbyte-integrations/connectors/source-google-workspace-admin-reports/source_google_workspace_admin_reports/run.py new file mode 100644 index 000000000000..b5ecb1fabd63 --- /dev/null +++ b/airbyte-integrations/connectors/source-google-workspace-admin-reports/source_google_workspace_admin_reports/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_google_workspace_admin_reports import SourceGoogleWorkspaceAdminReports + + +def run(): + source = SourceGoogleWorkspaceAdminReports() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-greenhouse/main.py b/airbyte-integrations/connectors/source-greenhouse/main.py index 55e53e344062..e08a14b429fd 100644 --- a/airbyte-integrations/connectors/source-greenhouse/main.py +++ b/airbyte-integrations/connectors/source-greenhouse/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_greenhouse import SourceGreenhouse +from source_greenhouse.run import run if __name__ == "__main__": - source = SourceGreenhouse() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-greenhouse/setup.py b/airbyte-integrations/connectors/source-greenhouse/setup.py index 73945258c42b..3b9c02aec527 100644 --- a/airbyte-integrations/connectors/source-greenhouse/setup.py +++ b/airbyte-integrations/connectors/source-greenhouse/setup.py @@ -12,6 +12,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-greenhouse=source_greenhouse.run:run", + ], + }, name="source_greenhouse", description="Source implementation for Greenhouse.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/run.py b/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/run.py new file mode 100644 index 000000000000..d82109b4b6cc --- /dev/null +++ b/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_greenhouse import SourceGreenhouse + + +def run(): + source = SourceGreenhouse() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-gridly/main.py b/airbyte-integrations/connectors/source-gridly/main.py index 1e999fa0c2d0..307be6500faf 100644 --- a/airbyte-integrations/connectors/source-gridly/main.py +++ b/airbyte-integrations/connectors/source-gridly/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_gridly import SourceGridly +from source_gridly.run import run if __name__ == "__main__": - source = SourceGridly() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-gridly/setup.py b/airbyte-integrations/connectors/source-gridly/setup.py index dc08caa562c5..2b6e0bb2cc20 100644 --- a/airbyte-integrations/connectors/source-gridly/setup.py +++ b/airbyte-integrations/connectors/source-gridly/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-gridly=source_gridly.run:run", + ], + }, name="source_gridly", description="Source implementation for Gridly.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-gridly/source_gridly/run.py b/airbyte-integrations/connectors/source-gridly/source_gridly/run.py new file mode 100644 index 000000000000..2cddadbd477d --- /dev/null +++ b/airbyte-integrations/connectors/source-gridly/source_gridly/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_gridly import SourceGridly + + +def run(): + source = SourceGridly() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-gutendex/main.py b/airbyte-integrations/connectors/source-gutendex/main.py index 0fd65db37ce0..8304e254daa4 100644 --- a/airbyte-integrations/connectors/source-gutendex/main.py +++ b/airbyte-integrations/connectors/source-gutendex/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_gutendex import SourceGutendex +from source_gutendex.run import run if __name__ == "__main__": - source = SourceGutendex() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-gutendex/setup.py b/airbyte-integrations/connectors/source-gutendex/setup.py index b96103135cdf..6759689d84b5 100644 --- a/airbyte-integrations/connectors/source-gutendex/setup.py +++ b/airbyte-integrations/connectors/source-gutendex/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-gutendex=source_gutendex.run:run", + ], + }, name="source_gutendex", description="Source implementation for Gutendex.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-gutendex/source_gutendex/run.py b/airbyte-integrations/connectors/source-gutendex/source_gutendex/run.py new file mode 100644 index 000000000000..ba4bcb6755ac --- /dev/null +++ b/airbyte-integrations/connectors/source-gutendex/source_gutendex/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_gutendex import SourceGutendex + + +def run(): + source = SourceGutendex() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-harness/main.py b/airbyte-integrations/connectors/source-harness/main.py index b323465b96c8..a33c09315382 100644 --- a/airbyte-integrations/connectors/source-harness/main.py +++ b/airbyte-integrations/connectors/source-harness/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_harness import SourceHarness +from source_harness.run import run if __name__ == "__main__": - source = SourceHarness() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-harness/setup.py b/airbyte-integrations/connectors/source-harness/setup.py index 6bef3ce1447c..170c960c9500 100644 --- a/airbyte-integrations/connectors/source-harness/setup.py +++ b/airbyte-integrations/connectors/source-harness/setup.py @@ -14,13 +14,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-harness=source_harness.run:run", + ], + }, name="source_harness", description="Source implementation for Harness.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-harness/source_harness/run.py b/airbyte-integrations/connectors/source-harness/source_harness/run.py new file mode 100644 index 000000000000..544daa9407a1 --- /dev/null +++ b/airbyte-integrations/connectors/source-harness/source_harness/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_harness import SourceHarness + + +def run(): + source = SourceHarness() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-harvest/main.py b/airbyte-integrations/connectors/source-harvest/main.py index 3fa9904a1ea6..e00a49b587fd 100644 --- a/airbyte-integrations/connectors/source-harvest/main.py +++ b/airbyte-integrations/connectors/source-harvest/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_harvest import SourceHarvest +from source_harvest.run import run if __name__ == "__main__": - source = SourceHarvest() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-harvest/setup.py b/airbyte-integrations/connectors/source-harvest/setup.py index a208606a02a8..4c73f9283e52 100644 --- a/airbyte-integrations/connectors/source-harvest/setup.py +++ b/airbyte-integrations/connectors/source-harvest/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-harvest=source_harvest.run:run", + ], + }, name="source_harvest", description="Source implementation for Harvest.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-harvest/source_harvest/run.py b/airbyte-integrations/connectors/source-harvest/source_harvest/run.py new file mode 100644 index 000000000000..53406b411f86 --- /dev/null +++ b/airbyte-integrations/connectors/source-harvest/source_harvest/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_harvest import SourceHarvest + + +def run(): + source = SourceHarvest() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-hellobaton/main.py b/airbyte-integrations/connectors/source-hellobaton/main.py index 1c9ad3053e5a..17a946f7180e 100644 --- a/airbyte-integrations/connectors/source-hellobaton/main.py +++ b/airbyte-integrations/connectors/source-hellobaton/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_hellobaton import SourceHellobaton +from source_hellobaton.run import run if __name__ == "__main__": - source = SourceHellobaton() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-hellobaton/setup.py b/airbyte-integrations/connectors/source-hellobaton/setup.py index 91ef2d7cc5f0..d11d669bfcad 100644 --- a/airbyte-integrations/connectors/source-hellobaton/setup.py +++ b/airbyte-integrations/connectors/source-hellobaton/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-hellobaton=source_hellobaton.run:run", + ], + }, name="source_hellobaton", description="Source implementation for Hellobaton.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-hellobaton/source_hellobaton/run.py b/airbyte-integrations/connectors/source-hellobaton/source_hellobaton/run.py new file mode 100644 index 000000000000..4d005af85b84 --- /dev/null +++ b/airbyte-integrations/connectors/source-hellobaton/source_hellobaton/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_hellobaton import SourceHellobaton + + +def run(): + source = SourceHellobaton() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-hubplanner/main.py b/airbyte-integrations/connectors/source-hubplanner/main.py index 23d01f5e10a6..aa973ab41009 100644 --- a/airbyte-integrations/connectors/source-hubplanner/main.py +++ b/airbyte-integrations/connectors/source-hubplanner/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_hubplanner import SourceHubplanner +from source_hubplanner.run import run if __name__ == "__main__": - source = SourceHubplanner() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-hubplanner/setup.py b/airbyte-integrations/connectors/source-hubplanner/setup.py index 5a7474d7c180..dd6d82f7fb64 100644 --- a/airbyte-integrations/connectors/source-hubplanner/setup.py +++ b/airbyte-integrations/connectors/source-hubplanner/setup.py @@ -17,13 +17,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-hubplanner=source_hubplanner.run:run", + ], + }, name="source_hubplanner", description="Source implementation for Hubplanner.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-hubplanner/source_hubplanner/run.py b/airbyte-integrations/connectors/source-hubplanner/source_hubplanner/run.py new file mode 100644 index 000000000000..325f3b045b43 --- /dev/null +++ b/airbyte-integrations/connectors/source-hubplanner/source_hubplanner/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_hubplanner import SourceHubplanner + + +def run(): + source = SourceHubplanner() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-hubspot/main.py b/airbyte-integrations/connectors/source-hubspot/main.py index 0f1cf13e4d10..dc073ca21ed6 100644 --- a/airbyte-integrations/connectors/source-hubspot/main.py +++ b/airbyte-integrations/connectors/source-hubspot/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_hubspot import SourceHubspot +from source_hubspot.run import run if __name__ == "__main__": - source = SourceHubspot() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-hubspot/setup.py b/airbyte-integrations/connectors/source-hubspot/setup.py index 0f0721b230ff..a1831948c262 100644 --- a/airbyte-integrations/connectors/source-hubspot/setup.py +++ b/airbyte-integrations/connectors/source-hubspot/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-hubspot=source_hubspot.run:run", + ], + }, name="source_hubspot", description="Source implementation for HubSpot.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-hubspot/source_hubspot/run.py b/airbyte-integrations/connectors/source-hubspot/source_hubspot/run.py new file mode 100644 index 000000000000..26f4d0abef15 --- /dev/null +++ b/airbyte-integrations/connectors/source-hubspot/source_hubspot/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_hubspot import SourceHubspot + + +def run(): + source = SourceHubspot() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-insightly/main.py b/airbyte-integrations/connectors/source-insightly/main.py index 5797ba54c977..a486e61080cb 100644 --- a/airbyte-integrations/connectors/source-insightly/main.py +++ b/airbyte-integrations/connectors/source-insightly/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_insightly import SourceInsightly +from source_insightly.run import run if __name__ == "__main__": - source = SourceInsightly() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-insightly/setup.py b/airbyte-integrations/connectors/source-insightly/setup.py index a3c070098791..40a7bc03b71c 100644 --- a/airbyte-integrations/connectors/source-insightly/setup.py +++ b/airbyte-integrations/connectors/source-insightly/setup.py @@ -14,13 +14,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-insightly=source_insightly.run:run", + ], + }, name="source_insightly", description="Source implementation for Insightly.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-insightly/source_insightly/run.py b/airbyte-integrations/connectors/source-insightly/source_insightly/run.py new file mode 100644 index 000000000000..d3b9124ae551 --- /dev/null +++ b/airbyte-integrations/connectors/source-insightly/source_insightly/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_insightly import SourceInsightly + + +def run(): + source = SourceInsightly() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-instatus/main.py b/airbyte-integrations/connectors/source-instatus/main.py index dc0a480e8f7e..0e0c5af556b5 100644 --- a/airbyte-integrations/connectors/source-instatus/main.py +++ b/airbyte-integrations/connectors/source-instatus/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_instatus import SourceInstatus +from source_instatus.run import run if __name__ == "__main__": - source = SourceInstatus() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-instatus/setup.py b/airbyte-integrations/connectors/source-instatus/setup.py index 0a0586841809..8a914c480bb3 100644 --- a/airbyte-integrations/connectors/source-instatus/setup.py +++ b/airbyte-integrations/connectors/source-instatus/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-instatus=source_instatus.run:run", + ], + }, name="source_instatus", description="Source implementation for Instatus.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-instatus/source_instatus/run.py b/airbyte-integrations/connectors/source-instatus/source_instatus/run.py new file mode 100644 index 000000000000..ade50f0a9cdd --- /dev/null +++ b/airbyte-integrations/connectors/source-instatus/source_instatus/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_instatus import SourceInstatus + + +def run(): + source = SourceInstatus() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-intercom/main.py b/airbyte-integrations/connectors/source-intercom/main.py index a1f0ae6911bf..410860c90fd8 100644 --- a/airbyte-integrations/connectors/source-intercom/main.py +++ b/airbyte-integrations/connectors/source-intercom/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_intercom import SourceIntercom +from source_intercom.run import run if __name__ == "__main__": - source = SourceIntercom() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-intercom/setup.py b/airbyte-integrations/connectors/source-intercom/setup.py index 0432b7d7f10a..4aaa6c80c87f 100644 --- a/airbyte-integrations/connectors/source-intercom/setup.py +++ b/airbyte-integrations/connectors/source-intercom/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-intercom=source_intercom.run:run", + ], + }, name="source_intercom", description="Source implementation for Intercom Yaml.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-intercom/source_intercom/run.py b/airbyte-integrations/connectors/source-intercom/source_intercom/run.py new file mode 100644 index 000000000000..434766998b6e --- /dev/null +++ b/airbyte-integrations/connectors/source-intercom/source_intercom/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_intercom import SourceIntercom + + +def run(): + source = SourceIntercom() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-intruder/main.py b/airbyte-integrations/connectors/source-intruder/main.py index 3bb638ef0b9b..ec9ff51965a6 100644 --- a/airbyte-integrations/connectors/source-intruder/main.py +++ b/airbyte-integrations/connectors/source-intruder/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_intruder import SourceIntruder +from source_intruder.run import run if __name__ == "__main__": - source = SourceIntruder() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-intruder/setup.py b/airbyte-integrations/connectors/source-intruder/setup.py index 67cb265463db..1860d710d501 100644 --- a/airbyte-integrations/connectors/source-intruder/setup.py +++ b/airbyte-integrations/connectors/source-intruder/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-intruder=source_intruder.run:run", + ], + }, name="source_intruder", description="Source implementation for Intruder.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-intruder/source_intruder/run.py b/airbyte-integrations/connectors/source-intruder/source_intruder/run.py new file mode 100644 index 000000000000..fcdedf420bc8 --- /dev/null +++ b/airbyte-integrations/connectors/source-intruder/source_intruder/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_intruder import SourceIntruder + + +def run(): + source = SourceIntruder() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-ip2whois/main.py b/airbyte-integrations/connectors/source-ip2whois/main.py index 9ca61a68d1e1..746592c48705 100644 --- a/airbyte-integrations/connectors/source-ip2whois/main.py +++ b/airbyte-integrations/connectors/source-ip2whois/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_ip2whois import SourceIp2whois +from source_ip2whois.run import run if __name__ == "__main__": - source = SourceIp2whois() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-ip2whois/setup.py b/airbyte-integrations/connectors/source-ip2whois/setup.py index 92303a3f0ea4..10c6ca83410b 100644 --- a/airbyte-integrations/connectors/source-ip2whois/setup.py +++ b/airbyte-integrations/connectors/source-ip2whois/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-ip2whois=source_ip2whois.run:run", + ], + }, name="source_ip2whois", description="Source implementation for Ip2whois.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-ip2whois/source_ip2whois/run.py b/airbyte-integrations/connectors/source-ip2whois/source_ip2whois/run.py new file mode 100644 index 000000000000..7c3e0cda5573 --- /dev/null +++ b/airbyte-integrations/connectors/source-ip2whois/source_ip2whois/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_ip2whois import SourceIp2whois + + +def run(): + source = SourceIp2whois() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-jira/main.py b/airbyte-integrations/connectors/source-jira/main.py index 9a560c777bf7..1885b3974def 100644 --- a/airbyte-integrations/connectors/source-jira/main.py +++ b/airbyte-integrations/connectors/source-jira/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_jira import SourceJira +from source_jira.run import run if __name__ == "__main__": - source = SourceJira() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-jira/setup.py b/airbyte-integrations/connectors/source-jira/setup.py index 800525b0a829..ccce70beddfc 100644 --- a/airbyte-integrations/connectors/source-jira/setup.py +++ b/airbyte-integrations/connectors/source-jira/setup.py @@ -15,6 +15,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-jira=source_jira.run:run", + ], + }, name="source_jira", description="Source implementation for Jira.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-jira/source_jira/run.py b/airbyte-integrations/connectors/source-jira/source_jira/run.py new file mode 100644 index 000000000000..c5702721e0b8 --- /dev/null +++ b/airbyte-integrations/connectors/source-jira/source_jira/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_jira import SourceJira + + +def run(): + source = SourceJira() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-k6-cloud/main.py b/airbyte-integrations/connectors/source-k6-cloud/main.py index 5b694eda96f2..61325917a539 100644 --- a/airbyte-integrations/connectors/source-k6-cloud/main.py +++ b/airbyte-integrations/connectors/source-k6-cloud/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_k6_cloud import SourceK6Cloud +from source_k6_cloud.run import run if __name__ == "__main__": - source = SourceK6Cloud() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-k6-cloud/setup.py b/airbyte-integrations/connectors/source-k6-cloud/setup.py index 05908924fd5b..03ce14d72e5b 100644 --- a/airbyte-integrations/connectors/source-k6-cloud/setup.py +++ b/airbyte-integrations/connectors/source-k6-cloud/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-k6-cloud=source_k6_cloud.run:run", + ], + }, name="source_k6_cloud", description="Source implementation for K6 Cloud.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-k6-cloud/source_k6_cloud/run.py b/airbyte-integrations/connectors/source-k6-cloud/source_k6_cloud/run.py new file mode 100644 index 000000000000..c5103e21aa21 --- /dev/null +++ b/airbyte-integrations/connectors/source-k6-cloud/source_k6_cloud/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_k6_cloud import SourceK6Cloud + + +def run(): + source = SourceK6Cloud() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-klarna/main.py b/airbyte-integrations/connectors/source-klarna/main.py index 4abe77680d8b..566bf5c666d6 100644 --- a/airbyte-integrations/connectors/source-klarna/main.py +++ b/airbyte-integrations/connectors/source-klarna/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_klarna import SourceKlarna +from source_klarna.run import run if __name__ == "__main__": - source = SourceKlarna() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-klarna/setup.py b/airbyte-integrations/connectors/source-klarna/setup.py index a4742e88dd56..58609f375fe3 100644 --- a/airbyte-integrations/connectors/source-klarna/setup.py +++ b/airbyte-integrations/connectors/source-klarna/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-klarna=source_klarna.run:run", + ], + }, name="source_klarna", description="Source implementation for Klarna.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-klarna/source_klarna/run.py b/airbyte-integrations/connectors/source-klarna/source_klarna/run.py new file mode 100644 index 000000000000..8ae916c3c4e7 --- /dev/null +++ b/airbyte-integrations/connectors/source-klarna/source_klarna/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_klarna import SourceKlarna + + +def run(): + source = SourceKlarna() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-klaus-api/main.py b/airbyte-integrations/connectors/source-klaus-api/main.py index 9be6460ab485..7896d99aec94 100644 --- a/airbyte-integrations/connectors/source-klaus-api/main.py +++ b/airbyte-integrations/connectors/source-klaus-api/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_klaus_api import SourceKlausApi +from source_klaus_api.run import run if __name__ == "__main__": - source = SourceKlausApi() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-klaus-api/setup.py b/airbyte-integrations/connectors/source-klaus-api/setup.py index b4444f99dd06..815b95129848 100644 --- a/airbyte-integrations/connectors/source-klaus-api/setup.py +++ b/airbyte-integrations/connectors/source-klaus-api/setup.py @@ -15,13 +15,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-klaus-api=source_klaus_api.run:run", + ], + }, name="source_klaus_api", description="Source implementation for Klaus Api.", author="Deke Li", author_email="deke.li@sendinblue.com", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-klaus-api/source_klaus_api/run.py b/airbyte-integrations/connectors/source-klaus-api/source_klaus_api/run.py new file mode 100644 index 000000000000..c000d3864646 --- /dev/null +++ b/airbyte-integrations/connectors/source-klaus-api/source_klaus_api/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_klaus_api import SourceKlausApi + + +def run(): + source = SourceKlausApi() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-klaviyo/main.py b/airbyte-integrations/connectors/source-klaviyo/main.py index 6285473bf2cd..5b8c871c3d7d 100644 --- a/airbyte-integrations/connectors/source-klaviyo/main.py +++ b/airbyte-integrations/connectors/source-klaviyo/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_klaviyo import SourceKlaviyo +from source_klaviyo.run import run if __name__ == "__main__": - source = SourceKlaviyo() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-klaviyo/setup.py b/airbyte-integrations/connectors/source-klaviyo/setup.py index 32a31edb0848..d9ac3a2fb807 100644 --- a/airbyte-integrations/connectors/source-klaviyo/setup.py +++ b/airbyte-integrations/connectors/source-klaviyo/setup.py @@ -10,6 +10,11 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.1", "pytest-mock", "requests_mock~=1.8"] setup( + entry_points={ + "console_scripts": [ + "source-klaviyo=source_klaviyo.run:run", + ], + }, name="source_klaviyo", description="Source implementation for Klaviyo.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-klaviyo/source_klaviyo/run.py b/airbyte-integrations/connectors/source-klaviyo/source_klaviyo/run.py new file mode 100644 index 000000000000..afcae2272e29 --- /dev/null +++ b/airbyte-integrations/connectors/source-klaviyo/source_klaviyo/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_klaviyo import SourceKlaviyo + + +def run(): + source = SourceKlaviyo() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-kustomer-singer/main.py b/airbyte-integrations/connectors/source-kustomer-singer/main.py index 77ee51ee831c..00920dc58a36 100644 --- a/airbyte-integrations/connectors/source-kustomer-singer/main.py +++ b/airbyte-integrations/connectors/source-kustomer-singer/main.py @@ -2,11 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # -import sys - -from airbyte_cdk.entrypoint import launch -from source_kustomer_singer import SourceKustomerSinger +from source_kustomer_singer.run import run if __name__ == "__main__": - source = SourceKustomerSinger() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-kustomer-singer/setup.py b/airbyte-integrations/connectors/source-kustomer-singer/setup.py index 5e14ee6e2e1d..dbaf47851ce7 100644 --- a/airbyte-integrations/connectors/source-kustomer-singer/setup.py +++ b/airbyte-integrations/connectors/source-kustomer-singer/setup.py @@ -53,6 +53,11 @@ def run(self): TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest-mock~=3.6.1", "pytest~=6.1"] setup( + entry_points={ + "console_scripts": [ + "source-kustomer-singer=source_kustomer_singer.run:run", + ], + }, name="source_kustomer_singer", description="Source implementation for Kustomer, built on the Singer tap implementation.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-kustomer-singer/source_kustomer_singer/run.py b/airbyte-integrations/connectors/source-kustomer-singer/source_kustomer_singer/run.py new file mode 100644 index 000000000000..fba603c749e8 --- /dev/null +++ b/airbyte-integrations/connectors/source-kustomer-singer/source_kustomer_singer/run.py @@ -0,0 +1,13 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + +import sys + +from airbyte_cdk.entrypoint import launch +from source_kustomer_singer import SourceKustomerSinger + + +def run(): + source = SourceKustomerSinger() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-kyriba/main.py b/airbyte-integrations/connectors/source-kyriba/main.py index 771b738d1b1b..cd0b8f1f2f3e 100644 --- a/airbyte-integrations/connectors/source-kyriba/main.py +++ b/airbyte-integrations/connectors/source-kyriba/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_kyriba import SourceKyriba +from source_kyriba.run import run if __name__ == "__main__": - source = SourceKyriba() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-kyriba/setup.py b/airbyte-integrations/connectors/source-kyriba/setup.py index c81f4d4e1e0d..00c6c13f5657 100644 --- a/airbyte-integrations/connectors/source-kyriba/setup.py +++ b/airbyte-integrations/connectors/source-kyriba/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-kyriba=source_kyriba.run:run", + ], + }, name="source_kyriba", description="Source implementation for Kyriba.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-kyriba/source_kyriba/run.py b/airbyte-integrations/connectors/source-kyriba/source_kyriba/run.py new file mode 100644 index 000000000000..e12facaaab47 --- /dev/null +++ b/airbyte-integrations/connectors/source-kyriba/source_kyriba/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_kyriba import SourceKyriba + + +def run(): + source = SourceKyriba() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-kyve/main.py b/airbyte-integrations/connectors/source-kyve/main.py index f4055d71e80e..a3740b34d958 100644 --- a/airbyte-integrations/connectors/source-kyve/main.py +++ b/airbyte-integrations/connectors/source-kyve/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_kyve import SourceKyve +from source_kyve.run import run if __name__ == "__main__": - source = SourceKyve() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-kyve/setup.py b/airbyte-integrations/connectors/source-kyve/setup.py index 1d6d5bbde662..128e97f87d25 100644 --- a/airbyte-integrations/connectors/source-kyve/setup.py +++ b/airbyte-integrations/connectors/source-kyve/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-kyve=source_kyve.run:run", + ], + }, name="source_kyve", description="Source implementation for KYVE.", author="KYVE Core Team", diff --git a/airbyte-integrations/connectors/source-kyve/source_kyve/run.py b/airbyte-integrations/connectors/source-kyve/source_kyve/run.py new file mode 100644 index 000000000000..fc9753ebf2bb --- /dev/null +++ b/airbyte-integrations/connectors/source-kyve/source_kyve/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_kyve import SourceKyve + + +def run(): + source = SourceKyve() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-launchdarkly/main.py b/airbyte-integrations/connectors/source-launchdarkly/main.py index beb7cab5ae2f..997cfda7e441 100644 --- a/airbyte-integrations/connectors/source-launchdarkly/main.py +++ b/airbyte-integrations/connectors/source-launchdarkly/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_launchdarkly import SourceLaunchdarkly +from source_launchdarkly.run import run if __name__ == "__main__": - source = SourceLaunchdarkly() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-launchdarkly/setup.py b/airbyte-integrations/connectors/source-launchdarkly/setup.py index 07d48e22e847..722dfc7a0768 100644 --- a/airbyte-integrations/connectors/source-launchdarkly/setup.py +++ b/airbyte-integrations/connectors/source-launchdarkly/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-launchdarkly=source_launchdarkly.run:run", + ], + }, name="source_launchdarkly", description="Source implementation for Launchdarkly.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-launchdarkly/source_launchdarkly/run.py b/airbyte-integrations/connectors/source-launchdarkly/source_launchdarkly/run.py new file mode 100644 index 000000000000..9807f36d4a6e --- /dev/null +++ b/airbyte-integrations/connectors/source-launchdarkly/source_launchdarkly/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_launchdarkly import SourceLaunchdarkly + + +def run(): + source = SourceLaunchdarkly() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-lemlist/main.py b/airbyte-integrations/connectors/source-lemlist/main.py index 3d71a2f889d8..5d7573f45162 100644 --- a/airbyte-integrations/connectors/source-lemlist/main.py +++ b/airbyte-integrations/connectors/source-lemlist/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_lemlist import SourceLemlist +from source_lemlist.run import run if __name__ == "__main__": - source = SourceLemlist() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-lemlist/setup.py b/airbyte-integrations/connectors/source-lemlist/setup.py index b202001b47e2..53550286882a 100644 --- a/airbyte-integrations/connectors/source-lemlist/setup.py +++ b/airbyte-integrations/connectors/source-lemlist/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-lemlist=source_lemlist.run:run", + ], + }, name="source_lemlist", description="Source implementation for Lemlist.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-lemlist/source_lemlist/run.py b/airbyte-integrations/connectors/source-lemlist/source_lemlist/run.py new file mode 100644 index 000000000000..092c7e718f2b --- /dev/null +++ b/airbyte-integrations/connectors/source-lemlist/source_lemlist/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_lemlist import SourceLemlist + + +def run(): + source = SourceLemlist() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-lever-hiring/main.py b/airbyte-integrations/connectors/source-lever-hiring/main.py index b79de94f75ee..ca4773e96a03 100644 --- a/airbyte-integrations/connectors/source-lever-hiring/main.py +++ b/airbyte-integrations/connectors/source-lever-hiring/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_lever_hiring import SourceLeverHiring +from source_lever_hiring.run import run if __name__ == "__main__": - source = SourceLeverHiring() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-lever-hiring/setup.py b/airbyte-integrations/connectors/source-lever-hiring/setup.py index 3ceb890c8e93..0004a96f9d05 100644 --- a/airbyte-integrations/connectors/source-lever-hiring/setup.py +++ b/airbyte-integrations/connectors/source-lever-hiring/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-lever-hiring=source_lever_hiring.run:run", + ], + }, name="source_lever_hiring", description="Source implementation for Lever Hiring.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-lever-hiring/source_lever_hiring/run.py b/airbyte-integrations/connectors/source-lever-hiring/source_lever_hiring/run.py new file mode 100644 index 000000000000..cd8dc4e7bfc3 --- /dev/null +++ b/airbyte-integrations/connectors/source-lever-hiring/source_lever_hiring/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_lever_hiring import SourceLeverHiring + + +def run(): + source = SourceLeverHiring() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-linkedin-pages/main.py b/airbyte-integrations/connectors/source-linkedin-pages/main.py index 74ee9b7342f2..a6068720a6a8 100644 --- a/airbyte-integrations/connectors/source-linkedin-pages/main.py +++ b/airbyte-integrations/connectors/source-linkedin-pages/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_linkedin_pages import SourceLinkedinPages +from source_linkedin_pages.run import run if __name__ == "__main__": - source = SourceLinkedinPages() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-linkedin-pages/setup.py b/airbyte-integrations/connectors/source-linkedin-pages/setup.py index f690842da795..6f3d0697a13d 100644 --- a/airbyte-integrations/connectors/source-linkedin-pages/setup.py +++ b/airbyte-integrations/connectors/source-linkedin-pages/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-linkedin-pages=source_linkedin_pages.run:run", + ], + }, name="source_linkedin_pages", description="Source implementation for Linkedin Company Pages.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-linkedin-pages/source_linkedin_pages/run.py b/airbyte-integrations/connectors/source-linkedin-pages/source_linkedin_pages/run.py new file mode 100644 index 000000000000..4f0787573f2e --- /dev/null +++ b/airbyte-integrations/connectors/source-linkedin-pages/source_linkedin_pages/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_linkedin_pages import SourceLinkedinPages + + +def run(): + source = SourceLinkedinPages() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-linnworks/main.py b/airbyte-integrations/connectors/source-linnworks/main.py index 7d0337b4c1b1..ee964c061ce0 100644 --- a/airbyte-integrations/connectors/source-linnworks/main.py +++ b/airbyte-integrations/connectors/source-linnworks/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_linnworks import SourceLinnworks +from source_linnworks.run import run if __name__ == "__main__": - source = SourceLinnworks() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-linnworks/setup.py b/airbyte-integrations/connectors/source-linnworks/setup.py index f0a487191567..1256710cb3ff 100644 --- a/airbyte-integrations/connectors/source-linnworks/setup.py +++ b/airbyte-integrations/connectors/source-linnworks/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-linnworks=source_linnworks.run:run", + ], + }, name="source_linnworks", description="Source implementation for Linnworks.", author="Labanoras Tech", diff --git a/airbyte-integrations/connectors/source-linnworks/source_linnworks/run.py b/airbyte-integrations/connectors/source-linnworks/source_linnworks/run.py new file mode 100644 index 000000000000..d08e84e3ae6c --- /dev/null +++ b/airbyte-integrations/connectors/source-linnworks/source_linnworks/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_linnworks import SourceLinnworks + + +def run(): + source = SourceLinnworks() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-lokalise/main.py b/airbyte-integrations/connectors/source-lokalise/main.py index 4d4423bbe36a..d02dfd231989 100644 --- a/airbyte-integrations/connectors/source-lokalise/main.py +++ b/airbyte-integrations/connectors/source-lokalise/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_lokalise import SourceLokalise +from source_lokalise.run import run if __name__ == "__main__": - source = SourceLokalise() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-lokalise/setup.py b/airbyte-integrations/connectors/source-lokalise/setup.py index 69d13c0b79f0..b2a8b5b467ec 100644 --- a/airbyte-integrations/connectors/source-lokalise/setup.py +++ b/airbyte-integrations/connectors/source-lokalise/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-lokalise=source_lokalise.run:run", + ], + }, name="source_lokalise", description="Source implementation for Lokalise.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-lokalise/source_lokalise/run.py b/airbyte-integrations/connectors/source-lokalise/source_lokalise/run.py new file mode 100644 index 000000000000..21002eb93fee --- /dev/null +++ b/airbyte-integrations/connectors/source-lokalise/source_lokalise/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_lokalise import SourceLokalise + + +def run(): + source = SourceLokalise() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-looker/main.py b/airbyte-integrations/connectors/source-looker/main.py index dee0fd4beb4e..b6164cb0322b 100644 --- a/airbyte-integrations/connectors/source-looker/main.py +++ b/airbyte-integrations/connectors/source-looker/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_looker import SourceLooker +from source_looker.run import run if __name__ == "__main__": - source = SourceLooker() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-looker/setup.py b/airbyte-integrations/connectors/source-looker/setup.py index f38fc2a1095e..dc5e3295ad40 100644 --- a/airbyte-integrations/connectors/source-looker/setup.py +++ b/airbyte-integrations/connectors/source-looker/setup.py @@ -20,6 +20,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-looker=source_looker.run:run", + ], + }, name="source_looker", description="Source implementation for Looker.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-looker/source_looker/run.py b/airbyte-integrations/connectors/source-looker/source_looker/run.py new file mode 100644 index 000000000000..53aaad83ea7f --- /dev/null +++ b/airbyte-integrations/connectors/source-looker/source_looker/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_looker import SourceLooker + + +def run(): + source = SourceLooker() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-mailerlite/main.py b/airbyte-integrations/connectors/source-mailerlite/main.py index 9c906a15e012..1f2347a95e63 100644 --- a/airbyte-integrations/connectors/source-mailerlite/main.py +++ b/airbyte-integrations/connectors/source-mailerlite/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_mailerlite import SourceMailerlite +from source_mailerlite.run import run if __name__ == "__main__": - source = SourceMailerlite() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-mailerlite/setup.py b/airbyte-integrations/connectors/source-mailerlite/setup.py index 5b49cb1a5d31..71fc89f1f56a 100644 --- a/airbyte-integrations/connectors/source-mailerlite/setup.py +++ b/airbyte-integrations/connectors/source-mailerlite/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-mailerlite=source_mailerlite.run:run", + ], + }, name="source_mailerlite", description="Source implementation for Mailerlite.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-mailerlite/source_mailerlite/run.py b/airbyte-integrations/connectors/source-mailerlite/source_mailerlite/run.py new file mode 100644 index 000000000000..c1c7548459e5 --- /dev/null +++ b/airbyte-integrations/connectors/source-mailerlite/source_mailerlite/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_mailerlite import SourceMailerlite + + +def run(): + source = SourceMailerlite() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-mailersend/main.py b/airbyte-integrations/connectors/source-mailersend/main.py index 8b72a409be46..9afae9104c15 100644 --- a/airbyte-integrations/connectors/source-mailersend/main.py +++ b/airbyte-integrations/connectors/source-mailersend/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_mailersend import SourceMailersend +from source_mailersend.run import run if __name__ == "__main__": - source = SourceMailersend() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-mailersend/setup.py b/airbyte-integrations/connectors/source-mailersend/setup.py index 8fc9c7d2bdbc..33d180e17b8f 100644 --- a/airbyte-integrations/connectors/source-mailersend/setup.py +++ b/airbyte-integrations/connectors/source-mailersend/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-mailersend=source_mailersend.run:run", + ], + }, name="source_mailersend", description="Source implementation for Mailersend.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-mailersend/source_mailersend/run.py b/airbyte-integrations/connectors/source-mailersend/source_mailersend/run.py new file mode 100644 index 000000000000..ddc9feff24b4 --- /dev/null +++ b/airbyte-integrations/connectors/source-mailersend/source_mailersend/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_mailersend import SourceMailersend + + +def run(): + source = SourceMailersend() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-mailgun/main.py b/airbyte-integrations/connectors/source-mailgun/main.py index bffb131e2745..ee1ad2379837 100644 --- a/airbyte-integrations/connectors/source-mailgun/main.py +++ b/airbyte-integrations/connectors/source-mailgun/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_mailgun import SourceMailgun +from source_mailgun.run import run if __name__ == "__main__": - source = SourceMailgun() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-mailgun/setup.py b/airbyte-integrations/connectors/source-mailgun/setup.py index f7661245f2fd..616448f500d5 100644 --- a/airbyte-integrations/connectors/source-mailgun/setup.py +++ b/airbyte-integrations/connectors/source-mailgun/setup.py @@ -15,13 +15,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-mailgun=source_mailgun.run:run", + ], + }, name="source_mailgun", description="Source implementation for Mailgun.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-mailgun/source_mailgun/run.py b/airbyte-integrations/connectors/source-mailgun/source_mailgun/run.py new file mode 100644 index 000000000000..6cda7fec6e71 --- /dev/null +++ b/airbyte-integrations/connectors/source-mailgun/source_mailgun/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_mailgun import SourceMailgun + + +def run(): + source = SourceMailgun() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-mailjet-mail/main.py b/airbyte-integrations/connectors/source-mailjet-mail/main.py index 46dc79c4b5f7..5d8c4b9df24e 100644 --- a/airbyte-integrations/connectors/source-mailjet-mail/main.py +++ b/airbyte-integrations/connectors/source-mailjet-mail/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_mailjet_mail import SourceMailjetMail +from source_mailjet_mail.run import run if __name__ == "__main__": - source = SourceMailjetMail() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-mailjet-mail/setup.py b/airbyte-integrations/connectors/source-mailjet-mail/setup.py index 5f6daf3cdc2b..ea60824d3a2c 100644 --- a/airbyte-integrations/connectors/source-mailjet-mail/setup.py +++ b/airbyte-integrations/connectors/source-mailjet-mail/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-mailjet-mail=source_mailjet_mail.run:run", + ], + }, name="source_mailjet_mail", description="Source implementation for Mailjet Mail.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-mailjet-mail/source_mailjet_mail/run.py b/airbyte-integrations/connectors/source-mailjet-mail/source_mailjet_mail/run.py new file mode 100644 index 000000000000..87dcd7ecc198 --- /dev/null +++ b/airbyte-integrations/connectors/source-mailjet-mail/source_mailjet_mail/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_mailjet_mail import SourceMailjetMail + + +def run(): + source = SourceMailjetMail() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-mailjet-sms/main.py b/airbyte-integrations/connectors/source-mailjet-sms/main.py index 7dfd0868672e..52420c275761 100644 --- a/airbyte-integrations/connectors/source-mailjet-sms/main.py +++ b/airbyte-integrations/connectors/source-mailjet-sms/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_mailjet_sms import SourceMailjetSms +from source_mailjet_sms.run import run if __name__ == "__main__": - source = SourceMailjetSms() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-mailjet-sms/setup.py b/airbyte-integrations/connectors/source-mailjet-sms/setup.py index 7edfd5e35e8e..6b4be21374cc 100644 --- a/airbyte-integrations/connectors/source-mailjet-sms/setup.py +++ b/airbyte-integrations/connectors/source-mailjet-sms/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-mailjet-sms=source_mailjet_sms.run:run", + ], + }, name="source_mailjet_sms", description="Source implementation for Mailjet Sms.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-mailjet-sms/source_mailjet_sms/run.py b/airbyte-integrations/connectors/source-mailjet-sms/source_mailjet_sms/run.py new file mode 100644 index 000000000000..a8568fdb2f68 --- /dev/null +++ b/airbyte-integrations/connectors/source-mailjet-sms/source_mailjet_sms/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_mailjet_sms import SourceMailjetSms + + +def run(): + source = SourceMailjetSms() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-merge/main.py b/airbyte-integrations/connectors/source-merge/main.py index 53420fa4b3c1..694c83302b0b 100644 --- a/airbyte-integrations/connectors/source-merge/main.py +++ b/airbyte-integrations/connectors/source-merge/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_merge import SourceMerge +from source_merge.run import run if __name__ == "__main__": - source = SourceMerge() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-merge/setup.py b/airbyte-integrations/connectors/source-merge/setup.py index aa45d3bdc5e2..b403aa227f4c 100644 --- a/airbyte-integrations/connectors/source-merge/setup.py +++ b/airbyte-integrations/connectors/source-merge/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-merge=source_merge.run:run", + ], + }, name="source_merge", description="Source implementation for Merge.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-merge/source_merge/run.py b/airbyte-integrations/connectors/source-merge/source_merge/run.py new file mode 100644 index 000000000000..63187bee4753 --- /dev/null +++ b/airbyte-integrations/connectors/source-merge/source_merge/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_merge import SourceMerge + + +def run(): + source = SourceMerge() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-metabase/main.py b/airbyte-integrations/connectors/source-metabase/main.py index aeaaab111542..1e571d2ddb48 100644 --- a/airbyte-integrations/connectors/source-metabase/main.py +++ b/airbyte-integrations/connectors/source-metabase/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_metabase import SourceMetabase +from source_metabase.run import run if __name__ == "__main__": - source = SourceMetabase() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-metabase/setup.py b/airbyte-integrations/connectors/source-metabase/setup.py index 228d443e50e2..e6772737da24 100644 --- a/airbyte-integrations/connectors/source-metabase/setup.py +++ b/airbyte-integrations/connectors/source-metabase/setup.py @@ -15,13 +15,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-metabase=source_metabase.run:run", + ], + }, name="source_metabase", description="Source implementation for Metabase.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-metabase/source_metabase/run.py b/airbyte-integrations/connectors/source-metabase/source_metabase/run.py new file mode 100644 index 000000000000..90df278478af --- /dev/null +++ b/airbyte-integrations/connectors/source-metabase/source_metabase/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_metabase import SourceMetabase + + +def run(): + source = SourceMetabase() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-microsoft-dataverse/main.py b/airbyte-integrations/connectors/source-microsoft-dataverse/main.py index 7cf530c14f54..88b4cf3808e8 100644 --- a/airbyte-integrations/connectors/source-microsoft-dataverse/main.py +++ b/airbyte-integrations/connectors/source-microsoft-dataverse/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_microsoft_dataverse import SourceMicrosoftDataverse +from source_microsoft_dataverse.run import run if __name__ == "__main__": - source = SourceMicrosoftDataverse() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-microsoft-dataverse/setup.py b/airbyte-integrations/connectors/source-microsoft-dataverse/setup.py index e86306c30138..57920ae5cd4a 100644 --- a/airbyte-integrations/connectors/source-microsoft-dataverse/setup.py +++ b/airbyte-integrations/connectors/source-microsoft-dataverse/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-microsoft-dataverse=source_microsoft_dataverse.run:run", + ], + }, name="source_microsoft_dataverse", description="Source implementation for Microsoft Dataverse.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-microsoft-dataverse/source_microsoft_dataverse/run.py b/airbyte-integrations/connectors/source-microsoft-dataverse/source_microsoft_dataverse/run.py new file mode 100644 index 000000000000..b5e6982f7292 --- /dev/null +++ b/airbyte-integrations/connectors/source-microsoft-dataverse/source_microsoft_dataverse/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_microsoft_dataverse import SourceMicrosoftDataverse + + +def run(): + source = SourceMicrosoftDataverse() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-microsoft-onedrive/main.py b/airbyte-integrations/connectors/source-microsoft-onedrive/main.py index 205effefe600..c9280337d108 100644 --- a/airbyte-integrations/connectors/source-microsoft-onedrive/main.py +++ b/airbyte-integrations/connectors/source-microsoft-onedrive/main.py @@ -2,15 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk import AirbyteEntrypoint -from airbyte_cdk.entrypoint import launch -from source_microsoft_onedrive import SourceMicrosoftOneDrive +from source_microsoft_onedrive.run import run if __name__ == "__main__": - args = sys.argv[1:] - catalog_path = AirbyteEntrypoint.extract_catalog(args) - source = SourceMicrosoftOneDrive(catalog_path) - launch(source, args) + run() diff --git a/airbyte-integrations/connectors/source-microsoft-onedrive/setup.py b/airbyte-integrations/connectors/source-microsoft-onedrive/setup.py index c8ed1601ac4e..8709208c5be2 100644 --- a/airbyte-integrations/connectors/source-microsoft-onedrive/setup.py +++ b/airbyte-integrations/connectors/source-microsoft-onedrive/setup.py @@ -19,13 +19,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-microsoft-onedrive=source_microsoft_onedrive.run:run", + ], + }, name="source_microsoft_onedrive", description="Source implementation for Microsoft OneDrive.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-microsoft-onedrive/source_microsoft_onedrive/run.py b/airbyte-integrations/connectors/source-microsoft-onedrive/source_microsoft_onedrive/run.py new file mode 100644 index 000000000000..2141089780b9 --- /dev/null +++ b/airbyte-integrations/connectors/source-microsoft-onedrive/source_microsoft_onedrive/run.py @@ -0,0 +1,17 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk import AirbyteEntrypoint +from airbyte_cdk.entrypoint import launch +from source_microsoft_onedrive import SourceMicrosoftOneDrive + + +def run(): + args = sys.argv[1:] + catalog_path = AirbyteEntrypoint.extract_catalog(args) + source = SourceMicrosoftOneDrive(catalog_path) + launch(source, args) diff --git a/airbyte-integrations/connectors/source-microsoft-teams/main.py b/airbyte-integrations/connectors/source-microsoft-teams/main.py index c8bc03c5deea..213b13e85ee5 100644 --- a/airbyte-integrations/connectors/source-microsoft-teams/main.py +++ b/airbyte-integrations/connectors/source-microsoft-teams/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_microsoft_teams import SourceMicrosoftTeams +from source_microsoft_teams.run import run if __name__ == "__main__": - source = SourceMicrosoftTeams() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-microsoft-teams/setup.py b/airbyte-integrations/connectors/source-microsoft-teams/setup.py index 6cc04d3f3b07..f840cc27859a 100644 --- a/airbyte-integrations/connectors/source-microsoft-teams/setup.py +++ b/airbyte-integrations/connectors/source-microsoft-teams/setup.py @@ -19,6 +19,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-microsoft-teams=source_microsoft_teams.run:run", + ], + }, name="source_microsoft_teams", description="Source implementation for Microsoft Teams.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-microsoft-teams/source_microsoft_teams/run.py b/airbyte-integrations/connectors/source-microsoft-teams/source_microsoft_teams/run.py new file mode 100644 index 000000000000..f22e12386ac7 --- /dev/null +++ b/airbyte-integrations/connectors/source-microsoft-teams/source_microsoft_teams/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_microsoft_teams import SourceMicrosoftTeams + + +def run(): + source = SourceMicrosoftTeams() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-monday/main.py b/airbyte-integrations/connectors/source-monday/main.py index 6fec8ed55e58..14f4fa2d0439 100644 --- a/airbyte-integrations/connectors/source-monday/main.py +++ b/airbyte-integrations/connectors/source-monday/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_monday import SourceMonday +from source_monday.run import run if __name__ == "__main__": - source = SourceMonday() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-monday/setup.py b/airbyte-integrations/connectors/source-monday/setup.py index 4af4bd4dac1c..c99ddb8f0ed0 100644 --- a/airbyte-integrations/connectors/source-monday/setup.py +++ b/airbyte-integrations/connectors/source-monday/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-monday=source_monday.run:run", + ], + }, name="source_monday", description="Source implementation for Monday.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-monday/source_monday/run.py b/airbyte-integrations/connectors/source-monday/source_monday/run.py new file mode 100644 index 000000000000..9ef2d048d213 --- /dev/null +++ b/airbyte-integrations/connectors/source-monday/source_monday/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_monday import SourceMonday + + +def run(): + source = SourceMonday() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-my-hours/main.py b/airbyte-integrations/connectors/source-my-hours/main.py index 050526fca166..d4e838cb4810 100644 --- a/airbyte-integrations/connectors/source-my-hours/main.py +++ b/airbyte-integrations/connectors/source-my-hours/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_my_hours import SourceMyHours +from source_my_hours.run import run if __name__ == "__main__": - source = SourceMyHours() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-my-hours/setup.py b/airbyte-integrations/connectors/source-my-hours/setup.py index eb4d9a7c9734..4e8a87ce39ed 100644 --- a/airbyte-integrations/connectors/source-my-hours/setup.py +++ b/airbyte-integrations/connectors/source-my-hours/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-my-hours=source_my_hours.run:run", + ], + }, name="source_my_hours", description="Source implementation for My Hours.", author="Wisse Jelgersma", diff --git a/airbyte-integrations/connectors/source-my-hours/source_my_hours/run.py b/airbyte-integrations/connectors/source-my-hours/source_my_hours/run.py new file mode 100644 index 000000000000..adad265e0bac --- /dev/null +++ b/airbyte-integrations/connectors/source-my-hours/source_my_hours/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_my_hours import SourceMyHours + + +def run(): + source = SourceMyHours() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-n8n/main.py b/airbyte-integrations/connectors/source-n8n/main.py index 0762610cb5f1..b40f7c348752 100644 --- a/airbyte-integrations/connectors/source-n8n/main.py +++ b/airbyte-integrations/connectors/source-n8n/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_n8n import SourceN8n +from source_n8n.run import run if __name__ == "__main__": - source = SourceN8n() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-n8n/setup.py b/airbyte-integrations/connectors/source-n8n/setup.py index 82cdff7f8589..3592a5b8939f 100644 --- a/airbyte-integrations/connectors/source-n8n/setup.py +++ b/airbyte-integrations/connectors/source-n8n/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-n8n=source_n8n.run:run", + ], + }, name="source_n8n", description="Source implementation for N8n.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-n8n/source_n8n/run.py b/airbyte-integrations/connectors/source-n8n/source_n8n/run.py new file mode 100644 index 000000000000..04f48f6c0696 --- /dev/null +++ b/airbyte-integrations/connectors/source-n8n/source_n8n/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_n8n import SourceN8n + + +def run(): + source = SourceN8n() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-nasa/main.py b/airbyte-integrations/connectors/source-nasa/main.py index c1627273e227..5887db860888 100644 --- a/airbyte-integrations/connectors/source-nasa/main.py +++ b/airbyte-integrations/connectors/source-nasa/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_nasa import SourceNasa +from source_nasa.run import run if __name__ == "__main__": - source = SourceNasa() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-nasa/setup.py b/airbyte-integrations/connectors/source-nasa/setup.py index ecd81e7b2fd4..849b81fce45d 100644 --- a/airbyte-integrations/connectors/source-nasa/setup.py +++ b/airbyte-integrations/connectors/source-nasa/setup.py @@ -10,13 +10,30 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.2", "pytest-mock~=3.6.1"] setup( + entry_points={ + "console_scripts": [ + "source-nasa=source_nasa.run:run", + ], + }, name="source_nasa", description="Source implementation for Nasa.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-nasa/source_nasa/run.py b/airbyte-integrations/connectors/source-nasa/source_nasa/run.py new file mode 100644 index 000000000000..6b14f0280427 --- /dev/null +++ b/airbyte-integrations/connectors/source-nasa/source_nasa/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_nasa import SourceNasa + + +def run(): + source = SourceNasa() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-netsuite/main.py b/airbyte-integrations/connectors/source-netsuite/main.py index 7b88a055cfe2..492266da15e2 100644 --- a/airbyte-integrations/connectors/source-netsuite/main.py +++ b/airbyte-integrations/connectors/source-netsuite/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_netsuite import SourceNetsuite +from source_netsuite.run import run if __name__ == "__main__": - source = SourceNetsuite() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-netsuite/setup.py b/airbyte-integrations/connectors/source-netsuite/setup.py index 42288908347c..e16d4d5b270f 100644 --- a/airbyte-integrations/connectors/source-netsuite/setup.py +++ b/airbyte-integrations/connectors/source-netsuite/setup.py @@ -17,13 +17,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-netsuite=source_netsuite.run:run", + ], + }, name="source_netsuite", description="Source implementation for Netsuite Soap.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-netsuite/source_netsuite/run.py b/airbyte-integrations/connectors/source-netsuite/source_netsuite/run.py new file mode 100644 index 000000000000..c1a2043c455d --- /dev/null +++ b/airbyte-integrations/connectors/source-netsuite/source_netsuite/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_netsuite import SourceNetsuite + + +def run(): + source = SourceNetsuite() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-news-api/main.py b/airbyte-integrations/connectors/source-news-api/main.py index 0b2c02a55247..835032115f02 100644 --- a/airbyte-integrations/connectors/source-news-api/main.py +++ b/airbyte-integrations/connectors/source-news-api/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_news_api import SourceNewsApi +from source_news_api.run import run if __name__ == "__main__": - source = SourceNewsApi() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-news-api/setup.py b/airbyte-integrations/connectors/source-news-api/setup.py index 733fc131e9ab..db15b71d90fa 100644 --- a/airbyte-integrations/connectors/source-news-api/setup.py +++ b/airbyte-integrations/connectors/source-news-api/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-news-api=source_news_api.run:run", + ], + }, name="source_news_api", description="Source implementation for News Api.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-news-api/source_news_api/run.py b/airbyte-integrations/connectors/source-news-api/source_news_api/run.py new file mode 100644 index 000000000000..188ce3f53c6f --- /dev/null +++ b/airbyte-integrations/connectors/source-news-api/source_news_api/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_news_api import SourceNewsApi + + +def run(): + source = SourceNewsApi() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-newsdata/main.py b/airbyte-integrations/connectors/source-newsdata/main.py index 2f7c8b1ecbac..81dc024c6fb2 100644 --- a/airbyte-integrations/connectors/source-newsdata/main.py +++ b/airbyte-integrations/connectors/source-newsdata/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_newsdata import SourceNewsdata +from source_newsdata.run import run if __name__ == "__main__": - source = SourceNewsdata() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-newsdata/setup.py b/airbyte-integrations/connectors/source-newsdata/setup.py index a7bc19daa4ba..55b34a9fb708 100644 --- a/airbyte-integrations/connectors/source-newsdata/setup.py +++ b/airbyte-integrations/connectors/source-newsdata/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-newsdata=source_newsdata.run:run", + ], + }, name="source_newsdata", description="Source implementation for Newsdata.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-newsdata/source_newsdata/run.py b/airbyte-integrations/connectors/source-newsdata/source_newsdata/run.py new file mode 100644 index 000000000000..2cdae722bfb0 --- /dev/null +++ b/airbyte-integrations/connectors/source-newsdata/source_newsdata/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_newsdata import SourceNewsdata + + +def run(): + source = SourceNewsdata() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-notion/main.py b/airbyte-integrations/connectors/source-notion/main.py index dd188d547982..671d6cd692fa 100644 --- a/airbyte-integrations/connectors/source-notion/main.py +++ b/airbyte-integrations/connectors/source-notion/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_notion import SourceNotion +from source_notion.run import run if __name__ == "__main__": - source = SourceNotion() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-notion/setup.py b/airbyte-integrations/connectors/source-notion/setup.py index 80a1ed81533f..d31dfbbdeee3 100644 --- a/airbyte-integrations/connectors/source-notion/setup.py +++ b/airbyte-integrations/connectors/source-notion/setup.py @@ -18,6 +18,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-notion=source_notion.run:run", + ], + }, name="source_notion", description="Source implementation for Notion.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-notion/source_notion/run.py b/airbyte-integrations/connectors/source-notion/source_notion/run.py new file mode 100644 index 000000000000..df14df5ee9e4 --- /dev/null +++ b/airbyte-integrations/connectors/source-notion/source_notion/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_notion import SourceNotion + + +def run(): + source = SourceNotion() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-nytimes/main.py b/airbyte-integrations/connectors/source-nytimes/main.py index b3e9d432ee28..ed513aa4248e 100644 --- a/airbyte-integrations/connectors/source-nytimes/main.py +++ b/airbyte-integrations/connectors/source-nytimes/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_nytimes import SourceNytimes +from source_nytimes.run import run if __name__ == "__main__": - source = SourceNytimes() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-nytimes/setup.py b/airbyte-integrations/connectors/source-nytimes/setup.py index ae57a1144c9f..6c0cc1d179b5 100644 --- a/airbyte-integrations/connectors/source-nytimes/setup.py +++ b/airbyte-integrations/connectors/source-nytimes/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-nytimes=source_nytimes.run:run", + ], + }, name="source_nytimes", description="Source implementation for Nytimes.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-nytimes/source_nytimes/run.py b/airbyte-integrations/connectors/source-nytimes/source_nytimes/run.py new file mode 100644 index 000000000000..ef4ddbd555e5 --- /dev/null +++ b/airbyte-integrations/connectors/source-nytimes/source_nytimes/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_nytimes import SourceNytimes + + +def run(): + source = SourceNytimes() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-okta/main.py b/airbyte-integrations/connectors/source-okta/main.py index 93c853b816f5..488cb6ca1b6f 100644 --- a/airbyte-integrations/connectors/source-okta/main.py +++ b/airbyte-integrations/connectors/source-okta/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_okta import SourceOkta +from source_okta.run import run if __name__ == "__main__": - source = SourceOkta() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-okta/setup.py b/airbyte-integrations/connectors/source-okta/setup.py index a3fac533b39e..1a15dc58fd47 100644 --- a/airbyte-integrations/connectors/source-okta/setup.py +++ b/airbyte-integrations/connectors/source-okta/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-okta=source_okta.run:run", + ], + }, name="source_okta", description="Source implementation for Okta.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-okta/source_okta/run.py b/airbyte-integrations/connectors/source-okta/source_okta/run.py new file mode 100644 index 000000000000..f40c87dc0e37 --- /dev/null +++ b/airbyte-integrations/connectors/source-okta/source_okta/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_okta import SourceOkta + + +def run(): + source = SourceOkta() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-omnisend/main.py b/airbyte-integrations/connectors/source-omnisend/main.py index 01c8cb75e133..bf2d072e4c00 100644 --- a/airbyte-integrations/connectors/source-omnisend/main.py +++ b/airbyte-integrations/connectors/source-omnisend/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_omnisend import SourceOmnisend +from source_omnisend.run import run if __name__ == "__main__": - source = SourceOmnisend() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-omnisend/setup.py b/airbyte-integrations/connectors/source-omnisend/setup.py index 653728e512b5..990506f80f9b 100644 --- a/airbyte-integrations/connectors/source-omnisend/setup.py +++ b/airbyte-integrations/connectors/source-omnisend/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-omnisend=source_omnisend.run:run", + ], + }, name="source_omnisend", description="Source implementation for Omnisend.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-omnisend/source_omnisend/run.py b/airbyte-integrations/connectors/source-omnisend/source_omnisend/run.py new file mode 100644 index 000000000000..46479c299f0a --- /dev/null +++ b/airbyte-integrations/connectors/source-omnisend/source_omnisend/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_omnisend import SourceOmnisend + + +def run(): + source = SourceOmnisend() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-onesignal/main.py b/airbyte-integrations/connectors/source-onesignal/main.py index ccff041b46e3..e735cf13bacb 100644 --- a/airbyte-integrations/connectors/source-onesignal/main.py +++ b/airbyte-integrations/connectors/source-onesignal/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_onesignal import SourceOnesignal +from source_onesignal.run import run if __name__ == "__main__": - source = SourceOnesignal() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-onesignal/setup.py b/airbyte-integrations/connectors/source-onesignal/setup.py index 47af71852c6a..aac6704b131b 100644 --- a/airbyte-integrations/connectors/source-onesignal/setup.py +++ b/airbyte-integrations/connectors/source-onesignal/setup.py @@ -12,13 +12,30 @@ TEST_REQUIREMENTS = ["pytest~=6.2", "pytest-mock~=3.6.1", "connector-acceptance-test"] setup( + entry_points={ + "console_scripts": [ + "source-onesignal=source_onesignal.run:run", + ], + }, name="source_onesignal", description="Source implementation for Onesignal.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-onesignal/source_onesignal/run.py b/airbyte-integrations/connectors/source-onesignal/source_onesignal/run.py new file mode 100644 index 000000000000..e5690d762c47 --- /dev/null +++ b/airbyte-integrations/connectors/source-onesignal/source_onesignal/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_onesignal import SourceOnesignal + + +def run(): + source = SourceOnesignal() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-open-exchange-rates/main.py b/airbyte-integrations/connectors/source-open-exchange-rates/main.py index b311cb841f61..6223dbf6da8f 100644 --- a/airbyte-integrations/connectors/source-open-exchange-rates/main.py +++ b/airbyte-integrations/connectors/source-open-exchange-rates/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_open_exchange_rates import SourceOpenExchangeRates +from source_open_exchange_rates.run import run if __name__ == "__main__": - source = SourceOpenExchangeRates() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-open-exchange-rates/setup.py b/airbyte-integrations/connectors/source-open-exchange-rates/setup.py index 55fd4589213f..4b12738562df 100644 --- a/airbyte-integrations/connectors/source-open-exchange-rates/setup.py +++ b/airbyte-integrations/connectors/source-open-exchange-rates/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-open-exchange-rates=source_open_exchange_rates.run:run", + ], + }, name="source_open_exchange_rates", description="Source implementation for Open Exchange Rates.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-open-exchange-rates/source_open_exchange_rates/run.py b/airbyte-integrations/connectors/source-open-exchange-rates/source_open_exchange_rates/run.py new file mode 100644 index 000000000000..b2d83005c0ed --- /dev/null +++ b/airbyte-integrations/connectors/source-open-exchange-rates/source_open_exchange_rates/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_open_exchange_rates import SourceOpenExchangeRates + + +def run(): + source = SourceOpenExchangeRates() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-openweather/main.py b/airbyte-integrations/connectors/source-openweather/main.py index 398948d54171..381fb38ae2dc 100644 --- a/airbyte-integrations/connectors/source-openweather/main.py +++ b/airbyte-integrations/connectors/source-openweather/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_openweather import SourceOpenweather +from source_openweather.run import run if __name__ == "__main__": - source = SourceOpenweather() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-openweather/setup.py b/airbyte-integrations/connectors/source-openweather/setup.py index fd32d0604449..2f978664b057 100644 --- a/airbyte-integrations/connectors/source-openweather/setup.py +++ b/airbyte-integrations/connectors/source-openweather/setup.py @@ -17,13 +17,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-openweather=source_openweather.run:run", + ], + }, name="source_openweather", description="Source implementation for Openweather.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-openweather/source_openweather/run.py b/airbyte-integrations/connectors/source-openweather/source_openweather/run.py new file mode 100644 index 000000000000..f18939c72eb2 --- /dev/null +++ b/airbyte-integrations/connectors/source-openweather/source_openweather/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_openweather import SourceOpenweather + + +def run(): + source = SourceOpenweather() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-opsgenie/main.py b/airbyte-integrations/connectors/source-opsgenie/main.py index 0acd6dee136d..4f5798deffe1 100644 --- a/airbyte-integrations/connectors/source-opsgenie/main.py +++ b/airbyte-integrations/connectors/source-opsgenie/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_opsgenie import SourceOpsgenie +from source_opsgenie.run import run if __name__ == "__main__": - source = SourceOpsgenie() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-opsgenie/setup.py b/airbyte-integrations/connectors/source-opsgenie/setup.py index 48fa326b15b9..4bf256910f2b 100644 --- a/airbyte-integrations/connectors/source-opsgenie/setup.py +++ b/airbyte-integrations/connectors/source-opsgenie/setup.py @@ -15,13 +15,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-opsgenie=source_opsgenie.run:run", + ], + }, name="source_opsgenie", description="Source implementation for Opsgenie.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-opsgenie/source_opsgenie/run.py b/airbyte-integrations/connectors/source-opsgenie/source_opsgenie/run.py new file mode 100644 index 000000000000..63e0eb89c264 --- /dev/null +++ b/airbyte-integrations/connectors/source-opsgenie/source_opsgenie/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_opsgenie import SourceOpsgenie + + +def run(): + source = SourceOpsgenie() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-orb/main.py b/airbyte-integrations/connectors/source-orb/main.py index 08c8985a056a..725dc3553298 100644 --- a/airbyte-integrations/connectors/source-orb/main.py +++ b/airbyte-integrations/connectors/source-orb/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_orb import SourceOrb +from source_orb.run import run if __name__ == "__main__": - source = SourceOrb() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-orb/setup.py b/airbyte-integrations/connectors/source-orb/setup.py index 38e64fa19ee1..68f05af00a2c 100644 --- a/airbyte-integrations/connectors/source-orb/setup.py +++ b/airbyte-integrations/connectors/source-orb/setup.py @@ -10,6 +10,11 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.1", "pytest-mock~=3.6.1", "responses~=0.13.3", "pendulum==2.1.2"] setup( + entry_points={ + "console_scripts": [ + "source-orb=source_orb.run:run", + ], + }, name="source_orb", description="Source implementation for Orb.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-orb/source_orb/run.py b/airbyte-integrations/connectors/source-orb/source_orb/run.py new file mode 100644 index 000000000000..05f19468aac9 --- /dev/null +++ b/airbyte-integrations/connectors/source-orb/source_orb/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_orb import SourceOrb + + +def run(): + source = SourceOrb() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-orbit/main.py b/airbyte-integrations/connectors/source-orbit/main.py index 82e25dd0caa5..16b6891a52b6 100644 --- a/airbyte-integrations/connectors/source-orbit/main.py +++ b/airbyte-integrations/connectors/source-orbit/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_orbit import SourceOrbit +from source_orbit.run import run if __name__ == "__main__": - source = SourceOrbit() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-orbit/setup.py b/airbyte-integrations/connectors/source-orbit/setup.py index ae8d7e9b1c8b..9ca2a1394b2a 100644 --- a/airbyte-integrations/connectors/source-orbit/setup.py +++ b/airbyte-integrations/connectors/source-orbit/setup.py @@ -10,13 +10,30 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.2", "pytest-mock~=3.6.1"] setup( + entry_points={ + "console_scripts": [ + "source-orbit=source_orbit.run:run", + ], + }, name="source_orbit", description="Source implementation for Orbit.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-orbit/source_orbit/run.py b/airbyte-integrations/connectors/source-orbit/source_orbit/run.py new file mode 100644 index 000000000000..593cfb9a326a --- /dev/null +++ b/airbyte-integrations/connectors/source-orbit/source_orbit/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_orbit import SourceOrbit + + +def run(): + source = SourceOrbit() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-oura/main.py b/airbyte-integrations/connectors/source-oura/main.py index 35f15399d958..f72173126bd0 100644 --- a/airbyte-integrations/connectors/source-oura/main.py +++ b/airbyte-integrations/connectors/source-oura/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_oura import SourceOura +from source_oura.run import run if __name__ == "__main__": - source = SourceOura() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-oura/setup.py b/airbyte-integrations/connectors/source-oura/setup.py index b78b256c87fb..36e29e32605c 100644 --- a/airbyte-integrations/connectors/source-oura/setup.py +++ b/airbyte-integrations/connectors/source-oura/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-oura=source_oura.run:run", + ], + }, name="source_oura", description="Source implementation for Oura.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-oura/source_oura/run.py b/airbyte-integrations/connectors/source-oura/source_oura/run.py new file mode 100644 index 000000000000..af46311895fb --- /dev/null +++ b/airbyte-integrations/connectors/source-oura/source_oura/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_oura import SourceOura + + +def run(): + source = SourceOura() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-outbrain-amplify/main.py b/airbyte-integrations/connectors/source-outbrain-amplify/main.py index 2f2acbc0b627..dc58d39d5bcd 100644 --- a/airbyte-integrations/connectors/source-outbrain-amplify/main.py +++ b/airbyte-integrations/connectors/source-outbrain-amplify/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_outbrain_amplify import SourceOutbrainAmplify +from source_outbrain_amplify.run import run if __name__ == "__main__": - source = SourceOutbrainAmplify() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-outbrain-amplify/setup.py b/airbyte-integrations/connectors/source-outbrain-amplify/setup.py index d8b5563f3dce..f4f709b99a49 100644 --- a/airbyte-integrations/connectors/source-outbrain-amplify/setup.py +++ b/airbyte-integrations/connectors/source-outbrain-amplify/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-outbrain-amplify=source_outbrain_amplify.run:run", + ], + }, name="source_outbrain_amplify", description="Source implementation for Outbrain Amplify.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-outbrain-amplify/source_outbrain_amplify/run.py b/airbyte-integrations/connectors/source-outbrain-amplify/source_outbrain_amplify/run.py new file mode 100644 index 000000000000..8f90ae8e0469 --- /dev/null +++ b/airbyte-integrations/connectors/source-outbrain-amplify/source_outbrain_amplify/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_outbrain_amplify import SourceOutbrainAmplify + + +def run(): + source = SourceOutbrainAmplify() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-outreach/main.py b/airbyte-integrations/connectors/source-outreach/main.py index 77394c375d03..9ad460e89200 100644 --- a/airbyte-integrations/connectors/source-outreach/main.py +++ b/airbyte-integrations/connectors/source-outreach/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_outreach import SourceOutreach +from source_outreach.run import run if __name__ == "__main__": - source = SourceOutreach() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-outreach/setup.py b/airbyte-integrations/connectors/source-outreach/setup.py index 2367148b8d73..dc15e76330f8 100644 --- a/airbyte-integrations/connectors/source-outreach/setup.py +++ b/airbyte-integrations/connectors/source-outreach/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-outreach=source_outreach.run:run", + ], + }, name="source_outreach", description="Source implementation for Outreach.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-outreach/source_outreach/run.py b/airbyte-integrations/connectors/source-outreach/source_outreach/run.py new file mode 100644 index 000000000000..2d48fe0806cd --- /dev/null +++ b/airbyte-integrations/connectors/source-outreach/source_outreach/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_outreach import SourceOutreach + + +def run(): + source = SourceOutreach() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-pagerduty/main.py b/airbyte-integrations/connectors/source-pagerduty/main.py index 61d193268f6b..22537946cc8c 100644 --- a/airbyte-integrations/connectors/source-pagerduty/main.py +++ b/airbyte-integrations/connectors/source-pagerduty/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_pagerduty import SourcePagerduty +from source_pagerduty.run import run if __name__ == "__main__": - source = SourcePagerduty() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-pagerduty/setup.py b/airbyte-integrations/connectors/source-pagerduty/setup.py index aec396ac036d..cba7caa9d5bd 100644 --- a/airbyte-integrations/connectors/source-pagerduty/setup.py +++ b/airbyte-integrations/connectors/source-pagerduty/setup.py @@ -14,13 +14,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-pagerduty=source_pagerduty.run:run", + ], + }, name="source_pagerduty", description="Source implementation for Pagerduty.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-pagerduty/source_pagerduty/run.py b/airbyte-integrations/connectors/source-pagerduty/source_pagerduty/run.py new file mode 100644 index 000000000000..f73afe9c6592 --- /dev/null +++ b/airbyte-integrations/connectors/source-pagerduty/source_pagerduty/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_pagerduty import SourcePagerduty + + +def run(): + source = SourcePagerduty() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-pardot/main.py b/airbyte-integrations/connectors/source-pardot/main.py index 8158c5fc7d66..6112e4e13e27 100644 --- a/airbyte-integrations/connectors/source-pardot/main.py +++ b/airbyte-integrations/connectors/source-pardot/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_pardot import SourcePardot +from source_pardot.run import run if __name__ == "__main__": - source = SourcePardot() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-pardot/setup.py b/airbyte-integrations/connectors/source-pardot/setup.py index c04454b0bd05..47cbea1de2c0 100644 --- a/airbyte-integrations/connectors/source-pardot/setup.py +++ b/airbyte-integrations/connectors/source-pardot/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-pardot=source_pardot.run:run", + ], + }, name="source_pardot", description="Source implementation for Pardot.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-pardot/source_pardot/run.py b/airbyte-integrations/connectors/source-pardot/source_pardot/run.py new file mode 100644 index 000000000000..34bd6425a06d --- /dev/null +++ b/airbyte-integrations/connectors/source-pardot/source_pardot/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_pardot import SourcePardot + + +def run(): + source = SourcePardot() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-partnerstack/main.py b/airbyte-integrations/connectors/source-partnerstack/main.py index 24bd01814100..d22642a3ee66 100644 --- a/airbyte-integrations/connectors/source-partnerstack/main.py +++ b/airbyte-integrations/connectors/source-partnerstack/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_partnerstack import SourcePartnerstack +from source_partnerstack.run import run if __name__ == "__main__": - source = SourcePartnerstack() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-partnerstack/setup.py b/airbyte-integrations/connectors/source-partnerstack/setup.py index 5e6542bbc4d6..4d13b3c870f8 100644 --- a/airbyte-integrations/connectors/source-partnerstack/setup.py +++ b/airbyte-integrations/connectors/source-partnerstack/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-partnerstack=source_partnerstack.run:run", + ], + }, name="source_partnerstack", description="Source implementation for Partnerstack.", author="Elliot Trabac", author_email="elliot.trabac1@gmail.com", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-partnerstack/source_partnerstack/run.py b/airbyte-integrations/connectors/source-partnerstack/source_partnerstack/run.py new file mode 100644 index 000000000000..1b7dad130b55 --- /dev/null +++ b/airbyte-integrations/connectors/source-partnerstack/source_partnerstack/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_partnerstack import SourcePartnerstack + + +def run(): + source = SourcePartnerstack() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-paypal-transaction/setup.py b/airbyte-integrations/connectors/source-paypal-transaction/setup.py index a7f633e8ca28..1fdb3b7826a2 100644 --- a/airbyte-integrations/connectors/source-paypal-transaction/setup.py +++ b/airbyte-integrations/connectors/source-paypal-transaction/setup.py @@ -27,7 +27,19 @@ author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-paystack/main.py b/airbyte-integrations/connectors/source-paystack/main.py index 04c982f1ed90..8f792800f6de 100644 --- a/airbyte-integrations/connectors/source-paystack/main.py +++ b/airbyte-integrations/connectors/source-paystack/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_paystack import SourcePaystack +from source_paystack.run import run if __name__ == "__main__": - source = SourcePaystack() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-paystack/setup.py b/airbyte-integrations/connectors/source-paystack/setup.py index 946504314000..22f2c755d169 100644 --- a/airbyte-integrations/connectors/source-paystack/setup.py +++ b/airbyte-integrations/connectors/source-paystack/setup.py @@ -12,6 +12,11 @@ TEST_REQUIREMENTS = ["pytest~=6.1", "pytest-mock~=3.6.1", "requests-mock"] setup( + entry_points={ + "console_scripts": [ + "source-paystack=source_paystack.run:run", + ], + }, name="source_paystack", description="Source implementation for Paystack.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-paystack/source_paystack/run.py b/airbyte-integrations/connectors/source-paystack/source_paystack/run.py new file mode 100644 index 000000000000..001e5668317e --- /dev/null +++ b/airbyte-integrations/connectors/source-paystack/source_paystack/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_paystack import SourcePaystack + + +def run(): + source = SourcePaystack() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-pendo/main.py b/airbyte-integrations/connectors/source-pendo/main.py index 6d17f4106c1d..882482d947f8 100644 --- a/airbyte-integrations/connectors/source-pendo/main.py +++ b/airbyte-integrations/connectors/source-pendo/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_pendo import SourcePendo +from source_pendo.run import run if __name__ == "__main__": - source = SourcePendo() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-pendo/setup.py b/airbyte-integrations/connectors/source-pendo/setup.py index 8aa15183ac48..907aa867ff7b 100644 --- a/airbyte-integrations/connectors/source-pendo/setup.py +++ b/airbyte-integrations/connectors/source-pendo/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-pendo=source_pendo.run:run", + ], + }, name="source_pendo", description="Source implementation for Pendo.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-pendo/source_pendo/run.py b/airbyte-integrations/connectors/source-pendo/source_pendo/run.py new file mode 100644 index 000000000000..a98bdc7d16ff --- /dev/null +++ b/airbyte-integrations/connectors/source-pendo/source_pendo/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_pendo import SourcePendo + + +def run(): + source = SourcePendo() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-persistiq/main.py b/airbyte-integrations/connectors/source-persistiq/main.py index 438306b66706..b6be0062f615 100644 --- a/airbyte-integrations/connectors/source-persistiq/main.py +++ b/airbyte-integrations/connectors/source-persistiq/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_persistiq import SourcePersistiq +from source_persistiq.run import run if __name__ == "__main__": - source = SourcePersistiq() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-persistiq/setup.py b/airbyte-integrations/connectors/source-persistiq/setup.py index 88f883fbdacf..509b4ddc1797 100644 --- a/airbyte-integrations/connectors/source-persistiq/setup.py +++ b/airbyte-integrations/connectors/source-persistiq/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-persistiq=source_persistiq.run:run", + ], + }, name="source_persistiq", description="Source implementation for Persistiq.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-persistiq/source_persistiq/run.py b/airbyte-integrations/connectors/source-persistiq/source_persistiq/run.py new file mode 100644 index 000000000000..2f604abf6ae5 --- /dev/null +++ b/airbyte-integrations/connectors/source-persistiq/source_persistiq/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_persistiq import SourcePersistiq + + +def run(): + source = SourcePersistiq() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-pexels-api/main.py b/airbyte-integrations/connectors/source-pexels-api/main.py index f13d88a9f301..4fdc405e120e 100644 --- a/airbyte-integrations/connectors/source-pexels-api/main.py +++ b/airbyte-integrations/connectors/source-pexels-api/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_pexels_api import SourcePexelsApi +from source_pexels_api.run import run if __name__ == "__main__": - source = SourcePexelsApi() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-pexels-api/setup.py b/airbyte-integrations/connectors/source-pexels-api/setup.py index e45f600af446..7525bf7113f5 100644 --- a/airbyte-integrations/connectors/source-pexels-api/setup.py +++ b/airbyte-integrations/connectors/source-pexels-api/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-pexels-api=source_pexels_api.run:run", + ], + }, name="source_pexels_api", description="Source implementation for Pexels Api.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-pexels-api/source_pexels_api/run.py b/airbyte-integrations/connectors/source-pexels-api/source_pexels_api/run.py new file mode 100644 index 000000000000..da128a40cea0 --- /dev/null +++ b/airbyte-integrations/connectors/source-pexels-api/source_pexels_api/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_pexels_api import SourcePexelsApi + + +def run(): + source = SourcePexelsApi() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-pinterest/main.py b/airbyte-integrations/connectors/source-pinterest/main.py index 377a6ad6dd76..aff013c70319 100644 --- a/airbyte-integrations/connectors/source-pinterest/main.py +++ b/airbyte-integrations/connectors/source-pinterest/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_pinterest import SourcePinterest +from source_pinterest.run import run if __name__ == "__main__": - source = SourcePinterest() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-pinterest/setup.py b/airbyte-integrations/connectors/source-pinterest/setup.py index 5da646d8e719..d09828b5c17e 100644 --- a/airbyte-integrations/connectors/source-pinterest/setup.py +++ b/airbyte-integrations/connectors/source-pinterest/setup.py @@ -15,6 +15,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-pinterest=source_pinterest.run:run", + ], + }, name="source_pinterest", description="Source implementation for Pinterest.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-pinterest/source_pinterest/run.py b/airbyte-integrations/connectors/source-pinterest/source_pinterest/run.py new file mode 100644 index 000000000000..2acf5886cb16 --- /dev/null +++ b/airbyte-integrations/connectors/source-pinterest/source_pinterest/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_pinterest import SourcePinterest + + +def run(): + source = SourcePinterest() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-pipedrive/setup.py b/airbyte-integrations/connectors/source-pipedrive/setup.py index 5d3c1999b80c..388dc3e91906 100644 --- a/airbyte-integrations/connectors/source-pipedrive/setup.py +++ b/airbyte-integrations/connectors/source-pipedrive/setup.py @@ -26,7 +26,19 @@ author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-pivotal-tracker/main.py b/airbyte-integrations/connectors/source-pivotal-tracker/main.py index 3115bba2f932..767718108296 100644 --- a/airbyte-integrations/connectors/source-pivotal-tracker/main.py +++ b/airbyte-integrations/connectors/source-pivotal-tracker/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_pivotal_tracker import SourcePivotalTracker +from source_pivotal_tracker.run import run if __name__ == "__main__": - source = SourcePivotalTracker() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-pivotal-tracker/setup.py b/airbyte-integrations/connectors/source-pivotal-tracker/setup.py index 63de73cbd36f..e6c5edb752f1 100644 --- a/airbyte-integrations/connectors/source-pivotal-tracker/setup.py +++ b/airbyte-integrations/connectors/source-pivotal-tracker/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-pivotal-tracker=source_pivotal_tracker.run:run", + ], + }, name="source_pivotal_tracker", description="Source implementation for Pivotal Tracker.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-pivotal-tracker/source_pivotal_tracker/run.py b/airbyte-integrations/connectors/source-pivotal-tracker/source_pivotal_tracker/run.py new file mode 100644 index 000000000000..a187ff169ac2 --- /dev/null +++ b/airbyte-integrations/connectors/source-pivotal-tracker/source_pivotal_tracker/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_pivotal_tracker import SourcePivotalTracker + + +def run(): + source = SourcePivotalTracker() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-plaid/main.py b/airbyte-integrations/connectors/source-plaid/main.py index e8f3663ddccc..be0011cc4860 100644 --- a/airbyte-integrations/connectors/source-plaid/main.py +++ b/airbyte-integrations/connectors/source-plaid/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_plaid import SourcePlaid +from source_plaid.run import run if __name__ == "__main__": - source = SourcePlaid() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-plaid/setup.py b/airbyte-integrations/connectors/source-plaid/setup.py index bcbf0b34a80c..fc6368795555 100644 --- a/airbyte-integrations/connectors/source-plaid/setup.py +++ b/airbyte-integrations/connectors/source-plaid/setup.py @@ -17,13 +17,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-plaid=source_plaid.run:run", + ], + }, name="source_plaid", description="Source implementation for Plaid.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-plaid/source_plaid/run.py b/airbyte-integrations/connectors/source-plaid/source_plaid/run.py new file mode 100644 index 000000000000..c83935220787 --- /dev/null +++ b/airbyte-integrations/connectors/source-plaid/source_plaid/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_plaid import SourcePlaid + + +def run(): + source = SourcePlaid() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-plausible/main.py b/airbyte-integrations/connectors/source-plausible/main.py index 581156e36e0f..453a2f457795 100644 --- a/airbyte-integrations/connectors/source-plausible/main.py +++ b/airbyte-integrations/connectors/source-plausible/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_plausible import SourcePlausible +from source_plausible.run import run if __name__ == "__main__": - source = SourcePlausible() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-plausible/setup.py b/airbyte-integrations/connectors/source-plausible/setup.py index d222145d848e..894526785513 100644 --- a/airbyte-integrations/connectors/source-plausible/setup.py +++ b/airbyte-integrations/connectors/source-plausible/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-plausible=source_plausible.run:run", + ], + }, name="source_plausible", description="Source implementation for Plausible.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-plausible/source_plausible/run.py b/airbyte-integrations/connectors/source-plausible/source_plausible/run.py new file mode 100644 index 000000000000..57370a5f3748 --- /dev/null +++ b/airbyte-integrations/connectors/source-plausible/source_plausible/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_plausible import SourcePlausible + + +def run(): + source = SourcePlausible() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-pocket/main.py b/airbyte-integrations/connectors/source-pocket/main.py index bf2c5d41e121..45d6104c34f8 100644 --- a/airbyte-integrations/connectors/source-pocket/main.py +++ b/airbyte-integrations/connectors/source-pocket/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_pocket import SourcePocket +from source_pocket.run import run if __name__ == "__main__": - source = SourcePocket() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-pocket/setup.py b/airbyte-integrations/connectors/source-pocket/setup.py index bdbf2b6549ab..d7238d34a09e 100644 --- a/airbyte-integrations/connectors/source-pocket/setup.py +++ b/airbyte-integrations/connectors/source-pocket/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-pocket=source_pocket.run:run", + ], + }, name="source_pocket", description="Source implementation for Pocket.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-pocket/source_pocket/run.py b/airbyte-integrations/connectors/source-pocket/source_pocket/run.py new file mode 100644 index 000000000000..75eaea5398f6 --- /dev/null +++ b/airbyte-integrations/connectors/source-pocket/source_pocket/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_pocket import SourcePocket + + +def run(): + source = SourcePocket() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-pokeapi/main.py b/airbyte-integrations/connectors/source-pokeapi/main.py index 38a510a3f2d7..f32ce6b38105 100644 --- a/airbyte-integrations/connectors/source-pokeapi/main.py +++ b/airbyte-integrations/connectors/source-pokeapi/main.py @@ -2,11 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # -import sys - -from airbyte_cdk.entrypoint import launch -from source_pokeapi import SourcePokeapi +from source_pokeapi.run import run if __name__ == "__main__": - source = SourcePokeapi() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-pokeapi/setup.py b/airbyte-integrations/connectors/source-pokeapi/setup.py index 2fa7839b58fc..27a5590ece4d 100644 --- a/airbyte-integrations/connectors/source-pokeapi/setup.py +++ b/airbyte-integrations/connectors/source-pokeapi/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-pokeapi=source_pokeapi.run:run", + ], + }, name="source_pokeapi", description="Source implementation for Pokeapi.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-pokeapi/source_pokeapi/run.py b/airbyte-integrations/connectors/source-pokeapi/source_pokeapi/run.py new file mode 100644 index 000000000000..2b573e693954 --- /dev/null +++ b/airbyte-integrations/connectors/source-pokeapi/source_pokeapi/run.py @@ -0,0 +1,13 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + +import sys + +from airbyte_cdk.entrypoint import launch +from source_pokeapi import SourcePokeapi + + +def run(): + source = SourcePokeapi() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-polygon-stock-api/main.py b/airbyte-integrations/connectors/source-polygon-stock-api/main.py index 7fc7ae2dd497..77c0f73430be 100644 --- a/airbyte-integrations/connectors/source-polygon-stock-api/main.py +++ b/airbyte-integrations/connectors/source-polygon-stock-api/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_polygon_stock_api import SourcePolygonStockApi +from source_polygon_stock_api.run import run if __name__ == "__main__": - source = SourcePolygonStockApi() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-polygon-stock-api/setup.py b/airbyte-integrations/connectors/source-polygon-stock-api/setup.py index ddd7463c9292..2b4930c184d3 100644 --- a/airbyte-integrations/connectors/source-polygon-stock-api/setup.py +++ b/airbyte-integrations/connectors/source-polygon-stock-api/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-polygon-stock-api=source_polygon_stock_api.run:run", + ], + }, name="source_polygon_stock_api", description="Source implementation for Polygon Stock Api.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-polygon-stock-api/source_polygon_stock_api/run.py b/airbyte-integrations/connectors/source-polygon-stock-api/source_polygon_stock_api/run.py new file mode 100644 index 000000000000..ab2a75d41fe6 --- /dev/null +++ b/airbyte-integrations/connectors/source-polygon-stock-api/source_polygon_stock_api/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_polygon_stock_api import SourcePolygonStockApi + + +def run(): + source = SourcePolygonStockApi() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-posthog/main.py b/airbyte-integrations/connectors/source-posthog/main.py index c788205d69b6..f7e69357d999 100644 --- a/airbyte-integrations/connectors/source-posthog/main.py +++ b/airbyte-integrations/connectors/source-posthog/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_posthog import SourcePosthog +from source_posthog.run import run if __name__ == "__main__": - source = SourcePosthog() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-posthog/setup.py b/airbyte-integrations/connectors/source-posthog/setup.py index 75fb93d9ac2c..2f23e21f1cf8 100644 --- a/airbyte-integrations/connectors/source-posthog/setup.py +++ b/airbyte-integrations/connectors/source-posthog/setup.py @@ -14,6 +14,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-posthog=source_posthog.run:run", + ], + }, name="source_posthog", description="Source implementation for Posthog.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-posthog/source_posthog/run.py b/airbyte-integrations/connectors/source-posthog/source_posthog/run.py new file mode 100644 index 000000000000..711b2e4ae483 --- /dev/null +++ b/airbyte-integrations/connectors/source-posthog/source_posthog/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_posthog import SourcePosthog + + +def run(): + source = SourcePosthog() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-postmarkapp/main.py b/airbyte-integrations/connectors/source-postmarkapp/main.py index 8257a82e80c1..c6b256d74b3a 100644 --- a/airbyte-integrations/connectors/source-postmarkapp/main.py +++ b/airbyte-integrations/connectors/source-postmarkapp/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_postmarkapp import SourcePostmarkapp +from source_postmarkapp.run import run if __name__ == "__main__": - source = SourcePostmarkapp() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-postmarkapp/setup.py b/airbyte-integrations/connectors/source-postmarkapp/setup.py index 08a989882942..3c5e3ab4e671 100644 --- a/airbyte-integrations/connectors/source-postmarkapp/setup.py +++ b/airbyte-integrations/connectors/source-postmarkapp/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-postmarkapp=source_postmarkapp.run:run", + ], + }, name="source_postmarkapp", description="Source implementation for Postmarkapp.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-postmarkapp/source_postmarkapp/run.py b/airbyte-integrations/connectors/source-postmarkapp/source_postmarkapp/run.py new file mode 100644 index 000000000000..b3308b251000 --- /dev/null +++ b/airbyte-integrations/connectors/source-postmarkapp/source_postmarkapp/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_postmarkapp import SourcePostmarkapp + + +def run(): + source = SourcePostmarkapp() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-prestashop/main.py b/airbyte-integrations/connectors/source-prestashop/main.py index 813f7411045f..e51c47a996aa 100644 --- a/airbyte-integrations/connectors/source-prestashop/main.py +++ b/airbyte-integrations/connectors/source-prestashop/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_prestashop import SourcePrestashop +from source_prestashop.run import run if __name__ == "__main__": - source = SourcePrestashop() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-prestashop/setup.py b/airbyte-integrations/connectors/source-prestashop/setup.py index 4762aa8a2eaf..e883c046c0af 100644 --- a/airbyte-integrations/connectors/source-prestashop/setup.py +++ b/airbyte-integrations/connectors/source-prestashop/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-prestashop=source_prestashop.run:run", + ], + }, name="source_prestashop", description="Source implementation for PrestaShop.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-prestashop/source_prestashop/run.py b/airbyte-integrations/connectors/source-prestashop/source_prestashop/run.py new file mode 100644 index 000000000000..23f77c77bf55 --- /dev/null +++ b/airbyte-integrations/connectors/source-prestashop/source_prestashop/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_prestashop import SourcePrestashop + + +def run(): + source = SourcePrestashop() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-primetric/main.py b/airbyte-integrations/connectors/source-primetric/main.py index 3cbd6368b2cf..3cb9977197cc 100644 --- a/airbyte-integrations/connectors/source-primetric/main.py +++ b/airbyte-integrations/connectors/source-primetric/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_primetric import SourcePrimetric +from source_primetric.run import run if __name__ == "__main__": - source = SourcePrimetric() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-primetric/setup.py b/airbyte-integrations/connectors/source-primetric/setup.py index 00a6f81dc6b3..d73e7ee77688 100644 --- a/airbyte-integrations/connectors/source-primetric/setup.py +++ b/airbyte-integrations/connectors/source-primetric/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-primetric=source_primetric.run:run", + ], + }, name="source_primetric", description="Source implementation for Primetric.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-primetric/source_primetric/run.py b/airbyte-integrations/connectors/source-primetric/source_primetric/run.py new file mode 100644 index 000000000000..729752166581 --- /dev/null +++ b/airbyte-integrations/connectors/source-primetric/source_primetric/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_primetric import SourcePrimetric + + +def run(): + source = SourcePrimetric() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-public-apis/main.py b/airbyte-integrations/connectors/source-public-apis/main.py index c5ad4ac06bd9..c9796a4aa4ef 100644 --- a/airbyte-integrations/connectors/source-public-apis/main.py +++ b/airbyte-integrations/connectors/source-public-apis/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_public_apis import SourcePublicApis +from source_public_apis.run import run if __name__ == "__main__": - source = SourcePublicApis() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-public-apis/setup.py b/airbyte-integrations/connectors/source-public-apis/setup.py index 8e3f218e28f7..d454fb726a25 100644 --- a/airbyte-integrations/connectors/source-public-apis/setup.py +++ b/airbyte-integrations/connectors/source-public-apis/setup.py @@ -12,13 +12,30 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.2", "pytest-mock~=3.6.1"] setup( + entry_points={ + "console_scripts": [ + "source-public-apis=source_public_apis.run:run", + ], + }, name="source_public_apis", description="Source implementation for Public Apis.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-public-apis/source_public_apis/run.py b/airbyte-integrations/connectors/source-public-apis/source_public_apis/run.py new file mode 100644 index 000000000000..b4927fb5a5e2 --- /dev/null +++ b/airbyte-integrations/connectors/source-public-apis/source_public_apis/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_public_apis import SourcePublicApis + + +def run(): + source = SourcePublicApis() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-punk-api/main.py b/airbyte-integrations/connectors/source-punk-api/main.py index c16f1cc798dc..bd3661bdabfc 100644 --- a/airbyte-integrations/connectors/source-punk-api/main.py +++ b/airbyte-integrations/connectors/source-punk-api/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_punk_api import SourcePunkApi +from source_punk_api.run import run if __name__ == "__main__": - source = SourcePunkApi() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-punk-api/setup.py b/airbyte-integrations/connectors/source-punk-api/setup.py index 6e0119b0fd17..834098b436fe 100644 --- a/airbyte-integrations/connectors/source-punk-api/setup.py +++ b/airbyte-integrations/connectors/source-punk-api/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-punk-api=source_punk_api.run:run", + ], + }, name="source_punk_api", description="Source implementation for Punk Api.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-punk-api/source_punk_api/run.py b/airbyte-integrations/connectors/source-punk-api/source_punk_api/run.py new file mode 100644 index 000000000000..f1a31bfed3f7 --- /dev/null +++ b/airbyte-integrations/connectors/source-punk-api/source_punk_api/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_punk_api import SourcePunkApi + + +def run(): + source = SourcePunkApi() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-pypi/main.py b/airbyte-integrations/connectors/source-pypi/main.py index a61df9711f41..44f5f367986f 100644 --- a/airbyte-integrations/connectors/source-pypi/main.py +++ b/airbyte-integrations/connectors/source-pypi/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_pypi import SourcePypi +from source_pypi.run import run if __name__ == "__main__": - source = SourcePypi() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-pypi/setup.py b/airbyte-integrations/connectors/source-pypi/setup.py index ae9a89a654a5..b1198fecaead 100644 --- a/airbyte-integrations/connectors/source-pypi/setup.py +++ b/airbyte-integrations/connectors/source-pypi/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-pypi=source_pypi.run:run", + ], + }, name="source_pypi", description="Source implementation for Pypi.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-pypi/source_pypi/run.py b/airbyte-integrations/connectors/source-pypi/source_pypi/run.py new file mode 100644 index 000000000000..5fc71c441a59 --- /dev/null +++ b/airbyte-integrations/connectors/source-pypi/source_pypi/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_pypi import SourcePypi + + +def run(): + source = SourcePypi() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-python-http-tutorial/main.py b/airbyte-integrations/connectors/source-python-http-tutorial/main.py index e13b685ed7d4..57dce4e0679c 100644 --- a/airbyte-integrations/connectors/source-python-http-tutorial/main.py +++ b/airbyte-integrations/connectors/source-python-http-tutorial/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_python_http_tutorial import SourcePythonHttpTutorial +from source_python_http_tutorial.run import run if __name__ == "__main__": - source = SourcePythonHttpTutorial() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-python-http-tutorial/setup.py b/airbyte-integrations/connectors/source-python-http-tutorial/setup.py index 473e22de73aa..be40ba5ca6c6 100644 --- a/airbyte-integrations/connectors/source-python-http-tutorial/setup.py +++ b/airbyte-integrations/connectors/source-python-http-tutorial/setup.py @@ -5,6 +5,11 @@ from setuptools import find_packages, setup setup( + entry_points={ + "console_scripts": [ + "source-python-http-tutorial=source_python_http_tutorial.run:run", + ], + }, name="source_python_http_tutorial", description="Source implementation for Python Http Tutorial.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-python-http-tutorial/source_python_http_tutorial/run.py b/airbyte-integrations/connectors/source-python-http-tutorial/source_python_http_tutorial/run.py new file mode 100644 index 000000000000..60690aa68eff --- /dev/null +++ b/airbyte-integrations/connectors/source-python-http-tutorial/source_python_http_tutorial/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_python_http_tutorial import SourcePythonHttpTutorial + + +def run(): + source = SourcePythonHttpTutorial() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-qonto/main.py b/airbyte-integrations/connectors/source-qonto/main.py index 749ae981779f..eb2e90e366c1 100644 --- a/airbyte-integrations/connectors/source-qonto/main.py +++ b/airbyte-integrations/connectors/source-qonto/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_qonto import SourceQonto +from source_qonto.run import run if __name__ == "__main__": - source = SourceQonto() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-qonto/setup.py b/airbyte-integrations/connectors/source-qonto/setup.py index 8847f9443761..ba340d0b242a 100644 --- a/airbyte-integrations/connectors/source-qonto/setup.py +++ b/airbyte-integrations/connectors/source-qonto/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-qonto=source_qonto.run:run", + ], + }, name="source_qonto", description="Source implementation for Qonto.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-qonto/source_qonto/run.py b/airbyte-integrations/connectors/source-qonto/source_qonto/run.py new file mode 100644 index 000000000000..0ea8c8470c1f --- /dev/null +++ b/airbyte-integrations/connectors/source-qonto/source_qonto/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_qonto import SourceQonto + + +def run(): + source = SourceQonto() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-qualaroo/main.py b/airbyte-integrations/connectors/source-qualaroo/main.py index 149d1ab5a20f..7a7ed24a96bf 100644 --- a/airbyte-integrations/connectors/source-qualaroo/main.py +++ b/airbyte-integrations/connectors/source-qualaroo/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_qualaroo import SourceQualaroo +from source_qualaroo.run import run if __name__ == "__main__": - source = SourceQualaroo() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-qualaroo/setup.py b/airbyte-integrations/connectors/source-qualaroo/setup.py index 840126cac8fb..24bf8b993372 100644 --- a/airbyte-integrations/connectors/source-qualaroo/setup.py +++ b/airbyte-integrations/connectors/source-qualaroo/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-qualaroo=source_qualaroo.run:run", + ], + }, name="source_qualaroo", description="Source implementation for Qualaroo.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-qualaroo/source_qualaroo/run.py b/airbyte-integrations/connectors/source-qualaroo/source_qualaroo/run.py new file mode 100644 index 000000000000..c6b4c65009e5 --- /dev/null +++ b/airbyte-integrations/connectors/source-qualaroo/source_qualaroo/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_qualaroo import SourceQualaroo + + +def run(): + source = SourceQualaroo() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-quickbooks/main.py b/airbyte-integrations/connectors/source-quickbooks/main.py index c475c3cf97fd..abeed13585f5 100644 --- a/airbyte-integrations/connectors/source-quickbooks/main.py +++ b/airbyte-integrations/connectors/source-quickbooks/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_quickbooks import SourceQuickbooks +from source_quickbooks.run import run if __name__ == "__main__": - source = SourceQuickbooks() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-quickbooks/setup.py b/airbyte-integrations/connectors/source-quickbooks/setup.py index 47ca1b128505..ac3c35cb290f 100644 --- a/airbyte-integrations/connectors/source-quickbooks/setup.py +++ b/airbyte-integrations/connectors/source-quickbooks/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-quickbooks=source_quickbooks.run:run", + ], + }, name="source_quickbooks", description="Source implementation for Quickbooks.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-quickbooks/source_quickbooks/run.py b/airbyte-integrations/connectors/source-quickbooks/source_quickbooks/run.py new file mode 100644 index 000000000000..4e5d18504e8d --- /dev/null +++ b/airbyte-integrations/connectors/source-quickbooks/source_quickbooks/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_quickbooks import SourceQuickbooks + + +def run(): + source = SourceQuickbooks() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-railz/main.py b/airbyte-integrations/connectors/source-railz/main.py index 03bea5dbba8a..bfa6b9fadb2f 100644 --- a/airbyte-integrations/connectors/source-railz/main.py +++ b/airbyte-integrations/connectors/source-railz/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_railz import SourceRailz +from source_railz.run import run if __name__ == "__main__": - source = SourceRailz() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-railz/setup.py b/airbyte-integrations/connectors/source-railz/setup.py index 3b938dc45ff5..37478efb8ddc 100644 --- a/airbyte-integrations/connectors/source-railz/setup.py +++ b/airbyte-integrations/connectors/source-railz/setup.py @@ -19,13 +19,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-railz=source_railz.run:run", + ], + }, name="source_railz", description="Source implementation for Railz.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-railz/source_railz/run.py b/airbyte-integrations/connectors/source-railz/source_railz/run.py new file mode 100644 index 000000000000..831b665a05da --- /dev/null +++ b/airbyte-integrations/connectors/source-railz/source_railz/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_railz import SourceRailz + + +def run(): + source = SourceRailz() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-rd-station-marketing/main.py b/airbyte-integrations/connectors/source-rd-station-marketing/main.py index b5e333d8a220..5210a9fdc2b3 100644 --- a/airbyte-integrations/connectors/source-rd-station-marketing/main.py +++ b/airbyte-integrations/connectors/source-rd-station-marketing/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_rd_station_marketing import SourceRDStationMarketing +from source_rd_station_marketing.run import run if __name__ == "__main__": - source = SourceRDStationMarketing() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-rd-station-marketing/setup.py b/airbyte-integrations/connectors/source-rd-station-marketing/setup.py index fc5481e12eb5..039dd82b7d54 100644 --- a/airbyte-integrations/connectors/source-rd-station-marketing/setup.py +++ b/airbyte-integrations/connectors/source-rd-station-marketing/setup.py @@ -17,13 +17,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-rd-station-marketing=source_rd_station_marketing.run:run", + ], + }, name="source_rd_station_marketing", description="Source implementation for RD Station Marketing.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-rd-station-marketing/source_rd_station_marketing/run.py b/airbyte-integrations/connectors/source-rd-station-marketing/source_rd_station_marketing/run.py new file mode 100644 index 000000000000..c684a12ed29f --- /dev/null +++ b/airbyte-integrations/connectors/source-rd-station-marketing/source_rd_station_marketing/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_rd_station_marketing import SourceRDStationMarketing + + +def run(): + source = SourceRDStationMarketing() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-recharge/main.py b/airbyte-integrations/connectors/source-recharge/main.py index c61ef445b68d..d8ccf40b711e 100644 --- a/airbyte-integrations/connectors/source-recharge/main.py +++ b/airbyte-integrations/connectors/source-recharge/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_recharge import SourceRecharge +from source_recharge.run import run if __name__ == "__main__": - source = SourceRecharge() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-recharge/setup.py b/airbyte-integrations/connectors/source-recharge/setup.py index bb091a439b28..d51c828ffa5b 100644 --- a/airbyte-integrations/connectors/source-recharge/setup.py +++ b/airbyte-integrations/connectors/source-recharge/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-recharge=source_recharge.run:run", + ], + }, name="source_recharge", description="Source implementation for Recharge.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-recharge/source_recharge/run.py b/airbyte-integrations/connectors/source-recharge/source_recharge/run.py new file mode 100644 index 000000000000..2a56566c41c2 --- /dev/null +++ b/airbyte-integrations/connectors/source-recharge/source_recharge/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_recharge import SourceRecharge + + +def run(): + source = SourceRecharge() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-recreation/main.py b/airbyte-integrations/connectors/source-recreation/main.py index f126b44607d6..6847e93aab46 100644 --- a/airbyte-integrations/connectors/source-recreation/main.py +++ b/airbyte-integrations/connectors/source-recreation/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_recreation import SourceRecreation +from source_recreation.run import run if __name__ == "__main__": - source = SourceRecreation() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-recreation/setup.py b/airbyte-integrations/connectors/source-recreation/setup.py index 26e4b5657f8a..9f41baeed4b1 100644 --- a/airbyte-integrations/connectors/source-recreation/setup.py +++ b/airbyte-integrations/connectors/source-recreation/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-recreation=source_recreation.run:run", + ], + }, name="source_recreation", description="Source implementation for Recreation.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-recreation/source_recreation/run.py b/airbyte-integrations/connectors/source-recreation/source_recreation/run.py new file mode 100644 index 000000000000..2f8b496ad695 --- /dev/null +++ b/airbyte-integrations/connectors/source-recreation/source_recreation/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_recreation import SourceRecreation + + +def run(): + source = SourceRecreation() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-recruitee/main.py b/airbyte-integrations/connectors/source-recruitee/main.py index 8d918eec10e2..26802f658cda 100644 --- a/airbyte-integrations/connectors/source-recruitee/main.py +++ b/airbyte-integrations/connectors/source-recruitee/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_recruitee import SourceRecruitee +from source_recruitee.run import run if __name__ == "__main__": - source = SourceRecruitee() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-recruitee/setup.py b/airbyte-integrations/connectors/source-recruitee/setup.py index d2b12eff3c68..c03d7631bd28 100644 --- a/airbyte-integrations/connectors/source-recruitee/setup.py +++ b/airbyte-integrations/connectors/source-recruitee/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-recruitee=source_recruitee.run:run", + ], + }, name="source_recruitee", description="Source implementation for Recruitee.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-recruitee/source_recruitee/run.py b/airbyte-integrations/connectors/source-recruitee/source_recruitee/run.py new file mode 100644 index 000000000000..3d4111901af2 --- /dev/null +++ b/airbyte-integrations/connectors/source-recruitee/source_recruitee/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_recruitee import SourceRecruitee + + +def run(): + source = SourceRecruitee() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-recurly/main.py b/airbyte-integrations/connectors/source-recurly/main.py index 251a30f0dffe..ba5c26176fde 100644 --- a/airbyte-integrations/connectors/source-recurly/main.py +++ b/airbyte-integrations/connectors/source-recurly/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_recurly import SourceRecurly +from source_recurly.run import run if __name__ == "__main__": - source = SourceRecurly() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-recurly/setup.py b/airbyte-integrations/connectors/source-recurly/setup.py index 1d278d40ec9f..16e2364aeb01 100644 --- a/airbyte-integrations/connectors/source-recurly/setup.py +++ b/airbyte-integrations/connectors/source-recurly/setup.py @@ -14,6 +14,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-recurly=source_recurly.run:run", + ], + }, name="source_recurly", description="Source implementation for Recurly.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-recurly/source_recurly/run.py b/airbyte-integrations/connectors/source-recurly/source_recurly/run.py new file mode 100644 index 000000000000..746b6556605c --- /dev/null +++ b/airbyte-integrations/connectors/source-recurly/source_recurly/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_recurly import SourceRecurly + + +def run(): + source = SourceRecurly() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-reply-io/main.py b/airbyte-integrations/connectors/source-reply-io/main.py index 879d184cebcd..ebe3ff2bfe7b 100644 --- a/airbyte-integrations/connectors/source-reply-io/main.py +++ b/airbyte-integrations/connectors/source-reply-io/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_reply_io import SourceReplyIo +from source_reply_io.run import run if __name__ == "__main__": - source = SourceReplyIo() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-reply-io/setup.py b/airbyte-integrations/connectors/source-reply-io/setup.py index bc4d841b50fc..4b8ad096a754 100644 --- a/airbyte-integrations/connectors/source-reply-io/setup.py +++ b/airbyte-integrations/connectors/source-reply-io/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-reply-io=source_reply_io.run:run", + ], + }, name="source_reply_io", description="Source implementation for Reply Io.", author="Elliot Trabac", author_email="elliot.trabac1@gmail.com", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-reply-io/source_reply_io/run.py b/airbyte-integrations/connectors/source-reply-io/source_reply_io/run.py new file mode 100644 index 000000000000..e740b708c45a --- /dev/null +++ b/airbyte-integrations/connectors/source-reply-io/source_reply_io/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_reply_io import SourceReplyIo + + +def run(): + source = SourceReplyIo() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-retently/main.py b/airbyte-integrations/connectors/source-retently/main.py index 4aafda0c119f..dec9d2267e7b 100644 --- a/airbyte-integrations/connectors/source-retently/main.py +++ b/airbyte-integrations/connectors/source-retently/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_retently import SourceRetently +from source_retently.run import run if __name__ == "__main__": - source = SourceRetently() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-retently/setup.py b/airbyte-integrations/connectors/source-retently/setup.py index 707ffcee736f..daf9a0a93efc 100644 --- a/airbyte-integrations/connectors/source-retently/setup.py +++ b/airbyte-integrations/connectors/source-retently/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-retently=source_retently.run:run", + ], + }, name="source_retently", description="Source implementation for Retently.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-retently/source_retently/run.py b/airbyte-integrations/connectors/source-retently/source_retently/run.py new file mode 100644 index 000000000000..4e0687b5c6a9 --- /dev/null +++ b/airbyte-integrations/connectors/source-retently/source_retently/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_retently import SourceRetently + + +def run(): + source = SourceRetently() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-ringcentral/main.py b/airbyte-integrations/connectors/source-ringcentral/main.py index cb412fcab28f..12f2eb4285cc 100644 --- a/airbyte-integrations/connectors/source-ringcentral/main.py +++ b/airbyte-integrations/connectors/source-ringcentral/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_ringcentral import SourceRingcentral +from source_ringcentral.run import run if __name__ == "__main__": - source = SourceRingcentral() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-ringcentral/setup.py b/airbyte-integrations/connectors/source-ringcentral/setup.py index a0a34d080b35..90d664f5d9f6 100644 --- a/airbyte-integrations/connectors/source-ringcentral/setup.py +++ b/airbyte-integrations/connectors/source-ringcentral/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-ringcentral=source_ringcentral.run:run", + ], + }, name="source_ringcentral", description="Source implementation for Ringcentral.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-ringcentral/source_ringcentral/run.py b/airbyte-integrations/connectors/source-ringcentral/source_ringcentral/run.py new file mode 100644 index 000000000000..f203a14ce2d1 --- /dev/null +++ b/airbyte-integrations/connectors/source-ringcentral/source_ringcentral/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_ringcentral import SourceRingcentral + + +def run(): + source = SourceRingcentral() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-rki-covid/main.py b/airbyte-integrations/connectors/source-rki-covid/main.py index 7b345c79d6d5..a104106001cb 100644 --- a/airbyte-integrations/connectors/source-rki-covid/main.py +++ b/airbyte-integrations/connectors/source-rki-covid/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_rki_covid import SourceRkiCovid +from source_rki_covid.run import run if __name__ == "__main__": - source = SourceRkiCovid() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-rki-covid/setup.py b/airbyte-integrations/connectors/source-rki-covid/setup.py index 4c8abfd77674..78722548d0b1 100644 --- a/airbyte-integrations/connectors/source-rki-covid/setup.py +++ b/airbyte-integrations/connectors/source-rki-covid/setup.py @@ -12,6 +12,11 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.1", "pytest-mock~=3.6.1", "airbyte-cdk"] setup( + entry_points={ + "console_scripts": [ + "source-rki-covid=source_rki_covid.run:run", + ], + }, name="source_rki_covid", description="Source implementation for Rki Covid.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-rki-covid/source_rki_covid/run.py b/airbyte-integrations/connectors/source-rki-covid/source_rki_covid/run.py new file mode 100644 index 000000000000..dc5cdd95d152 --- /dev/null +++ b/airbyte-integrations/connectors/source-rki-covid/source_rki_covid/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_rki_covid import SourceRkiCovid + + +def run(): + source = SourceRkiCovid() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-rocket-chat/main.py b/airbyte-integrations/connectors/source-rocket-chat/main.py index befcababa0fe..3e9e4cdfb68e 100644 --- a/airbyte-integrations/connectors/source-rocket-chat/main.py +++ b/airbyte-integrations/connectors/source-rocket-chat/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_rocket_chat import SourceRocketChat +from source_rocket_chat.run import run if __name__ == "__main__": - source = SourceRocketChat() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-rocket-chat/setup.py b/airbyte-integrations/connectors/source-rocket-chat/setup.py index 86e7d41371ab..0dea0d1fba8f 100644 --- a/airbyte-integrations/connectors/source-rocket-chat/setup.py +++ b/airbyte-integrations/connectors/source-rocket-chat/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-rocket-chat=source_rocket_chat.run:run", + ], + }, name="source_rocket_chat", description="Source implementation for Rocket Chat.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-rocket-chat/source_rocket_chat/run.py b/airbyte-integrations/connectors/source-rocket-chat/source_rocket_chat/run.py new file mode 100644 index 000000000000..1cb56e281978 --- /dev/null +++ b/airbyte-integrations/connectors/source-rocket-chat/source_rocket_chat/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_rocket_chat import SourceRocketChat + + +def run(): + source = SourceRocketChat() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-rss/main.py b/airbyte-integrations/connectors/source-rss/main.py index 967135ca3254..9e21c3c97793 100644 --- a/airbyte-integrations/connectors/source-rss/main.py +++ b/airbyte-integrations/connectors/source-rss/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_rss import SourceRss +from source_rss.run import run if __name__ == "__main__": - source = SourceRss() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-rss/setup.py b/airbyte-integrations/connectors/source-rss/setup.py index 7bd87cde621b..f49ef214cb6a 100644 --- a/airbyte-integrations/connectors/source-rss/setup.py +++ b/airbyte-integrations/connectors/source-rss/setup.py @@ -14,13 +14,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-rss=source_rss.run:run", + ], + }, name="source_rss", description="Source implementation for Rss.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-rss/source_rss/run.py b/airbyte-integrations/connectors/source-rss/source_rss/run.py new file mode 100644 index 000000000000..90f8a101fcfa --- /dev/null +++ b/airbyte-integrations/connectors/source-rss/source_rss/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_rss import SourceRss + + +def run(): + source = SourceRss() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-salesforce/setup.py b/airbyte-integrations/connectors/source-salesforce/setup.py index 4add132d7cb5..2e7fc4fff78d 100644 --- a/airbyte-integrations/connectors/source-salesforce/setup.py +++ b/airbyte-integrations/connectors/source-salesforce/setup.py @@ -16,7 +16,19 @@ author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-salesloft/main.py b/airbyte-integrations/connectors/source-salesloft/main.py index 8ee79923b913..6ae4308e9ab6 100644 --- a/airbyte-integrations/connectors/source-salesloft/main.py +++ b/airbyte-integrations/connectors/source-salesloft/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_salesloft import SourceSalesloft +from source_salesloft.run import run if __name__ == "__main__": - source = SourceSalesloft() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-salesloft/setup.py b/airbyte-integrations/connectors/source-salesloft/setup.py index bd9fc0a48179..58bcf6176dd6 100644 --- a/airbyte-integrations/connectors/source-salesloft/setup.py +++ b/airbyte-integrations/connectors/source-salesloft/setup.py @@ -14,6 +14,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-salesloft=source_salesloft.run:run", + ], + }, name="source_salesloft", description="Source implementation for Salesloft.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-salesloft/source_salesloft/run.py b/airbyte-integrations/connectors/source-salesloft/source_salesloft/run.py new file mode 100644 index 000000000000..e68c3785893c --- /dev/null +++ b/airbyte-integrations/connectors/source-salesloft/source_salesloft/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_salesloft import SourceSalesloft + + +def run(): + source = SourceSalesloft() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-sap-fieldglass/main.py b/airbyte-integrations/connectors/source-sap-fieldglass/main.py index c9273ef8ae47..8d8230917289 100644 --- a/airbyte-integrations/connectors/source-sap-fieldglass/main.py +++ b/airbyte-integrations/connectors/source-sap-fieldglass/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_sap_fieldglass import SourceSapFieldglass +from source_sap_fieldglass.run import run if __name__ == "__main__": - source = SourceSapFieldglass() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-sap-fieldglass/setup.py b/airbyte-integrations/connectors/source-sap-fieldglass/setup.py index 0f5e02083b5b..7365a4beb5ce 100644 --- a/airbyte-integrations/connectors/source-sap-fieldglass/setup.py +++ b/airbyte-integrations/connectors/source-sap-fieldglass/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-sap-fieldglass=source_sap_fieldglass.run:run", + ], + }, name="source_sap_fieldglass", description="Source implementation for Sap Fieldglass.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-sap-fieldglass/source_sap_fieldglass/run.py b/airbyte-integrations/connectors/source-sap-fieldglass/source_sap_fieldglass/run.py new file mode 100644 index 000000000000..69768a3d9efc --- /dev/null +++ b/airbyte-integrations/connectors/source-sap-fieldglass/source_sap_fieldglass/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_sap_fieldglass import SourceSapFieldglass + + +def run(): + source = SourceSapFieldglass() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-scaffold-source-http/main.py b/airbyte-integrations/connectors/source-scaffold-source-http/main.py index f8030f72e927..f51b0283a681 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-http/main.py +++ b/airbyte-integrations/connectors/source-scaffold-source-http/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_scaffold_source_http import SourceScaffoldSourceHttp +from source_scaffold_source_http.run import run if __name__ == "__main__": - source = SourceScaffoldSourceHttp() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-scaffold-source-http/setup.py b/airbyte-integrations/connectors/source-scaffold-source-http/setup.py index 4fbb5fc38b4d..a7a496b52161 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-http/setup.py +++ b/airbyte-integrations/connectors/source-scaffold-source-http/setup.py @@ -17,13 +17,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-scaffold-source-http=source_scaffold_source_http.run:run", + ], + }, name="source_scaffold_source_http", description="Source implementation for Scaffold Source Http.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-scaffold-source-http/source_scaffold_source_http/run.py b/airbyte-integrations/connectors/source-scaffold-source-http/source_scaffold_source_http/run.py new file mode 100644 index 000000000000..94b4f015f312 --- /dev/null +++ b/airbyte-integrations/connectors/source-scaffold-source-http/source_scaffold_source_http/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_scaffold_source_http import SourceScaffoldSourceHttp + + +def run(): + source = SourceScaffoldSourceHttp() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-scaffold-source-python/main.py b/airbyte-integrations/connectors/source-scaffold-source-python/main.py index 0b8a20830163..038eaf6dba55 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-python/main.py +++ b/airbyte-integrations/connectors/source-scaffold-source-python/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_scaffold_source_python import SourceScaffoldSourcePython +from source_scaffold_source_python.run import run if __name__ == "__main__": - source = SourceScaffoldSourcePython() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-scaffold-source-python/setup.py b/airbyte-integrations/connectors/source-scaffold-source-python/setup.py index b302f081011f..d4b3ebe7601b 100644 --- a/airbyte-integrations/connectors/source-scaffold-source-python/setup.py +++ b/airbyte-integrations/connectors/source-scaffold-source-python/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-scaffold-source-python=source_scaffold_source_python.run:run", + ], + }, name="source_scaffold_source_python", description="Source implementation for Scaffold Source Python.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/run.py b/airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/run.py new file mode 100644 index 000000000000..6bb55fc68e7d --- /dev/null +++ b/airbyte-integrations/connectors/source-scaffold-source-python/source_scaffold_source_python/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_scaffold_source_python import SourceScaffoldSourcePython + + +def run(): + source = SourceScaffoldSourcePython() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-search-metrics/main.py b/airbyte-integrations/connectors/source-search-metrics/main.py index c07a9cf2a41b..29e5e8a133a6 100644 --- a/airbyte-integrations/connectors/source-search-metrics/main.py +++ b/airbyte-integrations/connectors/source-search-metrics/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_search_metrics import SourceSearchMetrics +from source_search_metrics.run import run if __name__ == "__main__": - source = SourceSearchMetrics() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-search-metrics/setup.py b/airbyte-integrations/connectors/source-search-metrics/setup.py index fda5333cc2ae..dfc33d408c22 100644 --- a/airbyte-integrations/connectors/source-search-metrics/setup.py +++ b/airbyte-integrations/connectors/source-search-metrics/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-search-metrics=source_search_metrics.run:run", + ], + }, name="source_search_metrics", description="Source implementation for Search Metrics.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-search-metrics/source_search_metrics/run.py b/airbyte-integrations/connectors/source-search-metrics/source_search_metrics/run.py new file mode 100644 index 000000000000..29a0ebc75add --- /dev/null +++ b/airbyte-integrations/connectors/source-search-metrics/source_search_metrics/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_search_metrics import SourceSearchMetrics + + +def run(): + source = SourceSearchMetrics() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-secoda/main.py b/airbyte-integrations/connectors/source-secoda/main.py index 81d52e2f8a48..96bc9de24afa 100644 --- a/airbyte-integrations/connectors/source-secoda/main.py +++ b/airbyte-integrations/connectors/source-secoda/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_secoda import SourceSecoda +from source_secoda.run import run if __name__ == "__main__": - source = SourceSecoda() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-secoda/setup.py b/airbyte-integrations/connectors/source-secoda/setup.py index 3b603c1d6e21..b80c65173e94 100644 --- a/airbyte-integrations/connectors/source-secoda/setup.py +++ b/airbyte-integrations/connectors/source-secoda/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-secoda=source_secoda.run:run", + ], + }, name="source_secoda", description="Source implementation for Secoda.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-secoda/source_secoda/run.py b/airbyte-integrations/connectors/source-secoda/source_secoda/run.py new file mode 100644 index 000000000000..ed456d531ce1 --- /dev/null +++ b/airbyte-integrations/connectors/source-secoda/source_secoda/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_secoda import SourceSecoda + + +def run(): + source = SourceSecoda() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-sendgrid/main.py b/airbyte-integrations/connectors/source-sendgrid/main.py index f9720b12f1c8..e1c5a04db60d 100644 --- a/airbyte-integrations/connectors/source-sendgrid/main.py +++ b/airbyte-integrations/connectors/source-sendgrid/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_sendgrid import SourceSendgrid +from source_sendgrid.run import run if __name__ == "__main__": - source = SourceSendgrid() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-sendgrid/setup.py b/airbyte-integrations/connectors/source-sendgrid/setup.py index 64dc92cce236..0bfa4f9dd3b2 100644 --- a/airbyte-integrations/connectors/source-sendgrid/setup.py +++ b/airbyte-integrations/connectors/source-sendgrid/setup.py @@ -14,6 +14,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-sendgrid=source_sendgrid.run:run", + ], + }, name="source_sendgrid", description="Source implementation for Sendgrid.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-sendgrid/source_sendgrid/run.py b/airbyte-integrations/connectors/source-sendgrid/source_sendgrid/run.py new file mode 100644 index 000000000000..d2c1b798edb9 --- /dev/null +++ b/airbyte-integrations/connectors/source-sendgrid/source_sendgrid/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_sendgrid import SourceSendgrid + + +def run(): + source = SourceSendgrid() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-sendinblue/main.py b/airbyte-integrations/connectors/source-sendinblue/main.py index 8f9399e259f2..7227005ddf6f 100644 --- a/airbyte-integrations/connectors/source-sendinblue/main.py +++ b/airbyte-integrations/connectors/source-sendinblue/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_sendinblue import SourceSendinblue +from source_sendinblue.run import run if __name__ == "__main__": - source = SourceSendinblue() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-sendinblue/setup.py b/airbyte-integrations/connectors/source-sendinblue/setup.py index 0b5269c46b84..e452b66f447a 100644 --- a/airbyte-integrations/connectors/source-sendinblue/setup.py +++ b/airbyte-integrations/connectors/source-sendinblue/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-sendinblue=source_sendinblue.run:run", + ], + }, name="source_sendinblue", description="Source implementation for Sendinblue.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/run.py b/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/run.py new file mode 100644 index 000000000000..fbf77ce5a97a --- /dev/null +++ b/airbyte-integrations/connectors/source-sendinblue/source_sendinblue/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_sendinblue import SourceSendinblue + + +def run(): + source = SourceSendinblue() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-senseforce/main.py b/airbyte-integrations/connectors/source-senseforce/main.py index ba269b9ba0ef..3a6a5e7fd4c7 100644 --- a/airbyte-integrations/connectors/source-senseforce/main.py +++ b/airbyte-integrations/connectors/source-senseforce/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_senseforce import SourceSenseforce +from source_senseforce.run import run if __name__ == "__main__": - source = SourceSenseforce() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-senseforce/setup.py b/airbyte-integrations/connectors/source-senseforce/setup.py index 976590623a83..4c653a13c824 100644 --- a/airbyte-integrations/connectors/source-senseforce/setup.py +++ b/airbyte-integrations/connectors/source-senseforce/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-senseforce=source_senseforce.run:run", + ], + }, name="source_senseforce", description="Source implementation for Senseforce.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-senseforce/source_senseforce/run.py b/airbyte-integrations/connectors/source-senseforce/source_senseforce/run.py new file mode 100644 index 000000000000..944e3468fed7 --- /dev/null +++ b/airbyte-integrations/connectors/source-senseforce/source_senseforce/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_senseforce import SourceSenseforce + + +def run(): + source = SourceSenseforce() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-sentry/main.py b/airbyte-integrations/connectors/source-sentry/main.py index 0844bc450390..1c7adc746e97 100644 --- a/airbyte-integrations/connectors/source-sentry/main.py +++ b/airbyte-integrations/connectors/source-sentry/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_sentry import SourceSentry +from source_sentry.run import run if __name__ == "__main__": - source = SourceSentry() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-sentry/setup.py b/airbyte-integrations/connectors/source-sentry/setup.py index 18d172dcd942..d1677c524a4d 100644 --- a/airbyte-integrations/connectors/source-sentry/setup.py +++ b/airbyte-integrations/connectors/source-sentry/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-sentry=source_sentry.run:run", + ], + }, name="source_sentry", description="Source implementation for Sentry.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-sentry/source_sentry/run.py b/airbyte-integrations/connectors/source-sentry/source_sentry/run.py new file mode 100644 index 000000000000..acf82b00a03d --- /dev/null +++ b/airbyte-integrations/connectors/source-sentry/source_sentry/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_sentry import SourceSentry + + +def run(): + source = SourceSentry() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-serpstat/main.py b/airbyte-integrations/connectors/source-serpstat/main.py index 92fb7edc0474..75c87dbf86f9 100644 --- a/airbyte-integrations/connectors/source-serpstat/main.py +++ b/airbyte-integrations/connectors/source-serpstat/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_serpstat import SourceSerpstat +from source_serpstat.run import run if __name__ == "__main__": - source = SourceSerpstat() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-serpstat/setup.py b/airbyte-integrations/connectors/source-serpstat/setup.py index 42ab32a171b0..9c7f53024268 100644 --- a/airbyte-integrations/connectors/source-serpstat/setup.py +++ b/airbyte-integrations/connectors/source-serpstat/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-serpstat=source_serpstat.run:run", + ], + }, name="source_serpstat", description="Source implementation for Serpstat.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-serpstat/source_serpstat/run.py b/airbyte-integrations/connectors/source-serpstat/source_serpstat/run.py new file mode 100644 index 000000000000..3dc6051ee8f8 --- /dev/null +++ b/airbyte-integrations/connectors/source-serpstat/source_serpstat/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_serpstat import SourceSerpstat + + +def run(): + source = SourceSerpstat() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-sftp-bulk/main.py b/airbyte-integrations/connectors/source-sftp-bulk/main.py index c2b1e7afb5b3..9e6488da04cc 100644 --- a/airbyte-integrations/connectors/source-sftp-bulk/main.py +++ b/airbyte-integrations/connectors/source-sftp-bulk/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_sftp_bulk import SourceFtp +from source_sftp_bulk.run import run if __name__ == "__main__": - source = SourceFtp() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-sftp-bulk/setup.py b/airbyte-integrations/connectors/source-sftp-bulk/setup.py index 6d9d1990f634..e09d478f9007 100644 --- a/airbyte-integrations/connectors/source-sftp-bulk/setup.py +++ b/airbyte-integrations/connectors/source-sftp-bulk/setup.py @@ -16,6 +16,11 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest-mock~=3.6.1", "pytest~=6.1", "docker==5.0.3"] setup( + entry_points={ + "console_scripts": [ + "source-sftp-bulk=source_sftp_bulk.run:run", + ], + }, name="source_sftp_bulk", description="Source implementation for SFTP Bulk.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-sftp-bulk/source_sftp_bulk/run.py b/airbyte-integrations/connectors/source-sftp-bulk/source_sftp_bulk/run.py new file mode 100644 index 000000000000..c3e00b8100cd --- /dev/null +++ b/airbyte-integrations/connectors/source-sftp-bulk/source_sftp_bulk/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_sftp_bulk import SourceFtp + + +def run(): + source = SourceFtp() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-shortio/main.py b/airbyte-integrations/connectors/source-shortio/main.py index 0c6be2ce4469..eaef1e24f90d 100644 --- a/airbyte-integrations/connectors/source-shortio/main.py +++ b/airbyte-integrations/connectors/source-shortio/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_shortio import SourceShortio +from source_shortio.run import run if __name__ == "__main__": - source = SourceShortio() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-shortio/setup.py b/airbyte-integrations/connectors/source-shortio/setup.py index 6c8cbba1b880..d0b2d6cc581c 100644 --- a/airbyte-integrations/connectors/source-shortio/setup.py +++ b/airbyte-integrations/connectors/source-shortio/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-shortio=source_shortio.run:run", + ], + }, name="source_shortio", description="Source implementation for Shortio.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-shortio/source_shortio/run.py b/airbyte-integrations/connectors/source-shortio/source_shortio/run.py new file mode 100644 index 000000000000..dce618a444e4 --- /dev/null +++ b/airbyte-integrations/connectors/source-shortio/source_shortio/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_shortio import SourceShortio + + +def run(): + source = SourceShortio() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-smaily/main.py b/airbyte-integrations/connectors/source-smaily/main.py index 647f5a347f70..fbb55aa40a54 100644 --- a/airbyte-integrations/connectors/source-smaily/main.py +++ b/airbyte-integrations/connectors/source-smaily/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_smaily import SourceSmaily +from source_smaily.run import run if __name__ == "__main__": - source = SourceSmaily() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-smaily/setup.py b/airbyte-integrations/connectors/source-smaily/setup.py index aa835b3698f6..f3b23a618c6a 100644 --- a/airbyte-integrations/connectors/source-smaily/setup.py +++ b/airbyte-integrations/connectors/source-smaily/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-smaily=source_smaily.run:run", + ], + }, name="source_smaily", description="Source implementation for Smaily.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-smaily/source_smaily/run.py b/airbyte-integrations/connectors/source-smaily/source_smaily/run.py new file mode 100644 index 000000000000..24297e8addb3 --- /dev/null +++ b/airbyte-integrations/connectors/source-smaily/source_smaily/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_smaily import SourceSmaily + + +def run(): + source = SourceSmaily() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-smartengage/main.py b/airbyte-integrations/connectors/source-smartengage/main.py index f9aec77e67ec..d445802b0ed4 100644 --- a/airbyte-integrations/connectors/source-smartengage/main.py +++ b/airbyte-integrations/connectors/source-smartengage/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_smartengage import SourceSmartengage +from source_smartengage.run import run if __name__ == "__main__": - source = SourceSmartengage() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-smartengage/setup.py b/airbyte-integrations/connectors/source-smartengage/setup.py index 958a3b00df73..e4dd81fe7a9b 100644 --- a/airbyte-integrations/connectors/source-smartengage/setup.py +++ b/airbyte-integrations/connectors/source-smartengage/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-smartengage=source_smartengage.run:run", + ], + }, name="source_smartengage", description="Source implementation for Smartengage.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-smartengage/source_smartengage/run.py b/airbyte-integrations/connectors/source-smartengage/source_smartengage/run.py new file mode 100644 index 000000000000..593e4eaf40f1 --- /dev/null +++ b/airbyte-integrations/connectors/source-smartengage/source_smartengage/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_smartengage import SourceSmartengage + + +def run(): + source = SourceSmartengage() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-snapchat-marketing/main.py b/airbyte-integrations/connectors/source-snapchat-marketing/main.py index 3b7dadc93a3e..d48c013d7dcf 100644 --- a/airbyte-integrations/connectors/source-snapchat-marketing/main.py +++ b/airbyte-integrations/connectors/source-snapchat-marketing/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_snapchat_marketing import SourceSnapchatMarketing +from source_snapchat_marketing.run import run if __name__ == "__main__": - source = SourceSnapchatMarketing() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-snapchat-marketing/setup.py b/airbyte-integrations/connectors/source-snapchat-marketing/setup.py index cc60f43cbe70..71d4210cbe54 100644 --- a/airbyte-integrations/connectors/source-snapchat-marketing/setup.py +++ b/airbyte-integrations/connectors/source-snapchat-marketing/setup.py @@ -12,6 +12,11 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest-mock~=3.6.1", "pytest~=6.1", "requests_mock"] setup( + entry_points={ + "console_scripts": [ + "source-snapchat-marketing=source_snapchat_marketing.run:run", + ], + }, name="source_snapchat_marketing", description="Source implementation for Snapchat Marketing.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-snapchat-marketing/source_snapchat_marketing/run.py b/airbyte-integrations/connectors/source-snapchat-marketing/source_snapchat_marketing/run.py new file mode 100644 index 000000000000..61c972da8a2d --- /dev/null +++ b/airbyte-integrations/connectors/source-snapchat-marketing/source_snapchat_marketing/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_snapchat_marketing import SourceSnapchatMarketing + + +def run(): + source = SourceSnapchatMarketing() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-sonar-cloud/main.py b/airbyte-integrations/connectors/source-sonar-cloud/main.py index 81355fadfed1..5ba429ba3211 100644 --- a/airbyte-integrations/connectors/source-sonar-cloud/main.py +++ b/airbyte-integrations/connectors/source-sonar-cloud/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_sonar_cloud import SourceSonarCloud +from source_sonar_cloud.run import run if __name__ == "__main__": - source = SourceSonarCloud() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-sonar-cloud/setup.py b/airbyte-integrations/connectors/source-sonar-cloud/setup.py index e99684d61a65..2f8f82301482 100644 --- a/airbyte-integrations/connectors/source-sonar-cloud/setup.py +++ b/airbyte-integrations/connectors/source-sonar-cloud/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-sonar-cloud=source_sonar_cloud.run:run", + ], + }, name="source_sonar_cloud", description="Source implementation for Sonar Cloud.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/run.py b/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/run.py new file mode 100644 index 000000000000..e29261106741 --- /dev/null +++ b/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_sonar_cloud import SourceSonarCloud + + +def run(): + source = SourceSonarCloud() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-spacex-api/main.py b/airbyte-integrations/connectors/source-spacex-api/main.py index 7ceab1979a8b..52f8d09f4508 100644 --- a/airbyte-integrations/connectors/source-spacex-api/main.py +++ b/airbyte-integrations/connectors/source-spacex-api/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_spacex_api import SourceSpacexApi +from source_spacex_api.run import run if __name__ == "__main__": - source = SourceSpacexApi() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-spacex-api/setup.py b/airbyte-integrations/connectors/source-spacex-api/setup.py index 2d202b30ec9a..00b9cc0110f4 100644 --- a/airbyte-integrations/connectors/source-spacex-api/setup.py +++ b/airbyte-integrations/connectors/source-spacex-api/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-spacex-api=source_spacex_api.run:run", + ], + }, name="source_spacex_api", description="Source implementation for Spacex Api.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-spacex-api/source_spacex_api/run.py b/airbyte-integrations/connectors/source-spacex-api/source_spacex_api/run.py new file mode 100644 index 000000000000..7baf4913b453 --- /dev/null +++ b/airbyte-integrations/connectors/source-spacex-api/source_spacex_api/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_spacex_api import SourceSpacexApi + + +def run(): + source = SourceSpacexApi() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-square/main.py b/airbyte-integrations/connectors/source-square/main.py index 064f99648db8..7102d93900cf 100644 --- a/airbyte-integrations/connectors/source-square/main.py +++ b/airbyte-integrations/connectors/source-square/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_square import SourceSquare +from source_square.run import run if __name__ == "__main__": - source = SourceSquare() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-square/setup.py b/airbyte-integrations/connectors/source-square/setup.py index fe3012decd5d..3b7c2204ad12 100644 --- a/airbyte-integrations/connectors/source-square/setup.py +++ b/airbyte-integrations/connectors/source-square/setup.py @@ -17,13 +17,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-square=source_square.run:run", + ], + }, name="source_square", description="Source implementation for Square.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-square/source_square/run.py b/airbyte-integrations/connectors/source-square/source_square/run.py new file mode 100644 index 000000000000..df5f3fd74012 --- /dev/null +++ b/airbyte-integrations/connectors/source-square/source_square/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_square import SourceSquare + + +def run(): + source = SourceSquare() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-statuspage/main.py b/airbyte-integrations/connectors/source-statuspage/main.py index 8046f076e8ab..2701aa6de07d 100644 --- a/airbyte-integrations/connectors/source-statuspage/main.py +++ b/airbyte-integrations/connectors/source-statuspage/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_statuspage import SourceStatuspage +from source_statuspage.run import run if __name__ == "__main__": - source = SourceStatuspage() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-statuspage/setup.py b/airbyte-integrations/connectors/source-statuspage/setup.py index 772fedc5e034..f7adbd694ed6 100644 --- a/airbyte-integrations/connectors/source-statuspage/setup.py +++ b/airbyte-integrations/connectors/source-statuspage/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-statuspage=source_statuspage.run:run", + ], + }, name="source_statuspage", description="Source implementation for Statuspage.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-statuspage/source_statuspage/run.py b/airbyte-integrations/connectors/source-statuspage/source_statuspage/run.py new file mode 100644 index 000000000000..d29716d7c02f --- /dev/null +++ b/airbyte-integrations/connectors/source-statuspage/source_statuspage/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_statuspage import SourceStatuspage + + +def run(): + source = SourceStatuspage() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-strava/main.py b/airbyte-integrations/connectors/source-strava/main.py index 054e4911089c..9fc5a4bb2918 100644 --- a/airbyte-integrations/connectors/source-strava/main.py +++ b/airbyte-integrations/connectors/source-strava/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_strava import SourceStrava +from source_strava.run import run if __name__ == "__main__": - source = SourceStrava() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-strava/setup.py b/airbyte-integrations/connectors/source-strava/setup.py index 8dda89709cd4..3bdc92646070 100644 --- a/airbyte-integrations/connectors/source-strava/setup.py +++ b/airbyte-integrations/connectors/source-strava/setup.py @@ -14,13 +14,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-strava=source_strava.run:run", + ], + }, name="source_strava", description="Source implementation for Strava.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-strava/source_strava/run.py b/airbyte-integrations/connectors/source-strava/source_strava/run.py new file mode 100644 index 000000000000..c8b1590993cd --- /dev/null +++ b/airbyte-integrations/connectors/source-strava/source_strava/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_strava import SourceStrava + + +def run(): + source = SourceStrava() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-stripe/setup.py b/airbyte-integrations/connectors/source-stripe/setup.py index c1b020664edb..e0203e616ad7 100644 --- a/airbyte-integrations/connectors/source-stripe/setup.py +++ b/airbyte-integrations/connectors/source-stripe/setup.py @@ -17,7 +17,19 @@ author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-survey-sparrow/main.py b/airbyte-integrations/connectors/source-survey-sparrow/main.py index 31056359d13b..5c4977542eaf 100644 --- a/airbyte-integrations/connectors/source-survey-sparrow/main.py +++ b/airbyte-integrations/connectors/source-survey-sparrow/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_survey_sparrow import SourceSurveySparrow +from source_survey_sparrow.run import run if __name__ == "__main__": - source = SourceSurveySparrow() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-survey-sparrow/setup.py b/airbyte-integrations/connectors/source-survey-sparrow/setup.py index da1ca261a46e..dfa0601abbde 100644 --- a/airbyte-integrations/connectors/source-survey-sparrow/setup.py +++ b/airbyte-integrations/connectors/source-survey-sparrow/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-survey-sparrow=source_survey_sparrow.run:run", + ], + }, name="source_survey_sparrow", description="Source implementation for Survey Sparrow.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-survey-sparrow/source_survey_sparrow/run.py b/airbyte-integrations/connectors/source-survey-sparrow/source_survey_sparrow/run.py new file mode 100644 index 000000000000..af39a841b3dd --- /dev/null +++ b/airbyte-integrations/connectors/source-survey-sparrow/source_survey_sparrow/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_survey_sparrow import SourceSurveySparrow + + +def run(): + source = SourceSurveySparrow() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-surveycto/main.py b/airbyte-integrations/connectors/source-surveycto/main.py index 4f26fe81785f..9f282dbc2ecd 100644 --- a/airbyte-integrations/connectors/source-surveycto/main.py +++ b/airbyte-integrations/connectors/source-surveycto/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_surveycto import SourceSurveycto +from source_surveycto.run import run if __name__ == "__main__": - source = SourceSurveycto() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-surveycto/setup.py b/airbyte-integrations/connectors/source-surveycto/setup.py index be5f78fbdd14..92e965e0651b 100644 --- a/airbyte-integrations/connectors/source-surveycto/setup.py +++ b/airbyte-integrations/connectors/source-surveycto/setup.py @@ -14,13 +14,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-surveycto=source_surveycto.run:run", + ], + }, name="source_surveycto", description="Source implementation for Surveycto.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-surveycto/source_surveycto/run.py b/airbyte-integrations/connectors/source-surveycto/source_surveycto/run.py new file mode 100644 index 000000000000..927d17c9eb1f --- /dev/null +++ b/airbyte-integrations/connectors/source-surveycto/source_surveycto/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_surveycto import SourceSurveycto + + +def run(): + source = SourceSurveycto() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-surveymonkey/main.py b/airbyte-integrations/connectors/source-surveymonkey/main.py index 7fd72e7dd38f..bf4f900ad377 100644 --- a/airbyte-integrations/connectors/source-surveymonkey/main.py +++ b/airbyte-integrations/connectors/source-surveymonkey/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_surveymonkey import SourceSurveymonkey +from source_surveymonkey.run import run if __name__ == "__main__": - source = SourceSurveymonkey() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-surveymonkey/setup.py b/airbyte-integrations/connectors/source-surveymonkey/setup.py index f70f3e894857..a72a0108a10b 100644 --- a/airbyte-integrations/connectors/source-surveymonkey/setup.py +++ b/airbyte-integrations/connectors/source-surveymonkey/setup.py @@ -10,6 +10,11 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest-mock~=3.6.1", "pytest~=6.1", "requests_mock"] setup( + entry_points={ + "console_scripts": [ + "source-surveymonkey=source_surveymonkey.run:run", + ], + }, name="source_surveymonkey", description="Source implementation for Surveymonkey.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/run.py b/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/run.py new file mode 100644 index 000000000000..f3cbc028402b --- /dev/null +++ b/airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_surveymonkey import SourceSurveymonkey + + +def run(): + source = SourceSurveymonkey() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-talkdesk-explore/main.py b/airbyte-integrations/connectors/source-talkdesk-explore/main.py index 33dcea10e90a..745a3f67e001 100644 --- a/airbyte-integrations/connectors/source-talkdesk-explore/main.py +++ b/airbyte-integrations/connectors/source-talkdesk-explore/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_talkdesk_explore import SourceTalkdeskExplore +from source_talkdesk_explore.run import run if __name__ == "__main__": - source = SourceTalkdeskExplore() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-talkdesk-explore/setup.py b/airbyte-integrations/connectors/source-talkdesk-explore/setup.py index 2694e175a333..5df2ba2853d0 100644 --- a/airbyte-integrations/connectors/source-talkdesk-explore/setup.py +++ b/airbyte-integrations/connectors/source-talkdesk-explore/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-talkdesk-explore=source_talkdesk_explore.run:run", + ], + }, name="source_talkdesk_explore", description="Source implementation for Talkdesk Explore API.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-talkdesk-explore/source_talkdesk_explore/run.py b/airbyte-integrations/connectors/source-talkdesk-explore/source_talkdesk_explore/run.py new file mode 100644 index 000000000000..442b84e5a278 --- /dev/null +++ b/airbyte-integrations/connectors/source-talkdesk-explore/source_talkdesk_explore/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_talkdesk_explore import SourceTalkdeskExplore + + +def run(): + source = SourceTalkdeskExplore() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-tempo/main.py b/airbyte-integrations/connectors/source-tempo/main.py index e26fc47cd806..d8f0e748fb2f 100644 --- a/airbyte-integrations/connectors/source-tempo/main.py +++ b/airbyte-integrations/connectors/source-tempo/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_tempo import SourceTempo +from source_tempo.run import run if __name__ == "__main__": - source = SourceTempo() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-tempo/setup.py b/airbyte-integrations/connectors/source-tempo/setup.py index 16051a8dfa6b..3e2668d10d6c 100644 --- a/airbyte-integrations/connectors/source-tempo/setup.py +++ b/airbyte-integrations/connectors/source-tempo/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-tempo=source_tempo.run:run", + ], + }, name="source_tempo", description="Source implementation for Tempo.", author="Thomas van Latum", diff --git a/airbyte-integrations/connectors/source-tempo/source_tempo/run.py b/airbyte-integrations/connectors/source-tempo/source_tempo/run.py new file mode 100644 index 000000000000..8883fc3f0a24 --- /dev/null +++ b/airbyte-integrations/connectors/source-tempo/source_tempo/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_tempo import SourceTempo + + +def run(): + source = SourceTempo() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-the-guardian-api/main.py b/airbyte-integrations/connectors/source-the-guardian-api/main.py index 96a88ceac666..50182e0c2da0 100644 --- a/airbyte-integrations/connectors/source-the-guardian-api/main.py +++ b/airbyte-integrations/connectors/source-the-guardian-api/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_the_guardian_api import SourceTheGuardianApi +from source_the_guardian_api.run import run if __name__ == "__main__": - source = SourceTheGuardianApi() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-the-guardian-api/setup.py b/airbyte-integrations/connectors/source-the-guardian-api/setup.py index 1fb11d947926..9627db8db884 100644 --- a/airbyte-integrations/connectors/source-the-guardian-api/setup.py +++ b/airbyte-integrations/connectors/source-the-guardian-api/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-the-guardian-api=source_the_guardian_api.run:run", + ], + }, name="source_the_guardian_api", description="Source implementation for The Guardian Api.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-the-guardian-api/source_the_guardian_api/run.py b/airbyte-integrations/connectors/source-the-guardian-api/source_the_guardian_api/run.py new file mode 100644 index 000000000000..eafbdfd35301 --- /dev/null +++ b/airbyte-integrations/connectors/source-the-guardian-api/source_the_guardian_api/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_the_guardian_api import SourceTheGuardianApi + + +def run(): + source = SourceTheGuardianApi() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-tiktok-marketing/main.py b/airbyte-integrations/connectors/source-tiktok-marketing/main.py index d20d9e211aa8..b523ea1b0fdd 100644 --- a/airbyte-integrations/connectors/source-tiktok-marketing/main.py +++ b/airbyte-integrations/connectors/source-tiktok-marketing/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_tiktok_marketing import SourceTiktokMarketing +from source_tiktok_marketing.run import run if __name__ == "__main__": - source = SourceTiktokMarketing() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-tiktok-marketing/setup.py b/airbyte-integrations/connectors/source-tiktok-marketing/setup.py index 3a5d282355a8..21896188c6be 100644 --- a/airbyte-integrations/connectors/source-tiktok-marketing/setup.py +++ b/airbyte-integrations/connectors/source-tiktok-marketing/setup.py @@ -10,6 +10,11 @@ TEST_REQUIREMENTS = ["pytest-mock~=3.6.1", "pytest~=6.1", "requests-mock==1.9.3", "timeout-decorator==0.5.0"] setup( + entry_points={ + "console_scripts": [ + "source-tiktok-marketing=source_tiktok_marketing.run:run", + ], + }, name="source_tiktok_marketing", description="Source implementation for Tiktok Marketing.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-tiktok-marketing/source_tiktok_marketing/run.py b/airbyte-integrations/connectors/source-tiktok-marketing/source_tiktok_marketing/run.py new file mode 100644 index 000000000000..341638b66529 --- /dev/null +++ b/airbyte-integrations/connectors/source-tiktok-marketing/source_tiktok_marketing/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_tiktok_marketing import SourceTiktokMarketing + + +def run(): + source = SourceTiktokMarketing() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-timely/main.py b/airbyte-integrations/connectors/source-timely/main.py index 674590cf1d99..1007e1945bc0 100644 --- a/airbyte-integrations/connectors/source-timely/main.py +++ b/airbyte-integrations/connectors/source-timely/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_timely import SourceTimely +from source_timely.run import run if __name__ == "__main__": - source = SourceTimely() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-timely/setup.py b/airbyte-integrations/connectors/source-timely/setup.py index 6dc55b4722ef..9004e784b613 100644 --- a/airbyte-integrations/connectors/source-timely/setup.py +++ b/airbyte-integrations/connectors/source-timely/setup.py @@ -10,13 +10,30 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.2", "pytest-mock~=3.6.1"] setup( + entry_points={ + "console_scripts": [ + "source-timely=source_timely.run:run", + ], + }, name="source_timely", description="Source implementation for Timely.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-timely/source_timely/run.py b/airbyte-integrations/connectors/source-timely/source_timely/run.py new file mode 100644 index 000000000000..6ead8b999eb9 --- /dev/null +++ b/airbyte-integrations/connectors/source-timely/source_timely/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_timely import SourceTimely + + +def run(): + source = SourceTimely() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-tmdb/main.py b/airbyte-integrations/connectors/source-tmdb/main.py index 8fb1b3a13296..de1e36196011 100644 --- a/airbyte-integrations/connectors/source-tmdb/main.py +++ b/airbyte-integrations/connectors/source-tmdb/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_tmdb import SourceTmdb +from source_tmdb.run import run if __name__ == "__main__": - source = SourceTmdb() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-tmdb/setup.py b/airbyte-integrations/connectors/source-tmdb/setup.py index 35310f227836..d1b20699bcf3 100644 --- a/airbyte-integrations/connectors/source-tmdb/setup.py +++ b/airbyte-integrations/connectors/source-tmdb/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-tmdb=source_tmdb.run:run", + ], + }, name="source_tmdb", description="Source implementation for Tmdb.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-tmdb/source_tmdb/run.py b/airbyte-integrations/connectors/source-tmdb/source_tmdb/run.py new file mode 100644 index 000000000000..100edabab0b1 --- /dev/null +++ b/airbyte-integrations/connectors/source-tmdb/source_tmdb/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_tmdb import SourceTmdb + + +def run(): + source = SourceTmdb() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-todoist/main.py b/airbyte-integrations/connectors/source-todoist/main.py index 21ae17e05de7..159e7dcdc036 100644 --- a/airbyte-integrations/connectors/source-todoist/main.py +++ b/airbyte-integrations/connectors/source-todoist/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_todoist import SourceTodoist +from source_todoist.run import run if __name__ == "__main__": - source = SourceTodoist() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-todoist/setup.py b/airbyte-integrations/connectors/source-todoist/setup.py index 3add92262189..601df38fd542 100644 --- a/airbyte-integrations/connectors/source-todoist/setup.py +++ b/airbyte-integrations/connectors/source-todoist/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-todoist=source_todoist.run:run", + ], + }, name="source_todoist", description="Source implementation for Todoist.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-todoist/source_todoist/run.py b/airbyte-integrations/connectors/source-todoist/source_todoist/run.py new file mode 100644 index 000000000000..b20e5a2d580f --- /dev/null +++ b/airbyte-integrations/connectors/source-todoist/source_todoist/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_todoist import SourceTodoist + + +def run(): + source = SourceTodoist() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-toggl/main.py b/airbyte-integrations/connectors/source-toggl/main.py index bd1b4defb2de..a52cb2ff9370 100644 --- a/airbyte-integrations/connectors/source-toggl/main.py +++ b/airbyte-integrations/connectors/source-toggl/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_toggl import SourceToggl +from source_toggl.run import run if __name__ == "__main__": - source = SourceToggl() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-toggl/setup.py b/airbyte-integrations/connectors/source-toggl/setup.py index bb481cee5328..cdd1baad6ba7 100644 --- a/airbyte-integrations/connectors/source-toggl/setup.py +++ b/airbyte-integrations/connectors/source-toggl/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-toggl=source_toggl.run:run", + ], + }, name="source_toggl", description="Source implementation for Toggl.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-toggl/source_toggl/run.py b/airbyte-integrations/connectors/source-toggl/source_toggl/run.py new file mode 100644 index 000000000000..fd06c41abef3 --- /dev/null +++ b/airbyte-integrations/connectors/source-toggl/source_toggl/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_toggl import SourceToggl + + +def run(): + source = SourceToggl() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-tplcentral/main.py b/airbyte-integrations/connectors/source-tplcentral/main.py index e8e5f30138f4..c5e7b8a95ec4 100644 --- a/airbyte-integrations/connectors/source-tplcentral/main.py +++ b/airbyte-integrations/connectors/source-tplcentral/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_tplcentral import SourceTplcentral +from source_tplcentral.run import run if __name__ == "__main__": - source = SourceTplcentral() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-tplcentral/setup.py b/airbyte-integrations/connectors/source-tplcentral/setup.py index 602d12056cb3..45cd0ff8a633 100644 --- a/airbyte-integrations/connectors/source-tplcentral/setup.py +++ b/airbyte-integrations/connectors/source-tplcentral/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-tplcentral=source_tplcentral.run:run", + ], + }, name="source_tplcentral", description="Source implementation for Tplcentral.", author="Labanoras Tech", diff --git a/airbyte-integrations/connectors/source-tplcentral/source_tplcentral/run.py b/airbyte-integrations/connectors/source-tplcentral/source_tplcentral/run.py new file mode 100644 index 000000000000..443a194ed6c1 --- /dev/null +++ b/airbyte-integrations/connectors/source-tplcentral/source_tplcentral/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_tplcentral import SourceTplcentral + + +def run(): + source = SourceTplcentral() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-trello/main.py b/airbyte-integrations/connectors/source-trello/main.py index c0657c0065fc..7b0b502fdb1e 100644 --- a/airbyte-integrations/connectors/source-trello/main.py +++ b/airbyte-integrations/connectors/source-trello/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_trello import SourceTrello +from source_trello.run import run if __name__ == "__main__": - source = SourceTrello() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-trello/setup.py b/airbyte-integrations/connectors/source-trello/setup.py index 38d12ba64785..85fd6920b1af 100644 --- a/airbyte-integrations/connectors/source-trello/setup.py +++ b/airbyte-integrations/connectors/source-trello/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-trello=source_trello.run:run", + ], + }, name="source_trello", description="Source implementation for Trello.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-trello/source_trello/run.py b/airbyte-integrations/connectors/source-trello/source_trello/run.py new file mode 100644 index 000000000000..628d22faf0db --- /dev/null +++ b/airbyte-integrations/connectors/source-trello/source_trello/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_trello import SourceTrello + + +def run(): + source = SourceTrello() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-trustpilot/main.py b/airbyte-integrations/connectors/source-trustpilot/main.py index f0cd7b4265e5..27e409441e33 100644 --- a/airbyte-integrations/connectors/source-trustpilot/main.py +++ b/airbyte-integrations/connectors/source-trustpilot/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_trustpilot import SourceTrustpilot +from source_trustpilot.run import run if __name__ == "__main__": - source = SourceTrustpilot() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-trustpilot/setup.py b/airbyte-integrations/connectors/source-trustpilot/setup.py index 4b8001807ec1..7c61c708d96e 100644 --- a/airbyte-integrations/connectors/source-trustpilot/setup.py +++ b/airbyte-integrations/connectors/source-trustpilot/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-trustpilot=source_trustpilot.run:run", + ], + }, name="source_trustpilot", description="Source implementation for Trustpilot.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-trustpilot/source_trustpilot/run.py b/airbyte-integrations/connectors/source-trustpilot/source_trustpilot/run.py new file mode 100644 index 000000000000..40c488dbf9a7 --- /dev/null +++ b/airbyte-integrations/connectors/source-trustpilot/source_trustpilot/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_trustpilot import SourceTrustpilot + + +def run(): + source = SourceTrustpilot() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-tvmaze-schedule/main.py b/airbyte-integrations/connectors/source-tvmaze-schedule/main.py index 3a530f427a6f..be6abd8ef07c 100644 --- a/airbyte-integrations/connectors/source-tvmaze-schedule/main.py +++ b/airbyte-integrations/connectors/source-tvmaze-schedule/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_tvmaze_schedule import SourceTvmazeSchedule +from source_tvmaze_schedule.run import run if __name__ == "__main__": - source = SourceTvmazeSchedule() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-tvmaze-schedule/setup.py b/airbyte-integrations/connectors/source-tvmaze-schedule/setup.py index 77c97057564e..800761e02c23 100644 --- a/airbyte-integrations/connectors/source-tvmaze-schedule/setup.py +++ b/airbyte-integrations/connectors/source-tvmaze-schedule/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-tvmaze-schedule=source_tvmaze_schedule.run:run", + ], + }, name="source_tvmaze_schedule", description="Source implementation for Tvmaze Schedule.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-tvmaze-schedule/source_tvmaze_schedule/run.py b/airbyte-integrations/connectors/source-tvmaze-schedule/source_tvmaze_schedule/run.py new file mode 100644 index 000000000000..24cdb98bf699 --- /dev/null +++ b/airbyte-integrations/connectors/source-tvmaze-schedule/source_tvmaze_schedule/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_tvmaze_schedule import SourceTvmazeSchedule + + +def run(): + source = SourceTvmazeSchedule() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-twilio-taskrouter/main.py b/airbyte-integrations/connectors/source-twilio-taskrouter/main.py index 792fa7db3284..94a3a9659fe9 100644 --- a/airbyte-integrations/connectors/source-twilio-taskrouter/main.py +++ b/airbyte-integrations/connectors/source-twilio-taskrouter/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_twilio_taskrouter import SourceTwilioTaskrouter +from source_twilio_taskrouter.run import run if __name__ == "__main__": - source = SourceTwilioTaskrouter() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-twilio-taskrouter/setup.py b/airbyte-integrations/connectors/source-twilio-taskrouter/setup.py index be86feef816f..2d7ea97c9833 100644 --- a/airbyte-integrations/connectors/source-twilio-taskrouter/setup.py +++ b/airbyte-integrations/connectors/source-twilio-taskrouter/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-twilio-taskrouter=source_twilio_taskrouter.run:run", + ], + }, name="source_twilio_taskrouter", description="Source implementation for Twilio Taskrouter.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-twilio-taskrouter/source_twilio_taskrouter/run.py b/airbyte-integrations/connectors/source-twilio-taskrouter/source_twilio_taskrouter/run.py new file mode 100644 index 000000000000..6c677af9dd2c --- /dev/null +++ b/airbyte-integrations/connectors/source-twilio-taskrouter/source_twilio_taskrouter/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_twilio_taskrouter import SourceTwilioTaskrouter + + +def run(): + source = SourceTwilioTaskrouter() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-twilio/main.py b/airbyte-integrations/connectors/source-twilio/main.py index 8f91bc04c56f..0999d1e67f26 100644 --- a/airbyte-integrations/connectors/source-twilio/main.py +++ b/airbyte-integrations/connectors/source-twilio/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_twilio import SourceTwilio +from source_twilio.run import run if __name__ == "__main__": - source = SourceTwilio() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-twilio/setup.py b/airbyte-integrations/connectors/source-twilio/setup.py index 66a2cb8a7ee0..19717cccc42f 100644 --- a/airbyte-integrations/connectors/source-twilio/setup.py +++ b/airbyte-integrations/connectors/source-twilio/setup.py @@ -14,6 +14,11 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.1", "pytest-mock", "requests_mock", "freezegun"] setup( + entry_points={ + "console_scripts": [ + "source-twilio=source_twilio.run:run", + ], + }, name="source_twilio", description="Source implementation for Twilio.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-twilio/source_twilio/run.py b/airbyte-integrations/connectors/source-twilio/source_twilio/run.py new file mode 100644 index 000000000000..bb95086d7eba --- /dev/null +++ b/airbyte-integrations/connectors/source-twilio/source_twilio/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_twilio import SourceTwilio + + +def run(): + source = SourceTwilio() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-twitter/main.py b/airbyte-integrations/connectors/source-twitter/main.py index 3e6dae60da34..f50219e6455c 100644 --- a/airbyte-integrations/connectors/source-twitter/main.py +++ b/airbyte-integrations/connectors/source-twitter/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_twitter import SourceTwitter +from source_twitter.run import run if __name__ == "__main__": - source = SourceTwitter() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-twitter/setup.py b/airbyte-integrations/connectors/source-twitter/setup.py index bcc921fcba46..e85c1d404a2a 100644 --- a/airbyte-integrations/connectors/source-twitter/setup.py +++ b/airbyte-integrations/connectors/source-twitter/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-twitter=source_twitter.run:run", + ], + }, name="source_twitter", description="Source implementation for Twitter.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-twitter/source_twitter/run.py b/airbyte-integrations/connectors/source-twitter/source_twitter/run.py new file mode 100644 index 000000000000..4c18e4636da4 --- /dev/null +++ b/airbyte-integrations/connectors/source-twitter/source_twitter/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_twitter import SourceTwitter + + +def run(): + source = SourceTwitter() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-tyntec-sms/main.py b/airbyte-integrations/connectors/source-tyntec-sms/main.py index 37e104247846..142de37101e6 100644 --- a/airbyte-integrations/connectors/source-tyntec-sms/main.py +++ b/airbyte-integrations/connectors/source-tyntec-sms/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_tyntec_sms import SourceTyntecSms +from source_tyntec_sms.run import run if __name__ == "__main__": - source = SourceTyntecSms() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-tyntec-sms/setup.py b/airbyte-integrations/connectors/source-tyntec-sms/setup.py index 1a15c6223694..832b4139ef2d 100644 --- a/airbyte-integrations/connectors/source-tyntec-sms/setup.py +++ b/airbyte-integrations/connectors/source-tyntec-sms/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-tyntec-sms=source_tyntec_sms.run:run", + ], + }, name="source_tyntec_sms", description="Source implementation for Tyntec Sms.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-tyntec-sms/source_tyntec_sms/run.py b/airbyte-integrations/connectors/source-tyntec-sms/source_tyntec_sms/run.py new file mode 100644 index 000000000000..cd08f8c0c7ee --- /dev/null +++ b/airbyte-integrations/connectors/source-tyntec-sms/source_tyntec_sms/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_tyntec_sms import SourceTyntecSms + + +def run(): + source = SourceTyntecSms() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-typeform/setup.py b/airbyte-integrations/connectors/source-typeform/setup.py index 09b119b93869..1caa440b9122 100644 --- a/airbyte-integrations/connectors/source-typeform/setup.py +++ b/airbyte-integrations/connectors/source-typeform/setup.py @@ -21,7 +21,19 @@ author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-unleash/main.py b/airbyte-integrations/connectors/source-unleash/main.py index 9e57236c979a..72ec2c888dcb 100644 --- a/airbyte-integrations/connectors/source-unleash/main.py +++ b/airbyte-integrations/connectors/source-unleash/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_unleash import SourceUnleash +from source_unleash.run import run if __name__ == "__main__": - source = SourceUnleash() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-unleash/setup.py b/airbyte-integrations/connectors/source-unleash/setup.py index 8c00746f3fd4..9822815f03ce 100644 --- a/airbyte-integrations/connectors/source-unleash/setup.py +++ b/airbyte-integrations/connectors/source-unleash/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-unleash=source_unleash.run:run", + ], + }, name="source_unleash", description="Source implementation for Unleash.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-unleash/source_unleash/run.py b/airbyte-integrations/connectors/source-unleash/source_unleash/run.py new file mode 100644 index 000000000000..0de14599b8b3 --- /dev/null +++ b/airbyte-integrations/connectors/source-unleash/source_unleash/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_unleash import SourceUnleash + + +def run(): + source = SourceUnleash() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-us-census/main.py b/airbyte-integrations/connectors/source-us-census/main.py index 95978af82418..c46fd28c9ce6 100644 --- a/airbyte-integrations/connectors/source-us-census/main.py +++ b/airbyte-integrations/connectors/source-us-census/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_us_census import SourceUsCensus +from source_us_census.run import run if __name__ == "__main__": - source = SourceUsCensus() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-us-census/setup.py b/airbyte-integrations/connectors/source-us-census/setup.py index 7b2b4ebc83ec..bf3858455362 100644 --- a/airbyte-integrations/connectors/source-us-census/setup.py +++ b/airbyte-integrations/connectors/source-us-census/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-us-census=source_us_census.run:run", + ], + }, name="source_us_census", description="Source implementation for Us Census.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-us-census/source_us_census/run.py b/airbyte-integrations/connectors/source-us-census/source_us_census/run.py new file mode 100644 index 000000000000..20b8b7eedd0c --- /dev/null +++ b/airbyte-integrations/connectors/source-us-census/source_us_census/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_us_census import SourceUsCensus + + +def run(): + source = SourceUsCensus() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-vantage/main.py b/airbyte-integrations/connectors/source-vantage/main.py index fdec95252d78..eab761b3302d 100644 --- a/airbyte-integrations/connectors/source-vantage/main.py +++ b/airbyte-integrations/connectors/source-vantage/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_vantage import SourceVantage +from source_vantage.run import run if __name__ == "__main__": - source = SourceVantage() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-vantage/setup.py b/airbyte-integrations/connectors/source-vantage/setup.py index 11fe68724009..6f3c091a99c3 100644 --- a/airbyte-integrations/connectors/source-vantage/setup.py +++ b/airbyte-integrations/connectors/source-vantage/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-vantage=source_vantage.run:run", + ], + }, name="source_vantage", description="Source implementation for Vantage.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-vantage/source_vantage/run.py b/airbyte-integrations/connectors/source-vantage/source_vantage/run.py new file mode 100644 index 000000000000..a9c2ee3eb36a --- /dev/null +++ b/airbyte-integrations/connectors/source-vantage/source_vantage/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_vantage import SourceVantage + + +def run(): + source = SourceVantage() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-visma-economic/main.py b/airbyte-integrations/connectors/source-visma-economic/main.py index f5a5d1e8f883..ae896df1e48f 100644 --- a/airbyte-integrations/connectors/source-visma-economic/main.py +++ b/airbyte-integrations/connectors/source-visma-economic/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_visma_economic import SourceVismaEconomic +from source_visma_economic.run import run if __name__ == "__main__": - source = SourceVismaEconomic() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-visma-economic/setup.py b/airbyte-integrations/connectors/source-visma-economic/setup.py index 9574bffc86ff..aca046a78f08 100644 --- a/airbyte-integrations/connectors/source-visma-economic/setup.py +++ b/airbyte-integrations/connectors/source-visma-economic/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-visma-economic=source_visma_economic.run:run", + ], + }, name="source_visma_economic", description="Source implementation for Visma Economic.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-visma-economic/source_visma_economic/run.py b/airbyte-integrations/connectors/source-visma-economic/source_visma_economic/run.py new file mode 100644 index 000000000000..4c8146aa54ec --- /dev/null +++ b/airbyte-integrations/connectors/source-visma-economic/source_visma_economic/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_visma_economic import SourceVismaEconomic + + +def run(): + source = SourceVismaEconomic() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-vitally/main.py b/airbyte-integrations/connectors/source-vitally/main.py index d03f28ec1f1b..1410ead03c39 100644 --- a/airbyte-integrations/connectors/source-vitally/main.py +++ b/airbyte-integrations/connectors/source-vitally/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_vitally import SourceVitally +from source_vitally.run import run if __name__ == "__main__": - source = SourceVitally() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-vitally/setup.py b/airbyte-integrations/connectors/source-vitally/setup.py index f7091d2171d5..d0adc3fc2c1f 100644 --- a/airbyte-integrations/connectors/source-vitally/setup.py +++ b/airbyte-integrations/connectors/source-vitally/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-vitally=source_vitally.run:run", + ], + }, name="source_vitally", description="Source implementation for Vitally.", author="Elliot Trabac", author_email="elliot.trabac1@gmail.com", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-vitally/source_vitally/run.py b/airbyte-integrations/connectors/source-vitally/source_vitally/run.py new file mode 100644 index 000000000000..1c6c2f841ed9 --- /dev/null +++ b/airbyte-integrations/connectors/source-vitally/source_vitally/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_vitally import SourceVitally + + +def run(): + source = SourceVitally() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-waiteraid/main.py b/airbyte-integrations/connectors/source-waiteraid/main.py index 0ba9d249cc5a..50171148de01 100644 --- a/airbyte-integrations/connectors/source-waiteraid/main.py +++ b/airbyte-integrations/connectors/source-waiteraid/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_waiteraid import SourceWaiteraid +from source_waiteraid.run import run if __name__ == "__main__": - source = SourceWaiteraid() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-waiteraid/setup.py b/airbyte-integrations/connectors/source-waiteraid/setup.py index fe5d754e3df5..e2dc21a8895f 100644 --- a/airbyte-integrations/connectors/source-waiteraid/setup.py +++ b/airbyte-integrations/connectors/source-waiteraid/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-waiteraid=source_waiteraid.run:run", + ], + }, name="source_waiteraid", description="Source implementation for Waiteraid.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-waiteraid/source_waiteraid/run.py b/airbyte-integrations/connectors/source-waiteraid/source_waiteraid/run.py new file mode 100644 index 000000000000..5219abc38724 --- /dev/null +++ b/airbyte-integrations/connectors/source-waiteraid/source_waiteraid/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_waiteraid import SourceWaiteraid + + +def run(): + source = SourceWaiteraid() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-weatherstack/main.py b/airbyte-integrations/connectors/source-weatherstack/main.py index 1924e100bb8d..83c59afceaf5 100644 --- a/airbyte-integrations/connectors/source-weatherstack/main.py +++ b/airbyte-integrations/connectors/source-weatherstack/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_weatherstack import SourceWeatherstack +from source_weatherstack.run import run if __name__ == "__main__": - source = SourceWeatherstack() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-weatherstack/setup.py b/airbyte-integrations/connectors/source-weatherstack/setup.py index 98887751b488..207fe4d3c13d 100644 --- a/airbyte-integrations/connectors/source-weatherstack/setup.py +++ b/airbyte-integrations/connectors/source-weatherstack/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-weatherstack=source_weatherstack.run:run", + ], + }, name="source_weatherstack", description="Source implementation for Weatherstack.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-weatherstack/source_weatherstack/run.py b/airbyte-integrations/connectors/source-weatherstack/source_weatherstack/run.py new file mode 100644 index 000000000000..07f3930dd2b2 --- /dev/null +++ b/airbyte-integrations/connectors/source-weatherstack/source_weatherstack/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_weatherstack import SourceWeatherstack + + +def run(): + source = SourceWeatherstack() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-webflow/main.py b/airbyte-integrations/connectors/source-webflow/main.py index f35348e338c3..4d481e07151b 100644 --- a/airbyte-integrations/connectors/source-webflow/main.py +++ b/airbyte-integrations/connectors/source-webflow/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_webflow import SourceWebflow +from source_webflow.run import run if __name__ == "__main__": - source = SourceWebflow() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-webflow/setup.py b/airbyte-integrations/connectors/source-webflow/setup.py index 6912dcae7d7c..1d604e8b4ea1 100644 --- a/airbyte-integrations/connectors/source-webflow/setup.py +++ b/airbyte-integrations/connectors/source-webflow/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-webflow=source_webflow.run:run", + ], + }, name="source_webflow", description="Source implementation for Webflow.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-webflow/source_webflow/run.py b/airbyte-integrations/connectors/source-webflow/source_webflow/run.py new file mode 100644 index 000000000000..a71297a1d6a2 --- /dev/null +++ b/airbyte-integrations/connectors/source-webflow/source_webflow/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_webflow import SourceWebflow + + +def run(): + source = SourceWebflow() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-whisky-hunter/main.py b/airbyte-integrations/connectors/source-whisky-hunter/main.py index b9e7c8a1c682..76cf72379579 100644 --- a/airbyte-integrations/connectors/source-whisky-hunter/main.py +++ b/airbyte-integrations/connectors/source-whisky-hunter/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_whisky_hunter import SourceWhiskyHunter +from source_whisky_hunter.run import run if __name__ == "__main__": - source = SourceWhiskyHunter() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-whisky-hunter/setup.py b/airbyte-integrations/connectors/source-whisky-hunter/setup.py index 6ea55fe522d9..6b48b33f68c8 100644 --- a/airbyte-integrations/connectors/source-whisky-hunter/setup.py +++ b/airbyte-integrations/connectors/source-whisky-hunter/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-whisky-hunter=source_whisky_hunter.run:run", + ], + }, name="source_whisky_hunter", description="Source implementation for Whisky Hunter.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-whisky-hunter/source_whisky_hunter/run.py b/airbyte-integrations/connectors/source-whisky-hunter/source_whisky_hunter/run.py new file mode 100644 index 000000000000..2af9bbe54e12 --- /dev/null +++ b/airbyte-integrations/connectors/source-whisky-hunter/source_whisky_hunter/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_whisky_hunter import SourceWhiskyHunter + + +def run(): + source = SourceWhiskyHunter() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-wikipedia-pageviews/main.py b/airbyte-integrations/connectors/source-wikipedia-pageviews/main.py index 3f284fc2e06f..1ba1f8403240 100755 --- a/airbyte-integrations/connectors/source-wikipedia-pageviews/main.py +++ b/airbyte-integrations/connectors/source-wikipedia-pageviews/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_wikipedia_pageviews import SourceWikipediaPageviews +from source_wikipedia_pageviews.run import run if __name__ == "__main__": - source = SourceWikipediaPageviews() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-wikipedia-pageviews/setup.py b/airbyte-integrations/connectors/source-wikipedia-pageviews/setup.py index 9716b7daa4ee..f946706e21f9 100755 --- a/airbyte-integrations/connectors/source-wikipedia-pageviews/setup.py +++ b/airbyte-integrations/connectors/source-wikipedia-pageviews/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-wikipedia-pageviews=source_wikipedia_pageviews.run:run", + ], + }, name="source_wikipedia_pageviews", description="Source implementation for Wikipedia Pageviews.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-wikipedia-pageviews/source_wikipedia_pageviews/run.py b/airbyte-integrations/connectors/source-wikipedia-pageviews/source_wikipedia_pageviews/run.py new file mode 100755 index 000000000000..d77093ecb81b --- /dev/null +++ b/airbyte-integrations/connectors/source-wikipedia-pageviews/source_wikipedia_pageviews/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_wikipedia_pageviews import SourceWikipediaPageviews + + +def run(): + source = SourceWikipediaPageviews() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-woocommerce/main.py b/airbyte-integrations/connectors/source-woocommerce/main.py index 606cdff539ba..1fae4df4545e 100644 --- a/airbyte-integrations/connectors/source-woocommerce/main.py +++ b/airbyte-integrations/connectors/source-woocommerce/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_woocommerce import SourceWoocommerce +from source_woocommerce.run import run if __name__ == "__main__": - source = SourceWoocommerce() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-woocommerce/setup.py b/airbyte-integrations/connectors/source-woocommerce/setup.py index 40945a630f15..c69b2f251935 100644 --- a/airbyte-integrations/connectors/source-woocommerce/setup.py +++ b/airbyte-integrations/connectors/source-woocommerce/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-woocommerce=source_woocommerce.run:run", + ], + }, name="source_woocommerce", description="Source implementation for Woocommerce.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-woocommerce/source_woocommerce/run.py b/airbyte-integrations/connectors/source-woocommerce/source_woocommerce/run.py new file mode 100644 index 000000000000..b53f1bed41bb --- /dev/null +++ b/airbyte-integrations/connectors/source-woocommerce/source_woocommerce/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_woocommerce import SourceWoocommerce + + +def run(): + source = SourceWoocommerce() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-workable/main.py b/airbyte-integrations/connectors/source-workable/main.py index 9ca2a8507540..7c63dc17331b 100644 --- a/airbyte-integrations/connectors/source-workable/main.py +++ b/airbyte-integrations/connectors/source-workable/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_workable import SourceWorkable +from source_workable.run import run if __name__ == "__main__": - source = SourceWorkable() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-workable/setup.py b/airbyte-integrations/connectors/source-workable/setup.py index 67f123878709..e35ab25501c6 100644 --- a/airbyte-integrations/connectors/source-workable/setup.py +++ b/airbyte-integrations/connectors/source-workable/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-workable=source_workable.run:run", + ], + }, name="source_workable", description="Source implementation for Workable.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-workable/source_workable/run.py b/airbyte-integrations/connectors/source-workable/source_workable/run.py new file mode 100644 index 000000000000..5b838949c4ef --- /dev/null +++ b/airbyte-integrations/connectors/source-workable/source_workable/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_workable import SourceWorkable + + +def run(): + source = SourceWorkable() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-workramp/main.py b/airbyte-integrations/connectors/source-workramp/main.py index c18f064ccead..7b2a20cedcac 100644 --- a/airbyte-integrations/connectors/source-workramp/main.py +++ b/airbyte-integrations/connectors/source-workramp/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_workramp import SourceWorkramp +from source_workramp.run import run if __name__ == "__main__": - source = SourceWorkramp() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-workramp/setup.py b/airbyte-integrations/connectors/source-workramp/setup.py index a2b4fc952a19..eb12a1398b9c 100644 --- a/airbyte-integrations/connectors/source-workramp/setup.py +++ b/airbyte-integrations/connectors/source-workramp/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-workramp=source_workramp.run:run", + ], + }, name="source_workramp", description="Source implementation for Workramp.", author="Elliot Trabac", author_email="elliot.trabac1@gmail.com", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-workramp/source_workramp/run.py b/airbyte-integrations/connectors/source-workramp/source_workramp/run.py new file mode 100644 index 000000000000..6b56635b93cb --- /dev/null +++ b/airbyte-integrations/connectors/source-workramp/source_workramp/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_workramp import SourceWorkramp + + +def run(): + source = SourceWorkramp() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-wrike/main.py b/airbyte-integrations/connectors/source-wrike/main.py index 5f853be26873..4c1d0cd0f5fa 100644 --- a/airbyte-integrations/connectors/source-wrike/main.py +++ b/airbyte-integrations/connectors/source-wrike/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_wrike import SourceWrike +from source_wrike.run import run if __name__ == "__main__": - source = SourceWrike() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-wrike/setup.py b/airbyte-integrations/connectors/source-wrike/setup.py index a3c314147ca7..63714da0ca09 100644 --- a/airbyte-integrations/connectors/source-wrike/setup.py +++ b/airbyte-integrations/connectors/source-wrike/setup.py @@ -12,13 +12,30 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.2", "pytest-mock~=3.6.1"] setup( + entry_points={ + "console_scripts": [ + "source-wrike=source_wrike.run:run", + ], + }, name="source_wrike", description="Source implementation for Wrike.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-wrike/source_wrike/run.py b/airbyte-integrations/connectors/source-wrike/source_wrike/run.py new file mode 100644 index 000000000000..5795da526154 --- /dev/null +++ b/airbyte-integrations/connectors/source-wrike/source_wrike/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_wrike import SourceWrike + + +def run(): + source = SourceWrike() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-xero/setup.py b/airbyte-integrations/connectors/source-xero/setup.py index 89541436cfd3..31cd43ef5838 100644 --- a/airbyte-integrations/connectors/source-xero/setup.py +++ b/airbyte-integrations/connectors/source-xero/setup.py @@ -27,7 +27,19 @@ author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-xkcd/main.py b/airbyte-integrations/connectors/source-xkcd/main.py index c0de98487459..ea20bdf50104 100644 --- a/airbyte-integrations/connectors/source-xkcd/main.py +++ b/airbyte-integrations/connectors/source-xkcd/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_xkcd import SourceXkcd +from source_xkcd.run import run if __name__ == "__main__": - source = SourceXkcd() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-xkcd/setup.py b/airbyte-integrations/connectors/source-xkcd/setup.py index 7fe43ebd17d6..f6c8db1ffa16 100644 --- a/airbyte-integrations/connectors/source-xkcd/setup.py +++ b/airbyte-integrations/connectors/source-xkcd/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-xkcd=source_xkcd.run:run", + ], + }, name="source_xkcd", description="Source implementation for Xkcd.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-xkcd/source_xkcd/run.py b/airbyte-integrations/connectors/source-xkcd/source_xkcd/run.py new file mode 100644 index 000000000000..3e056bd11961 --- /dev/null +++ b/airbyte-integrations/connectors/source-xkcd/source_xkcd/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_xkcd import SourceXkcd + + +def run(): + source = SourceXkcd() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-yahoo-finance-price/main.py b/airbyte-integrations/connectors/source-yahoo-finance-price/main.py index 7f376eec167c..3b00718b8391 100644 --- a/airbyte-integrations/connectors/source-yahoo-finance-price/main.py +++ b/airbyte-integrations/connectors/source-yahoo-finance-price/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_yahoo_finance_price import SourceYahooFinancePrice +from source_yahoo_finance_price.run import run if __name__ == "__main__": - source = SourceYahooFinancePrice() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-yahoo-finance-price/setup.py b/airbyte-integrations/connectors/source-yahoo-finance-price/setup.py index 862dc4e0083d..e010bdc6daee 100644 --- a/airbyte-integrations/connectors/source-yahoo-finance-price/setup.py +++ b/airbyte-integrations/connectors/source-yahoo-finance-price/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-yahoo-finance-price=source_yahoo_finance_price.run:run", + ], + }, name="source_yahoo_finance_price", description="Source implementation for Yahoo Finance Price.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-yahoo-finance-price/source_yahoo_finance_price/run.py b/airbyte-integrations/connectors/source-yahoo-finance-price/source_yahoo_finance_price/run.py new file mode 100644 index 000000000000..d24a645a4183 --- /dev/null +++ b/airbyte-integrations/connectors/source-yahoo-finance-price/source_yahoo_finance_price/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_yahoo_finance_price import SourceYahooFinancePrice + + +def run(): + source = SourceYahooFinancePrice() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-yandex-metrica/main.py b/airbyte-integrations/connectors/source-yandex-metrica/main.py index 6c6a7edcc353..a84b23e0a261 100644 --- a/airbyte-integrations/connectors/source-yandex-metrica/main.py +++ b/airbyte-integrations/connectors/source-yandex-metrica/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_yandex_metrica import SourceYandexMetrica +from source_yandex_metrica.run import run if __name__ == "__main__": - source = SourceYandexMetrica() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-yandex-metrica/setup.py b/airbyte-integrations/connectors/source-yandex-metrica/setup.py index ce5d5b361010..adebbc0e9bb2 100644 --- a/airbyte-integrations/connectors/source-yandex-metrica/setup.py +++ b/airbyte-integrations/connectors/source-yandex-metrica/setup.py @@ -10,13 +10,30 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "freezegun", "pytest~=6.1", "pytest-mock", "requests_mock"] setup( + entry_points={ + "console_scripts": [ + "source-yandex-metrica=source_yandex_metrica.run:run", + ], + }, name="source_yandex_metrica", description="Source implementation for Yandex Metrica.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-yandex-metrica/source_yandex_metrica/run.py b/airbyte-integrations/connectors/source-yandex-metrica/source_yandex_metrica/run.py new file mode 100644 index 000000000000..69e34c3d1740 --- /dev/null +++ b/airbyte-integrations/connectors/source-yandex-metrica/source_yandex_metrica/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_yandex_metrica import SourceYandexMetrica + + +def run(): + source = SourceYandexMetrica() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-yotpo/main.py b/airbyte-integrations/connectors/source-yotpo/main.py index d456ca2abab3..968a262f7f26 100644 --- a/airbyte-integrations/connectors/source-yotpo/main.py +++ b/airbyte-integrations/connectors/source-yotpo/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_yotpo import SourceYotpo +from source_yotpo.run import run if __name__ == "__main__": - source = SourceYotpo() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-yotpo/setup.py b/airbyte-integrations/connectors/source-yotpo/setup.py index ed41819fb6d9..4d1d2163dbbd 100644 --- a/airbyte-integrations/connectors/source-yotpo/setup.py +++ b/airbyte-integrations/connectors/source-yotpo/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-yotpo=source_yotpo.run:run", + ], + }, name="source_yotpo", description="Source implementation for Yotpo.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-yotpo/source_yotpo/run.py b/airbyte-integrations/connectors/source-yotpo/source_yotpo/run.py new file mode 100644 index 000000000000..d302e5b2f4dd --- /dev/null +++ b/airbyte-integrations/connectors/source-yotpo/source_yotpo/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_yotpo import SourceYotpo + + +def run(): + source = SourceYotpo() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-younium/main.py b/airbyte-integrations/connectors/source-younium/main.py index 311b077eb084..8fcc0a655630 100644 --- a/airbyte-integrations/connectors/source-younium/main.py +++ b/airbyte-integrations/connectors/source-younium/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_younium import SourceYounium +from source_younium.run import run if __name__ == "__main__": - source = SourceYounium() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-younium/setup.py b/airbyte-integrations/connectors/source-younium/setup.py index 2a8872be5287..25ca4c963925 100644 --- a/airbyte-integrations/connectors/source-younium/setup.py +++ b/airbyte-integrations/connectors/source-younium/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-younium=source_younium.run:run", + ], + }, name="source_younium", description="Source implementation for Younium.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-younium/source_younium/run.py b/airbyte-integrations/connectors/source-younium/source_younium/run.py new file mode 100644 index 000000000000..5250f8d9bd94 --- /dev/null +++ b/airbyte-integrations/connectors/source-younium/source_younium/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_younium import SourceYounium + + +def run(): + source = SourceYounium() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-youtube-analytics/main.py b/airbyte-integrations/connectors/source-youtube-analytics/main.py index 046af990bcb0..f2542cccc965 100644 --- a/airbyte-integrations/connectors/source-youtube-analytics/main.py +++ b/airbyte-integrations/connectors/source-youtube-analytics/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_youtube_analytics import SourceYoutubeAnalytics +from source_youtube_analytics.run import run if __name__ == "__main__": - source = SourceYoutubeAnalytics() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-youtube-analytics/setup.py b/airbyte-integrations/connectors/source-youtube-analytics/setup.py index 795c2044a1ca..9b17c4365ad8 100644 --- a/airbyte-integrations/connectors/source-youtube-analytics/setup.py +++ b/airbyte-integrations/connectors/source-youtube-analytics/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-youtube-analytics=source_youtube_analytics.run:run", + ], + }, name="source_youtube_analytics", description="Source implementation for Youtube Analytics.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-youtube-analytics/source_youtube_analytics/run.py b/airbyte-integrations/connectors/source-youtube-analytics/source_youtube_analytics/run.py new file mode 100644 index 000000000000..27f8967eff43 --- /dev/null +++ b/airbyte-integrations/connectors/source-youtube-analytics/source_youtube_analytics/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_youtube_analytics import SourceYoutubeAnalytics + + +def run(): + source = SourceYoutubeAnalytics() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-zapier-supported-storage/main.py b/airbyte-integrations/connectors/source-zapier-supported-storage/main.py index b65c91f88848..8de0f27f55af 100644 --- a/airbyte-integrations/connectors/source-zapier-supported-storage/main.py +++ b/airbyte-integrations/connectors/source-zapier-supported-storage/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_zapier_supported_storage import SourceZapierSupportedStorage +from source_zapier_supported_storage.run import run if __name__ == "__main__": - source = SourceZapierSupportedStorage() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-zapier-supported-storage/setup.py b/airbyte-integrations/connectors/source-zapier-supported-storage/setup.py index 1ffccc828857..9feb0c8cde94 100644 --- a/airbyte-integrations/connectors/source-zapier-supported-storage/setup.py +++ b/airbyte-integrations/connectors/source-zapier-supported-storage/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-zapier-supported-storage=source_zapier_supported_storage.run:run", + ], + }, name="source_zapier_supported_storage", description="Source implementation for Zapier Supported Storage.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-zapier-supported-storage/source_zapier_supported_storage/run.py b/airbyte-integrations/connectors/source-zapier-supported-storage/source_zapier_supported_storage/run.py new file mode 100644 index 000000000000..a3777475b5b8 --- /dev/null +++ b/airbyte-integrations/connectors/source-zapier-supported-storage/source_zapier_supported_storage/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_zapier_supported_storage import SourceZapierSupportedStorage + + +def run(): + source = SourceZapierSupportedStorage() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-zendesk-sell/main.py b/airbyte-integrations/connectors/source-zendesk-sell/main.py index 6f01a3b8f7a8..e57dccf7d35e 100644 --- a/airbyte-integrations/connectors/source-zendesk-sell/main.py +++ b/airbyte-integrations/connectors/source-zendesk-sell/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_zendesk_sell import SourceZendeskSell +from source_zendesk_sell.run import run if __name__ == "__main__": - source = SourceZendeskSell() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-zendesk-sell/setup.py b/airbyte-integrations/connectors/source-zendesk-sell/setup.py index 054742fb41d4..a789b08aeb99 100644 --- a/airbyte-integrations/connectors/source-zendesk-sell/setup.py +++ b/airbyte-integrations/connectors/source-zendesk-sell/setup.py @@ -14,13 +14,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-zendesk-sell=source_zendesk_sell.run:run", + ], + }, name="source_zendesk_sell", description="Source implementation for Zendesk Sell.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-zendesk-sell/source_zendesk_sell/run.py b/airbyte-integrations/connectors/source-zendesk-sell/source_zendesk_sell/run.py new file mode 100644 index 000000000000..0e238308da46 --- /dev/null +++ b/airbyte-integrations/connectors/source-zendesk-sell/source_zendesk_sell/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_zendesk_sell import SourceZendeskSell + + +def run(): + source = SourceZendeskSell() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-zendesk-sunshine/main.py b/airbyte-integrations/connectors/source-zendesk-sunshine/main.py index 0a86066993fc..4b7507ee396c 100644 --- a/airbyte-integrations/connectors/source-zendesk-sunshine/main.py +++ b/airbyte-integrations/connectors/source-zendesk-sunshine/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_zendesk_sunshine import SourceZendeskSunshine +from source_zendesk_sunshine.run import run if __name__ == "__main__": - source = SourceZendeskSunshine() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-zendesk-sunshine/setup.py b/airbyte-integrations/connectors/source-zendesk-sunshine/setup.py index 1c47ce8ab0a9..d59a2a4793b4 100644 --- a/airbyte-integrations/connectors/source-zendesk-sunshine/setup.py +++ b/airbyte-integrations/connectors/source-zendesk-sunshine/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-zendesk-sunshine=source_zendesk_sunshine.run:run", + ], + }, name="source_zendesk_sunshine", description="Source implementation for Zendesk Sunshine.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-zendesk-sunshine/source_zendesk_sunshine/run.py b/airbyte-integrations/connectors/source-zendesk-sunshine/source_zendesk_sunshine/run.py new file mode 100644 index 000000000000..be323283bc95 --- /dev/null +++ b/airbyte-integrations/connectors/source-zendesk-sunshine/source_zendesk_sunshine/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_zendesk_sunshine import SourceZendeskSunshine + + +def run(): + source = SourceZendeskSunshine() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-zenefits/main.py b/airbyte-integrations/connectors/source-zenefits/main.py index 480734a07faa..7124907d176d 100644 --- a/airbyte-integrations/connectors/source-zenefits/main.py +++ b/airbyte-integrations/connectors/source-zenefits/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_zenefits import SourceZenefits +from source_zenefits.run import run if __name__ == "__main__": - source = SourceZenefits() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-zenefits/setup.py b/airbyte-integrations/connectors/source-zenefits/setup.py index 5cc7df205794..7d33a0d79c91 100644 --- a/airbyte-integrations/connectors/source-zenefits/setup.py +++ b/airbyte-integrations/connectors/source-zenefits/setup.py @@ -12,13 +12,30 @@ TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.2", "pytest-mock~=3.6.1"] setup( + entry_points={ + "console_scripts": [ + "source-zenefits=source_zenefits.run:run", + ], + }, name="source_zenefits", description="Source implementation for Zenefits.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-zenefits/source_zenefits/run.py b/airbyte-integrations/connectors/source-zenefits/source_zenefits/run.py new file mode 100644 index 000000000000..3fa66926fadf --- /dev/null +++ b/airbyte-integrations/connectors/source-zenefits/source_zenefits/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_zenefits import SourceZenefits + + +def run(): + source = SourceZenefits() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-zenloop/main.py b/airbyte-integrations/connectors/source-zenloop/main.py index ec861621c9c7..dd3a6687740e 100644 --- a/airbyte-integrations/connectors/source-zenloop/main.py +++ b/airbyte-integrations/connectors/source-zenloop/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_zenloop import SourceZenloop +from source_zenloop.run import run if __name__ == "__main__": - source = SourceZenloop() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-zenloop/setup.py b/airbyte-integrations/connectors/source-zenloop/setup.py index be53c38ee558..f6920042865b 100644 --- a/airbyte-integrations/connectors/source-zenloop/setup.py +++ b/airbyte-integrations/connectors/source-zenloop/setup.py @@ -17,6 +17,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-zenloop=source_zenloop.run:run", + ], + }, name="source_zenloop", description="Source implementation for Zenloop.", author="Alexander Batoulis", diff --git a/airbyte-integrations/connectors/source-zenloop/source_zenloop/run.py b/airbyte-integrations/connectors/source-zenloop/source_zenloop/run.py new file mode 100644 index 000000000000..344453ff360c --- /dev/null +++ b/airbyte-integrations/connectors/source-zenloop/source_zenloop/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_zenloop import SourceZenloop + + +def run(): + source = SourceZenloop() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-zoho-crm/main.py b/airbyte-integrations/connectors/source-zoho-crm/main.py index 911fb44f52f2..2cf82bb23bf9 100644 --- a/airbyte-integrations/connectors/source-zoho-crm/main.py +++ b/airbyte-integrations/connectors/source-zoho-crm/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_zoho_crm import SourceZohoCrm +from source_zoho_crm.run import run if __name__ == "__main__": - source = SourceZohoCrm() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-zoho-crm/setup.py b/airbyte-integrations/connectors/source-zoho-crm/setup.py index 4627c0115e63..a44e9b0529a7 100644 --- a/airbyte-integrations/connectors/source-zoho-crm/setup.py +++ b/airbyte-integrations/connectors/source-zoho-crm/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-zoho-crm=source_zoho_crm.run:run", + ], + }, name="source_zoho_crm", description="Source implementation for Zoho Crm.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-zoho-crm/source_zoho_crm/run.py b/airbyte-integrations/connectors/source-zoho-crm/source_zoho_crm/run.py new file mode 100644 index 000000000000..d915dc05f2b9 --- /dev/null +++ b/airbyte-integrations/connectors/source-zoho-crm/source_zoho_crm/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_zoho_crm import SourceZohoCrm + + +def run(): + source = SourceZohoCrm() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-zoom/main.py b/airbyte-integrations/connectors/source-zoom/main.py index da33508f6a8e..137aea5931e6 100644 --- a/airbyte-integrations/connectors/source-zoom/main.py +++ b/airbyte-integrations/connectors/source-zoom/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_zoom import SourceZoom +from source_zoom.run import run if __name__ == "__main__": - source = SourceZoom() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-zoom/setup.py b/airbyte-integrations/connectors/source-zoom/setup.py index edc76fde557e..6d4f526d5e35 100644 --- a/airbyte-integrations/connectors/source-zoom/setup.py +++ b/airbyte-integrations/connectors/source-zoom/setup.py @@ -16,13 +16,30 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-zoom=source_zoom.run:run", + ], + }, name="source_zoom", description="Source implementation for Zoom.", author="Airbyte", author_email="contact@airbyte.io", packages=find_packages(), install_requires=MAIN_REQUIREMENTS, - package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, + package_data={ + "": [ + # Include yaml files in the package (if any) + "*.yml", + "*.yaml", + # Include all json files in the package, up to 4 levels deep + "*.json", + "*/*.json", + "*/*/*.json", + "*/*/*/*.json", + "*/*/*/*/*.json", + ] + }, extras_require={ "tests": TEST_REQUIREMENTS, }, diff --git a/airbyte-integrations/connectors/source-zoom/source_zoom/run.py b/airbyte-integrations/connectors/source-zoom/source_zoom/run.py new file mode 100644 index 000000000000..e663e8441844 --- /dev/null +++ b/airbyte-integrations/connectors/source-zoom/source_zoom/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_zoom import SourceZoom + + +def run(): + source = SourceZoom() + launch(source, sys.argv[1:]) diff --git a/airbyte-integrations/connectors/source-zuora/main.py b/airbyte-integrations/connectors/source-zuora/main.py index e65d47a77eda..404a72854a9e 100644 --- a/airbyte-integrations/connectors/source-zuora/main.py +++ b/airbyte-integrations/connectors/source-zuora/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_zuora import SourceZuora +from source_zuora.run import run if __name__ == "__main__": - source = SourceZuora() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-zuora/setup.py b/airbyte-integrations/connectors/source-zuora/setup.py index 6fb6e922ce98..43b397e5c183 100644 --- a/airbyte-integrations/connectors/source-zuora/setup.py +++ b/airbyte-integrations/connectors/source-zuora/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-zuora=source_zuora.run:run", + ], + }, name="source_zuora", description="Airbyte source-connector for Zuora.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-zuora/source_zuora/run.py b/airbyte-integrations/connectors/source-zuora/source_zuora/run.py new file mode 100644 index 000000000000..58495d4d67e3 --- /dev/null +++ b/airbyte-integrations/connectors/source-zuora/source_zuora/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_zuora import SourceZuora + + +def run(): + source = SourceZuora() + launch(source, sys.argv[1:])