Skip to content

Commit d4bf052

Browse files
Merge pull request #325 from Snowflake-Labs/dev
Prep for 4.0.1 Release
2 parents c5a4837 + 0906cd5 commit d4bf052

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ repos:
3131
args: [ --fix ]
3232
# Run the formatter.
3333
- id: ruff-format
34-
- repo: git@github.com:GitGuardian/ggshield.git
35-
rev: v1.28.0
34+
- repo: https://github.com/gitguardian/ggshield
35+
rev: v1.36.0
3636
hooks:
3737
- id: ggshield
3838
language_version: python3

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ All notable changes to this project will be documented in this file.
33

44
*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).*
55

6-
## [4.0.0] - TBD
6+
## [4.0.1] - 2025-02-17
7+
### Changed
8+
- Added back the ability to pass the Snowflake password in the `SNOWFLAKE_PASSWORD` environment variable.
9+
10+
## [4.0.0] - 2025-01-06
711
### Added
812
- Use of `structlog~=24.1.0` for standard log outputs
913
- Verified Schemachange against Python 3.12

schemachange/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# region Global Variables
1515
# metadata
16-
SCHEMACHANGE_VERSION = "4.0.0"
16+
SCHEMACHANGE_VERSION = "4.0.1"
1717
SNOWFLAKE_APPLICATION_NAME = "schemachange"
1818
module_logger = structlog.getLogger(__name__)
1919

schemachange/config/DeployConfig.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from schemachange.config.ChangeHistoryTable import ChangeHistoryTable
99
from schemachange.config.utils import (
1010
get_snowflake_identifier_string,
11+
get_snowflake_password,
1112
)
1213

1314

@@ -87,9 +88,9 @@ def get_session_kwargs(self) -> dict:
8788
"query_tag": self.query_tag,
8889
}
8990

90-
# TODO: Discuss the need for check for snowflake password before passing the session
91-
# kwargs to open a snowflake session
92-
# snowflake_password = get_snowflake_password()
93-
# if snowflake_password is not None and snowflake_password:
94-
# session_kwargs["password"] = snowflake_password
91+
# If the user supplied the password in the environment variable, add it to the session config
92+
snowflake_password = get_snowflake_password()
93+
if snowflake_password is not None and snowflake_password:
94+
session_kwargs["password"] = snowflake_password
95+
9596
return {k: v for k, v in session_kwargs.items() if v is not None}

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = schemachange
3-
version = 4.0.0
3+
version = 4.0.1
44
description = A Database Change Management tool for Snowflake
55
long_description = file: README.md
66
long_description_content_type = text/markdown

tests/test_cli_misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
def test_cli_given__schemachange_version_change_updated_in_setup_config_file():
12-
assert SCHEMACHANGE_VERSION == "4.0.0"
12+
assert SCHEMACHANGE_VERSION == "4.0.1"
1313

1414

1515
def test_cli_given__constants_exist():

0 commit comments

Comments
 (0)