From ab1cecfab023eea8d2669292359b822a37d3ce5e Mon Sep 17 00:00:00 2001 From: Javier Asensio Date: Wed, 5 Apr 2023 12:37:48 +0100 Subject: [PATCH] Prepare release 1.1.0 --- CHANGELOG.txt | 4 ++++ setup.py | 2 +- src/tentaclio/credentials/reader.py | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index e05a5471..0f3d3e1a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -4,6 +4,10 @@ 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). +## [1.1.0] - 2023-04-05 +### Changed + - Credential files error reporting to help users identify the credentials issues + ## [1.0.9] - 2023-01-25 ### Added - Add `tentaclio.streams.api.make_empty_safe` to modify the standard behavoir of creating diff --git a/setup.py b/setup.py index 3708a129..77e6cfb7 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ from setuptools.command.install import install -VERSION = "1.0.9" +VERSION = "1.1.0" REPO_ROOT = pathlib.Path(__file__).parent diff --git a/src/tentaclio/credentials/reader.py b/src/tentaclio/credentials/reader.py index e68763da..b297e7b0 100644 --- a/src/tentaclio/credentials/reader.py +++ b/src/tentaclio/credentials/reader.py @@ -16,6 +16,8 @@ class TentaclioFileError(Exception): + """Tentaclio secrets file errors.""" + TENTACLIO_FILE = os.getenv(TENTACLIO_SECRETS_FILE, "") ERROR_TEMPLATE = """ ######################################### @@ -30,6 +32,7 @@ class TentaclioFileError(Exception): """ def __init__(self, message: str): + """Intialise a new TentaclioFileError.""" message = self.ERROR_TEMPLATE.format(message=message, tentaclio_file=self.TENTACLIO_FILE) super().__init__(message)