Skip to content

Commit 47feee3

Browse files
authored
AP-1415 :: Fix reported vulnerabilities on dependencies (#1129)
* Fix reported vulnerabilities on dependencies * Decrease to latest available snowflake package * Decrease to latest available pre-commit package * Decrease to latest available pre-commit package * Revert back to previous pylint version * Fix end to end tests * Fix end to end tests * Update Changelong and setup file
1 parent b7c3b42 commit 47feee3

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
0.56.0 (2023-08-09)
2+
-------------------
3+
4+
- Bump `pipelinewise-target-snowflake`from `2.2.0` to `2.3.0`
5+
- Update dependencies
6+
17
0.55.0 (2023-07-25)
28
-------------------
39

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(name='pipelinewise',
99
python_requires='>=3.7,<3.10',
10-
version='0.55.0',
10+
version='0.56.0',
1111
description='PipelineWise',
1212
long_description=LONG_DESCRIPTION,
1313
long_description_content_type='text/markdown',
@@ -29,8 +29,8 @@
2929
'joblib==1.2.0',
3030
'PyMySQL==0.7.11',
3131
'psycopg2-binary==2.9.5',
32-
'snowflake-connector-python[pandas]==2.7.6',
33-
'google-cloud-bigquery==2.31.0',
32+
'snowflake-connector-python[pandas]==3.0.4',
33+
'google-cloud-bigquery==3.11.1',
3434
'pipelinewise-singer-python==1.*',
3535
'python-pidfile==3.0.0',
3636
'pymongo==3.12.3',
@@ -40,12 +40,12 @@
4040
'psutil==5.8.0',
4141
'ujson==5.4.0',
4242
'dnspython==2.1.*',
43-
'boto3==1.21.*',
43+
'boto3>=1.21,<1.27',
4444
'chardet==4.0.0',
4545
],
4646
extras_require={
4747
'test': [
48-
'pre-commit==2.18.1',
48+
'pre-commit==2.21.0',
4949
'flake8==4.0.1',
5050
'pytest==7.1.1',
5151
'pytest-dependency==0.4.0',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pipelinewise-target-snowflake==2.2.0
1+
pipelinewise-target-snowflake==2.3.0

tests/end_to_end/target_snowflake/tap_postgres/test_replicate_pg_to_sf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ def test_replicate_pg_to_sf(self):
5151
f"where cvarchar='H';"
5252
)[0][0]
5353

54-
self.assertEqual(result, datetime(9999, 12, 31, 23, 59, 59, 998993)) # if bump snowflake-connector -> 999000
54+
self.assertEqual(result, datetime(9999, 12, 31, 23, 59, 59, 999000))
5555

5656
result = self.e2e_env.run_query_target_snowflake(
5757
f'SELECT updated_at FROM '
5858
f'ppw_e2e_tap_postgres{self.e2e_env.sf_schema_postfix}."TABLE_WITH_SPACE AND UPPERCASE" '
5959
f"where cvarchar='I';"
6060
)[0][0]
6161

62-
self.assertEqual(result, datetime(9999, 12, 31, 23, 59, 59, 998993)) # if bump snowflake-connector -> 999000
62+
self.assertEqual(result, datetime(9999, 12, 31, 23, 59, 59, 999000))
6363

6464
# 2. Make changes in PG source database
6565
# LOG_BASED
@@ -132,12 +132,12 @@ def test_replicate_pg_to_sf(self):
132132
f"where cvarchar='faaaar future';"
133133
)[0][0]
134134

135-
self.assertEqual(result, datetime(9999, 12, 31, 23, 59, 59, 998993)) # if bump snowflake-connector -> 999000
135+
self.assertEqual(result, datetime(9999, 12, 31, 23, 59, 59, 999000))
136136

137137
result = self.e2e_env.run_query_target_snowflake(
138138
f'SELECT updated_at FROM '
139139
f'ppw_e2e_tap_postgres{self.e2e_env.sf_schema_postfix}."TABLE_WITH_SPACE AND UPPERCASE" '
140140
f"where cvarchar='BC';"
141141
)[0][0]
142142

143-
self.assertEqual(result, datetime(9999, 12, 31, 23, 59, 59, 998993)) # if bump snowflake-connector -> 999000
143+
self.assertEqual(result, datetime(9999, 12, 31, 23, 59, 59, 999000))

0 commit comments

Comments
 (0)