Skip to content

Commit

Permalink
Merge pull request #233 from ds-wizard/hotfix/4.10.4
Browse files Browse the repository at this point in the history
Hotfix 4.9.4
  • Loading branch information
MarekSuchanek authored Sep 9, 2024
2 parents 8c10449 + a5a8b87 commit 4afde2c
Show file tree
Hide file tree
Showing 23 changed files with 83 additions and 28 deletions.
5 changes: 5 additions & 0 deletions packages/dsw-command-queue/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]


## [4.10.4]

Released for version consistency with other DSW tools.

## [4.10.3]

Released for version consistency with other DSW tools.
Expand Down Expand Up @@ -251,3 +255,4 @@ Released for version consistency with other DSW tools.
[4.10.1]: /../../tree/v4.10.1
[4.10.2]: /../../tree/v4.10.2
[4.10.3]: /../../tree/v4.10.3
[4.10.4]: /../../tree/v4.10.4
4 changes: 2 additions & 2 deletions packages/dsw-command-queue/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'

[project]
name = 'dsw-command-queue'
version = "4.10.3"
version = "4.10.4"
description = 'Library for working with command queue and persistent commands'
readme = 'README.md'
keywords = ['dsw', 'subscriber', 'publisher', 'database', 'queue', 'processing']
Expand All @@ -25,7 +25,7 @@ classifiers = [
requires-python = '>=3.10, <4'
dependencies = [
# DSW
"dsw-database==4.10.3",
"dsw-database==4.10.4",
]

[project.urls]
Expand Down
5 changes: 5 additions & 0 deletions packages/dsw-config/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]


## [4.10.4]

Released for version consistency with other DSW tools.

## [4.10.3]

Released for version consistency with other DSW tools.
Expand Down Expand Up @@ -263,3 +267,4 @@ Released for version consistency with other DSW tools.
[4.10.1]: /../../tree/v4.10.1
[4.10.2]: /../../tree/v4.10.2
[4.10.3]: /../../tree/v4.10.3
[4.10.4]: /../../tree/v4.10.4
2 changes: 1 addition & 1 deletion packages/dsw-config/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'

[project]
name = 'dsw-config'
version = "4.10.3"
version = "4.10.4"
description = 'Library for DSW config manipulation'
readme = 'README.md'
keywords = ['dsw', 'config', 'yaml', 'parser']
Expand Down
5 changes: 5 additions & 0 deletions packages/dsw-data-seeder/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]


## [4.10.4]

Released for version consistency with other DSW tools.

## [4.10.3]

### Changed
Expand Down Expand Up @@ -309,3 +313,4 @@ Released for version consistency with other DSW tools.
[4.10.1]: /../../tree/v4.10.1
[4.10.2]: /../../tree/v4.10.2
[4.10.3]: /../../tree/v4.10.3
[4.10.4]: /../../tree/v4.10.4
2 changes: 1 addition & 1 deletion packages/dsw-data-seeder/dsw/data_seeder/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
DEFAULT_PLACEHOLDER = '<<|TENANT-ID|>>'
NULL_UUID = '00000000-0000-0000-0000-000000000000'
PROG_NAME = 'dsw-data-seeder'
VERSION = '4.10.3'
VERSION = '4.10.4'

VAR_APP_CONFIG_PATH = 'APPLICATION_CONFIG_PATH'
VAR_WORKDIR_PATH = 'WORKDIR_PATH'
Expand Down
10 changes: 5 additions & 5 deletions packages/dsw-data-seeder/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'

[project]
name = 'dsw-data-seeder'
version = "4.10.3"
version = "4.10.4"
description = 'Worker for seeding DSW data'
readme = 'README.md'
keywords = ['data', 'database', 'seed', 'storage']
Expand All @@ -29,10 +29,10 @@ dependencies = [
'sentry-sdk',
'tenacity',
# DSW
"dsw-command-queue==4.10.3",
"dsw-config==4.10.3",
"dsw-database==4.10.3",
"dsw-storage==4.10.3",
"dsw-command-queue==4.10.4",
"dsw-config==4.10.4",
"dsw-database==4.10.4",
"dsw-storage==4.10.4",
]

[project.urls]
Expand Down
5 changes: 5 additions & 0 deletions packages/dsw-database/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]


## [4.10.4]

Released for version consistency with other DSW tools.

