Skip to content

Commit

Permalink
added custom setuptools version
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav-dudar committed Sep 9, 2021
1 parent 1af74dc commit e1c17c0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions airbyte-integrations/connectors/source-bing-ads/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import ru.vyarus.gradle.plugin.python.task.PythonTask

plugins {
id 'airbyte-python'
id 'airbyte-docker'
Expand All @@ -7,3 +9,14 @@ plugins {
airbytePython {
moduleDirectory 'source_bing_ads'
}

// setuptools 58.* removed support for use_2to3 which leads to the following issue:
// error in suds-jurko setup command: use_2to3 is invalid.
// https://setuptools.readthedocs.io/en/latest/history.html#v58-0-0
// To be able to resolve this issue connector need to use 57.* version of setuptools
task("customSetupToolsInstall", type: PythonTask, dependsOn: flakeCheck){
module = "pip"
command = "install setuptools==57.5.0"
}

installLocalReqs.dependsOn("customSetupToolsInstall")
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-bing-ads/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from setuptools import find_packages, setup

MAIN_REQUIREMENTS = ["airbyte-cdk", "bingads==13.0.10", "vcrpy==4.1.1", "backoff==1.10.0"]
MAIN_REQUIREMENTS = ["airbyte-cdk", "bingads==13.0.10", "vcrpy==4.1.1", "backoff==1.10.0", "pendulum==2.1.2"]

TEST_REQUIREMENTS = [
"pytest~=6.1",
Expand Down

0 comments on commit e1c17c0

Please sign in to comment.