Skip to content

Commit

Permalink
Update requirements to allow OpenSSL 3.0 usage
Browse files Browse the repository at this point in the history
[Swithing to Debian 12](salemove/base-images#46) in python base image
caused [OpenSSL switch](salemove/base-images#46 (comment)) 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](salemove/snowflake-ingestion#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
  • Loading branch information
BondarenkoStas committed Feb 7, 2024
1 parent 671d389 commit 6022c25
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions schemachange/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
8 changes: 4 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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]
Expand Down

0 comments on commit 6022c25

Please sign in to comment.