## [4.10.3]

Released for version consistency with other DSW tools.
Expand Down Expand Up @@ -274,3 +278,4 @@ Released for version consistency with other DSW tools.
[4.10.1]: /../../tree/v4.10.1
[4.10.2]: /../../tree/v4.10.2
[4.10.3]: /../../tree/v4.10.3
[4.10.4]: /../../tree/v4.10.4
4 changes: 2 additions & 2 deletions packages/dsw-database/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'

[project]
name = 'dsw-database'
version = "4.10.3"
version = "4.10.4"
description = 'Library for managing DSW database'
readme = 'README.md'
keywords = ['dsw', 'database']
Expand All @@ -26,7 +26,7 @@ dependencies = [
'psycopg[binary]',
'tenacity',
# DSW
"dsw-config==4.10.3",
"dsw-config==4.10.4",
]

[project.urls]
Expand Down
5 changes: 5 additions & 0 deletions packages/dsw-document-worker/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]


## [4.10.4]

Released for version consistency with other DSW tools.

## [4.10.3]

### Changed
Expand Down Expand Up @@ -331,3 +335,4 @@ Released for version consistency with other DSW tools.
[4.10.1]: /../../tree/v4.10.1
[4.10.2]: /../../tree/v4.10.2
[4.10.3]: /../../tree/v4.10.3
[4.10.4]: /../../tree/v4.10.4
2 changes: 1 addition & 1 deletion packages/dsw-document-worker/dsw/document_worker/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
EXIT_SUCCESS = 0
NULL_UUID = '00000000-0000-0000-0000-000000000000'
PROG_NAME = 'docworker'
VERSION = '4.10.3'
VERSION = '4.10.4'

VAR_APP_CONFIG_PATH = 'APPLICATION_CONFIG_PATH'
VAR_WORKDIR_PATH = 'WORKDIR_PATH'
Expand Down
10 changes: 5 additions & 5 deletions packages/dsw-document-worker/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'

[project]
name = 'dsw-document-worker'
version = "4.10.3"
version = "4.10.4"
description = 'Worker for assembling and transforming documents'
readme = 'README.md'
keywords = ['documents', 'generation', 'jinja2', 'pandoc', 'worker']
Expand Down Expand Up @@ -38,10 +38,10 @@ dependencies = [
'weasyprint',
'XlsxWriter',
# DSW
"dsw-command-queue==4.10.3",
"dsw-config==4.10.3",
"dsw-database==4.10.3",
"dsw-storage==4.10.3",
"dsw-command-queue==4.10.4",
"dsw-config==4.10.4",
"dsw-database==4.10.4",
"dsw-storage==4.10.4",
]

[project.urls]
Expand Down
7 changes: 7 additions & 0 deletions packages/dsw-mailer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]


## [4.10.4]

### Fixed

- Fix selection of SMTP security mechanism

## [4.10.3]

### Changed
Expand Down Expand Up @@ -285,3 +291,4 @@ Released for version consistency with other DSW tools.
[4.10.1]: /../../tree/v4.10.1
[4.10.2]: /../../tree/v4.10.2
[4.10.3]: /../../tree/v4.10.3
[4.10.4]: /../../tree/v4.10.4
10 changes: 9 additions & 1 deletion packages/dsw-mailer/dsw/mailer/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,20 @@ class SMTPSecurityMode(enum.Enum):
SSL = enum.auto()
TLS = enum.auto()

@classmethod
def has(cls, name):
return name in cls.__members__


class MailProvider(enum.Enum):
NONE = enum.auto()
SMTP = enum.auto()
AMAZON_SES = enum.auto()

@classmethod
def has(cls, name):
return name in cls.__members__


class MailSMTPConfig:

Expand All @@ -188,7 +196,7 @@ def __init__(self, host: str | None = None, port: int | None = None,
auth_enabled: bool | None = None, timeout: int = 10):
self.host = host
self.security = SMTPSecurityMode.PLAIN # type: SMTPSecurityMode
if security is not None and security.upper() in SMTPSecurityMode:
if security is not None and SMTPSecurityMode.has(security.upper()):
self.security = SMTPSecurityMode[security.upper()]
elif ssl is not None:
self.security = SMTPSecurityMode.SSL if ssl else SMTPSecurityMode.PLAIN
Expand Down
2 changes: 1 addition & 1 deletion packages/dsw-mailer/dsw/mailer/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
DEFAULT_ENCODING = 'utf-8'
NULL_UUID = '00000000-0000-0000-0000-000000000000'
PROG_NAME = 'dsw-mailer'
VERSION = '4.10.3'
VERSION = '4.10.4'

