Skip to content

Commit cc74416

Browse files
authored
Merge pull request #34 from dataiku/chore/dss12-sc-132174-api-connect-desc-update
[sc-132174] [api-connect] desc.json for DSS12 update
2 parents 4b51187 + 352863b commit cc74416

9 files changed

Lines changed: 22 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [Version 1.1.3](https://github.com/dataiku/dss-plugin-api-connect/releases/tag/v1.1.3) - Bugfix release - 2023-04-18
4+
5+
- Updated code-env descriptor for DSS 12
6+
37
## [Version 1.1.2](https://github.com/dataiku/dss-plugin-api-connect/releases/tag/v1.1.2) - Bugfix release - 2022-10-19
48

59
- Fix for last page of RFC5988 pagination triggering loop condtion

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2021-2022 Dataiku SAS
189+
Copyright 2021-2023 Dataiku SAS
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ plugin:
2121
unit-tests:
2222
@echo "Running unit tests..."
2323
@( \
24-
PYTHON_VERSION=`python3 -V 2>&1 | sed 's/[^0-9]*//g' | cut -c 1,2`; \
25-
PYTHON_VERSION_IS_CORRECT=`cat code-env/python/desc.json | python3 -c "import sys, json; print(str($$PYTHON_VERSION) in [x[-2:] for x in json.load(sys.stdin)['acceptedPythonInterpreters']]);"`; \
24+
PYTHON_VERSION=`python3 -c "import sys; print('PYTHON{}{}'.format(sys.version_info.major, sys.version_info.minor))"`; \
25+
PYTHON_VERSION_IS_CORRECT=`cat code-env/python/desc.json | python3 -c "import sys, json; print('$$PYTHON_VERSION' in json.load(sys.stdin)['acceptedPythonInterpreters']);"`; \
2626
if [ $$PYTHON_VERSION_IS_CORRECT == "False" ]; then echo "Python version $$PYTHON_VERSION is not in acceptedPythonInterpreters"; exit 1; else echo "Python version $$PYTHON_VERSION is in acceptedPythonInterpreters"; fi; \
2727
)
2828
@( \

code-env/python/desc.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{
22
"acceptedPythonInterpreters": [
33
"PYTHON36",
4-
"PYTHON37"
4+
"PYTHON37",
5+
"PYTHON38",
6+
"PYTHON39",
7+
"PYTHON310",
8+
"PYTHON311"
59
],
10+
"corePackagesSet": "AUTO",
611
"forceConda": false,
712
"installCorePackages": true,
813
"installJupyterSupport": false

custom-recipes/api-connect/recipe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def get_partitioning_keys(id_list, dku_flow_variables):
2424
partitioning_keys[dimension] = dku_flow_variables.get(dimension_src)
2525
return partitioning_keys
2626

27-
logger.info('API-Connect plugin recipe v1.1.2')
27+
28+
logger.info('API-Connect plugin recipe v1.1.3')
2829

2930
input_A_names = get_input_names_for_role('input_A_role')
3031
config = get_recipe_config()

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "api-connect",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"meta": {
55
"label": "API Connect",
66
"description": "Retrieve data from any REST API",

python-connectors/api-connect_dataset/connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class RestAPIConnector(Connector):
1414

1515
def __init__(self, config, plugin_config):
1616
Connector.__init__(self, config, plugin_config) # pass the parameters to the base class
17-
logger.info('API-Connect plugin connector v1.1.2')
17+
logger.info('API-Connect plugin connector v1.1.3')
1818
logger.info("config={}".format(logger.filter_secrets(config)))
1919
endpoint_parameters = get_endpoint_parameters(config)
2020
credential = config.get("credential", {})
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
pytest==6.2.1
1+
pytest
2+
requests<2.22,>=2
23
dataiku-api-client
3-
git+git://github.com/dataiku/dataiku-plugin-tests-utils.git@master#egg=dataiku-plugin-tests-utils
4+
git+https://github.com/dataiku/dataiku-plugin-tests-utils.git@master#egg=dataiku-plugin-tests-utils

tests/python/unit/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pytest==6.2.1
2-
allure-pytest==2.8.29
1+
pytest~=6.2
2+
allure-pytest~=2.8

0 commit comments

Comments
 (0)