From df7a92116ed5b939593f29ef5097342ddbb5e1e3 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jan 2020 13:21:59 -0600 Subject: Update README and CHANGELOG with changes --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e699e5..5898f60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,19 @@ 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). +## Unreleased + + - Change Travis CI to lint all files as well as run the tests. + - Add `reset()` and `save()` methods to `ConfigFile`. This allows you to reset your + configuration file to an "original state," given the original config file path. + However, say you have a `config/config.json` file. Then it will automatically try + to look for `config/config.original.json` if no file path is specified. The `save()` + method should be called after your changes to the config file. It will write them + back out. + - Raise test coverage to 93% (`BaseParser` is abstract so it isn't tested and some + methods in `ConfigFile` simply use the same method in the parser so it doesn't make + sense to test those methods.) + ## 0.3.3 Fixed -- cgit v1.2.3 From 07347c74dd16a80fa206ec184c3fa8401a07cf94 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jan 2020 13:38:54 -0600 Subject: Remove linting from changelog since it was removed --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 5898f60..abd6826 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased - - Change Travis CI to lint all files as well as run the tests. - Add `reset()` and `save()` methods to `ConfigFile`. This allows you to reset your configuration file to an "original state," given the original config file path. However, say you have a `config/config.json` file. Then it will automatically try -- cgit v1.2.3 From c19f8f711ac99fe578c22eec47374dfbc2f734dd Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jan 2020 13:39:13 -0600 Subject: =?UTF-8?q?Bump=20version:=200.3.3=20=E2=86=92=200.4.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index abd6826..5306057 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ 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). -## Unreleased +## 0.4.0 - 2020-01-19 - Add `reset()` and `save()` methods to `ConfigFile`. This allows you to reset your configuration file to an "original state," given the original config file path. -- cgit v1.2.3 From 9c8c6c1fc2ccf31bc8c709ab052c34a45e207b36 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jan 2020 14:40:13 -0600 Subject: Add support for retrieving entire sections with get() --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 5306057..d90dc54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,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). +## Unreleased + + - Add support for retrieving entire sections as a `dict` with `get()`. + ## 0.4.0 - 2020-01-19 - Add `reset()` and `save()` methods to `ConfigFile`. This allows you to reset your -- cgit v1.2.3 From 757f14b288979681f2a872bdbb8092f573a1fd07 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jan 2020 14:40:38 -0600 Subject: =?UTF-8?q?Bump=20version:=200.4.0=20=E2=86=92=200.5.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index d90dc54..76e93bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ 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). -## Unreleased +## 0.5.0 - 2020-01-19 - Add support for retrieving entire sections as a `dict` with `get()`. -- cgit v1.2.3 From d9bddaa1acd7496d13eea1e1d88961c5b670c555 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jan 2020 14:42:21 -0600 Subject: Fix 0.3.3 with changelog --- CHANGELOG.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 76e93bc..c12cf1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,15 +21,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 methods in `ConfigFile` simply use the same method in the parser so it doesn't make sense to test those methods.) -## 0.3.3 - -Fixed - - - `TypeError` when setting the key/value pairs since configparser requires the option - to be a string. The parser now just converts the value to a string if it is not one - and then adds the key/value pair. It would still be parsed correctly when retrieving - it. - ## 0.3.3 - 2020-01-18 - 2020-01-17 Changed @@ -40,6 +31,11 @@ Changed Fixed - `ConfigFile` was trying to use `_split_on_dot`, but it no longer inherited from base parser. + + - `TypeError` when setting the key/value pairs since configparser requires the option + to be a string. The parser now just converts the value to a string if it is not one + and then adds the key/value pair. It would still be parsed correctly when retrieving + it. ## 0.3.1 - 2020-01-17 -- cgit v1.2.3 From 5f51ce75b21438115013a7a996a31ea5c809daf9 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jan 2020 14:42:58 -0600 Subject: Fix date on 0.3.3 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index c12cf1b..257f685 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 methods in `ConfigFile` simply use the same method in the parser so it doesn't make sense to test those methods.) -## 0.3.3 - 2020-01-18 - 2020-01-17 +## 0.3.3 - 2020-01-18 Changed -- cgit v1.2.3 From d273fc16f44d351645d91b74500488c2ccdc2210 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jan 2020 14:46:20 -0600 Subject: Add spacing --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 257f685..7ccab9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 to look for `config/config.original.json` if no file path is specified. The `save()` method should be called after your changes to the config file. It will write them back out. + - Raise test coverage to 93% (`BaseParser` is abstract so it isn't tested and some methods in `ConfigFile` simply use the same method in the parser so it doesn't make sense to test those methods.) @@ -81,4 +82,4 @@ Added - bump2version for easily upgrading versions of config file - - pytest to dev dependencies for testing later on \ No newline at end of file + - pytest to dev dependencies for testing later on -- cgit v1.2.3