From 6022c25e248dd4ad6e18f3b9a9f560149e05e1da Mon Sep 17 00:00:00 2001 From: stas Date: Wed, 7 Feb 2024 12:03:18 +0200 Subject: [PATCH] Update requirements to allow OpenSSL 3.0 usage [Swithing to Debian 12](https://github.com/salemove/base-images/pull/46) in python base image caused [OpenSSL switch](https://github.com/salemove/base-images/pull/46#issuecomment-1913728114) from 1.1.1 to 3.0. Current version of `snowflake-connector-python` 2.8.0 which depends on `pyopenssl` 22.1.0 fails because of OpenSSL switch https://ci.at.samo.io/job/salemove/job/snowflake-ingestion/job/PR-589/8/consoleFull After the update of `snowflake-connector-python` to 3.7.0 `pyopenssl` becomes `23.3.0` and doesn't fail anymore in this image. Tested `snowflake-ingestion` in [this PR](https://github.com/salemove/snowflake-ingestion/pull/600). [Pipeline](https://ci.at.samo.io/job/salemove/job/snowflake-ingestion/job/PR-600/6/consoleFull) doesn't fail anymore, and does migration/rollback successfully. CBRO-1908 --- CHANGELOG.md | 9 ++++++++- requirements.txt | 8 ++++---- schemachange/cli.py | 4 ++-- setup.cfg | 8 ++++---- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9209fdf..3ec0cd51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. *The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).* +## [3.5.4] - 2024-02-07 +### Changed +- Updated `snowflake-connector-python` dependency use 3.7.0. This allows to use OpenSSL 3.0 +- Updated `PyYAML` to use 6.0.1 +- Updated `pandas` to use 1.5.3 +- Updated `Jinja2` to use 3.1.1 + ## [3.5.3] - 2023-02-18 ### Changed - Added `undo` subcommand, introducing Undo scripts @@ -24,7 +31,7 @@ All notable changes to this project will be documented in this file. - Cleaned up argument passing and other repetitive code using dictionary and set comparisons for easy maintenance. (Converted variable names to a consistent snake_case from a mix of kebab-case and snake_case) - Fixed change history table processing to allow mixed case names when '"' are used in the name. - Moved most error, log and warning messages and query strings to global or class variables. -- Updated readme to cover new authentication methods +- Updated readme to cover new authentication methods ## [3.4.2] - 2022-10-24 ### Changed diff --git a/requirements.txt b/requirements.txt index 1c3a401e..5e8d0440 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Jinja2==3.0.0 -pandas==1.3.0 -PyYAML==5.4 -snowflake-connector-python==2.8.0 +Jinja2~=3.0 +pandas~=1.3 +PyYAML~=6.0 +snowflake-connector-python>=2.8,<4.0 diff --git a/schemachange/cli.py b/schemachange/cli.py index 2a81a58e..326e968f 100644 --- a/schemachange/cli.py +++ b/schemachange/cli.py @@ -19,9 +19,9 @@ from jinja2.loaders import BaseLoader from pandas import DataFrame -#region Global Variables +#region Global Variables # metadata -_schemachange_version = '3.5.3' +_schemachange_version = '3.5.4' _config_file_name = 'schemachange-config.yml' _metadata_database_name = 'METADATA' _metadata_schema_name = 'SCHEMACHANGE' diff --git a/setup.cfg b/setup.cfg index 857fc9df..69cac2e2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = schemachange -version = 3.5.3 +version = 3.5.4 author = jamesweakley/jeremiahhansen description = A Database Change Management tool for Snowflake long_description = file: README.md @@ -16,10 +16,10 @@ classifiers = packages = schemachange python_requires = >=3.7 install_requires = - snowflake-connector-python~=2.8 - pandas~=1.3 - pyyaml~=5.4 jinja2~=3.0 + pandas~=1.3 + pyyaml~=6.0 + snowflake-connector-python>=2.8,<4.0 include_package_data = True [options.entry_points]