VAR_APP_CONFIG_PATH = 'APPLICATION_CONFIG_PATH'
VAR_WORKDIR_PATH = 'WORKDIR_PATH'
8 changes: 4 additions & 4 deletions packages/dsw-mailer/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'

[project]
name = 'dsw-mailer'
version = "4.10.3"
version = "4.10.4"
description = 'Worker for sending email notifications'
readme = 'README.md'
keywords = ['email', 'jinja2', 'notification', 'template']
Expand Down Expand Up @@ -33,9 +33,9 @@ dependencies = [
'sentry-sdk',
'tenacity',
# DSW
"dsw-command-queue==4.10.3",
"dsw-config==4.10.3",
"dsw-database==4.10.3",
"dsw-command-queue==4.10.4",
"dsw-config==4.10.4",
"dsw-database==4.10.4",
]

[project.urls]
Expand Down
5 changes: 5 additions & 0 deletions packages/dsw-models/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]


## [4.10.4]

Released for version consistency with other DSW tools.

## [4.10.3]

Released for version consistency with other DSW tools.
Expand Down Expand Up @@ -180,3 +184,4 @@ Released for version consistency with other DSW tools.
[4.10.1]: /../../tree/v4.10.1
[4.10.2]: /../../tree/v4.10.2
[4.10.3]: /../../tree/v4.10.3
[4.10.4]: /../../tree/v4.10.4
2 changes: 1 addition & 1 deletion packages/dsw-models/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'

[project]
name = 'dsw-models'
version = "4.10.3"
version = "4.10.4"
description = 'Library with DSW models and basic IO operations'
readme = 'README.md'
keywords = ['dsw', 'config', 'yaml', 'parser']
Expand Down
5 changes: 5 additions & 0 deletions packages/dsw-storage/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]


## [4.10.4]

Released for version consistency with other DSW tools.

## [4.10.3]

Released for version consistency with other DSW tools.
Expand Down Expand Up @@ -247,3 +251,4 @@ Released for version consistency with other DSW tools.
[4.10.1]: /../../tree/v4.10.1
[4.10.2]: /../../tree/v4.10.2
[4.10.3]: /../../tree/v4.10.3
[4.10.4]: /../../tree/v4.10.4
4 changes: 2 additions & 2 deletions packages/dsw-storage/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'

[project]
name = 'dsw-storage'
version = "4.10.3"
version = "4.10.4"
description = 'Library for managing DSW S3 storage'
readme = 'README.md'
keywords = ['dsw', 's3', 'bucket', 'storage']
Expand All @@ -26,7 +26,7 @@ dependencies = [
'minio',
'tenacity',
# DSW
"dsw-config==4.10.3",
"dsw-config==4.10.4",
]

[project.urls]
Expand Down
5 changes: 5 additions & 0 deletions packages/dsw-tdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]


## [4.10.4]

Released for version consistency with other DSW tools.

## [4.10.3]

### Changed
Expand Down Expand Up @@ -475,3 +479,4 @@ Initial DSW Template Development Kit (versioned as part of the [DSW platform](ht
[4.10.1]: /../../tree/v4.10.1
[4.10.2]: /../../tree/v4.10.2
[4.10.3]: /../../tree/v4.10.3
[4.10.4]: /../../tree/v4.10.4
2 changes: 1 addition & 1 deletion packages/dsw-tdk/dsw/tdk/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import re

APP = 'dsw-tdk'
VERSION = '4.10.3'
VERSION = '4.10.4'
METAMODEL_VERSION = 14

REGEX_SEMVER = re.compile(r'^[0-9]+\.[0-9]+\.[0-9]+$')
Expand Down
2 changes: 1 addition & 1 deletion packages/dsw-tdk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'

[project]
name = 'dsw-tdk'
version = "4.10.3"
version = "4.10.4"
description = 'Data Stewardship Wizard Template Development Toolkit'
readme = 'README.md'
keywords = ['documents', 'dsw', 'jinja2', 'template', 'toolkit']
Expand Down

0 comments on commit 4afde2c

Please sign in to comment.