Mercurial > hgrepos > Python > libs > ConfigMix
annotate CHANGES.txt @ 303:2a2f5b86fe34
Move some important public constants into the .constants sub-module
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 25 Apr 2021 16:09:00 +0200 |
| parents | 5648e4611383 |
| children | f529ca46dd50 |
| rev | line source |
|---|---|
|
103
2eac386f825a
FIX: Typo in Emacs line: indent-tags-mode -> indent-tabs-mode
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
97
diff
changeset
|
1 .. -*- coding: utf-8; mode: rst; indent-tabs-mode: nil; -*- |
| 91 | 2 |
| 3 .. | |
|
166
b5ce9a8461bf
Use the filesystem encoding explicitely where appropriate.
Franz Glasner <fzglas.hg@dom66.de>
parents:
164
diff
changeset
|
4 .. Valid tags: breaking, feature, bugfix, misc, test, doc |
|
103
2eac386f825a
FIX: Typo in Emacs line: indent-tags-mode -> indent-tabs-mode
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
97
diff
changeset
|
5 .. |
| 91 | 6 |
| 7 .. _changelog: | |
| 8 | |
| 9 Changelog | |
| 10 ========= | |
| 11 | |
| 12 Pre-1.0 Series | |
| 13 -------------- | |
| 14 | |
| 15 .. changelog:: | |
|
303
2a2f5b86fe34
Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
297
diff
changeset
|
16 :version: none |
|
2a2f5b86fe34
Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
297
diff
changeset
|
17 :released: not yet |
|
2a2f5b86fe34
Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
297
diff
changeset
|
18 |
|
2a2f5b86fe34
Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
297
diff
changeset
|
19 .. change:: |
|
2a2f5b86fe34
Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
297
diff
changeset
|
20 :tags: breaking, misc |
|
2a2f5b86fe34
Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
297
diff
changeset
|
21 |
|
2a2f5b86fe34
Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
297
diff
changeset
|
22 Moved some important public constants from :py:mod:`configmix` |
|
2a2f5b86fe34
Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
297
diff
changeset
|
23 into the :py:mod:`configmix.constants` module. |
|
2a2f5b86fe34
Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
297
diff
changeset
|
24 |
|
2a2f5b86fe34
Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
297
diff
changeset
|
25 .. changelog:: |
| 297 | 26 :version: 0.13 |
| 27 :released: 2021-04-21 | |
|
290
aec97edf7945
Prepare for new dev: bump version to 0.13.dev1 and adjust copyright year for most important files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
286
diff
changeset
|
28 |
|
291
edf5cc1ffd26
Provide an optional "strict" keyword flag to all YAML load functions to detect and prevent duplicate keys within a single YAML document
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
290
diff
changeset
|
29 .. change:: |
|
edf5cc1ffd26
Provide an optional "strict" keyword flag to all YAML load functions to detect and prevent duplicate keys within a single YAML document
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
290
diff
changeset
|
30 :tags: feature |
|
edf5cc1ffd26
Provide an optional "strict" keyword flag to all YAML load functions to detect and prevent duplicate keys within a single YAML document
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
290
diff
changeset
|
31 |
|
edf5cc1ffd26
Provide an optional "strict" keyword flag to all YAML load functions to detect and prevent duplicate keys within a single YAML document
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
290
diff
changeset
|
32 All YAML load functions got a new optional keyword `strict` to detect |
|
edf5cc1ffd26
Provide an optional "strict" keyword flag to all YAML load functions to detect and prevent duplicate keys within a single YAML document
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
290
diff
changeset
|
33 and prevent duplicate keys within a single YAML document. |
|
edf5cc1ffd26
Provide an optional "strict" keyword flag to all YAML load functions to detect and prevent duplicate keys within a single YAML document
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
290
diff
changeset
|
34 |
| 294 | 35 The top-level load function also understands this flag and provides it |
| 36 to low-level-loaders that understand it. | |
| 37 | |
|
290
aec97edf7945
Prepare for new dev: bump version to 0.13.dev1 and adjust copyright year for most important files
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
286
diff
changeset
|
38 .. changelog:: |
| 286 | 39 :version: 0.12 |
| 40 :released: 2020-12-07 | |
|
285
ac2e631d8ab9
Changelog: note AWS additions
Franz Glasner <fzglas.hg@dom66.de>
parents:
279
diff
changeset
|
41 |
|
ac2e631d8ab9
Changelog: note AWS additions
Franz Glasner <fzglas.hg@dom66.de>
parents:
279
diff
changeset
|
42 .. change:: |
|
ac2e631d8ab9
Changelog: note AWS additions
Franz Glasner <fzglas.hg@dom66.de>
parents:
279
diff
changeset
|
43 :tags: feature |
|
ac2e631d8ab9
Changelog: note AWS additions
Franz Glasner <fzglas.hg@dom66.de>
parents:
279
diff
changeset
|
44 |
|
ac2e631d8ab9
Changelog: note AWS additions
Franz Glasner <fzglas.hg@dom66.de>
parents:
279
diff
changeset
|
45 Provide an ``AWS`` namespace to retrieve some AWS instance metadata. |
|
ac2e631d8ab9
Changelog: note AWS additions
Franz Glasner <fzglas.hg@dom66.de>
parents:
279
diff
changeset
|
46 |
|
ac2e631d8ab9
Changelog: note AWS additions
Franz Glasner <fzglas.hg@dom66.de>
parents:
279
diff
changeset
|
47 .. changelog:: |
| 279 | 48 :version: 0.11 |
| 49 :released: 2020-10-05 | |
|
276
af371f9c016d
Allow deletion of key-value pairs when merging is done.
Franz Glasner <fzglas.hg@dom66.de>
parents:
270
diff
changeset
|
50 |
|
af371f9c016d
Allow deletion of key-value pairs when merging is done.
Franz Glasner <fzglas.hg@dom66.de>
parents:
270
diff
changeset
|
51 .. change:: |
|
af371f9c016d
Allow deletion of key-value pairs when merging is done.
Franz Glasner <fzglas.hg@dom66.de>
parents:
270
diff
changeset
|
52 :tags: feature |
|
af371f9c016d
Allow deletion of key-value pairs when merging is done.
Franz Glasner <fzglas.hg@dom66.de>
parents:
270
diff
changeset
|
53 |
|
af371f9c016d
Allow deletion of key-value pairs when merging is done.
Franz Glasner <fzglas.hg@dom66.de>
parents:
270
diff
changeset
|
54 Allow the deletion of key-value pairs while merging configurations. |
|
af371f9c016d
Allow deletion of key-value pairs when merging is done.
Franz Glasner <fzglas.hg@dom66.de>
parents:
270
diff
changeset
|
55 |
| 278 | 56 This is done by recognizing and handling the special |
| 57 configuration value ``{{::DEL::}}``. | |
| 58 | |
|
276
af371f9c016d
Allow deletion of key-value pairs when merging is done.
Franz Glasner <fzglas.hg@dom66.de>
parents:
270
diff
changeset
|
59 .. changelog:: |
| 270 | 60 :version: 0.10 |
| 61 :released: 2020-09-10 | |
|
266
46571485b7d4
Allow loading configuration files from directories when using the "<dir>" prefix in filenames.
Franz Glasner <fzglas.hg@dom66.de>
parents:
262
diff
changeset
|
62 |
|
46571485b7d4
Allow loading configuration files from directories when using the "<dir>" prefix in filenames.
Franz Glasner <fzglas.hg@dom66.de>
parents:
262
diff
changeset
|
63 .. change:: |
|
46571485b7d4
Allow loading configuration files from directories when using the "<dir>" prefix in filenames.
Franz Glasner <fzglas.hg@dom66.de>
parents:
262
diff
changeset
|
64 :tags: feature |
|
46571485b7d4
Allow loading configuration files from directories when using the "<dir>" prefix in filenames.
Franz Glasner <fzglas.hg@dom66.de>
parents:
262
diff
changeset
|
65 |
|
46571485b7d4
Allow loading configuration files from directories when using the "<dir>" prefix in filenames.
Franz Glasner <fzglas.hg@dom66.de>
parents:
262
diff
changeset
|
66 Allow loading configuration files from directories when using |
|
46571485b7d4
Allow loading configuration files from directories when using the "<dir>" prefix in filenames.
Franz Glasner <fzglas.hg@dom66.de>
parents:
262
diff
changeset
|
67 the "<dir>" prefix in filenames. |
|
46571485b7d4
Allow loading configuration files from directories when using the "<dir>" prefix in filenames.
Franz Glasner <fzglas.hg@dom66.de>
parents:
262
diff
changeset
|
68 |
|
46571485b7d4
Allow loading configuration files from directories when using the "<dir>" prefix in filenames.
Franz Glasner <fzglas.hg@dom66.de>
parents:
262
diff
changeset
|
69 Unknown filetypes within these directories are ignored |
|
46571485b7d4
Allow loading configuration files from directories when using the "<dir>" prefix in filenames.
Franz Glasner <fzglas.hg@dom66.de>
parents:
262
diff
changeset
|
70 automatically. |
|
46571485b7d4
Allow loading configuration files from directories when using the "<dir>" prefix in filenames.
Franz Glasner <fzglas.hg@dom66.de>
parents:
262
diff
changeset
|
71 |
|
268
1484f6c0223a
Implemented "del_assoc()"
Franz Glasner <fzglas.hg@dom66.de>
parents:
266
diff
changeset
|
72 .. change:: |
|
1484f6c0223a
Implemented "del_assoc()"
Franz Glasner <fzglas.hg@dom66.de>
parents:
266
diff
changeset
|
73 :tags: feature |
|
1484f6c0223a
Implemented "del_assoc()"
Franz Glasner <fzglas.hg@dom66.de>
parents:
266
diff
changeset
|
74 |
|
1484f6c0223a
Implemented "del_assoc()"
Franz Glasner <fzglas.hg@dom66.de>
parents:
266
diff
changeset
|
75 Implemented a function to delete an association: |
|
1484f6c0223a
Implemented "del_assoc()"
Franz Glasner <fzglas.hg@dom66.de>
parents:
266
diff
changeset
|
76 :py:func:`configmix.del_assoc`. |
|
1484f6c0223a
Implemented "del_assoc()"
Franz Glasner <fzglas.hg@dom66.de>
parents:
266
diff
changeset
|
77 |
|
266
46571485b7d4
Allow loading configuration files from directories when using the "<dir>" prefix in filenames.
Franz Glasner <fzglas.hg@dom66.de>
parents:
262
diff
changeset
|
78 .. changelog:: |
| 262 | 79 :version: 0.9 |
| 80 :released: 2020-07-28 | |
|
260
2cfd670281ae
Do not set "root", "self" and "here" variables any more.
Franz Glasner <fzglas.hg@dom66.de>
parents:
257
diff
changeset
|
81 |
|
2cfd670281ae
Do not set "root", "self" and "here" variables any more.
Franz Glasner <fzglas.hg@dom66.de>
parents:
257
diff
changeset
|
82 .. change:: |
|
261
b84f8060d54c
More elaborated changelog for the last change.
Franz Glasner <fzglas.hg@dom66.de>
parents:
260
diff
changeset
|
83 :tags: breaking, feature |
|
260
2cfd670281ae
Do not set "root", "self" and "here" variables any more.
Franz Glasner <fzglas.hg@dom66.de>
parents:
257
diff
changeset
|
84 |
|
261
b84f8060d54c
More elaborated changelog for the last change.
Franz Glasner <fzglas.hg@dom66.de>
parents:
260
diff
changeset
|
85 Do not set "root", "self" and "here" variables any more. The old |
|
b84f8060d54c
More elaborated changelog for the last change.
Franz Glasner <fzglas.hg@dom66.de>
parents:
260
diff
changeset
|
86 behaviour hindered proper automatic configuration on some PyPy |
|
b84f8060d54c
More elaborated changelog for the last change.
Franz Glasner <fzglas.hg@dom66.de>
parents:
260
diff
changeset
|
87 configurations when using `genapplib`. |
|
b84f8060d54c
More elaborated changelog for the last change.
Franz Glasner <fzglas.hg@dom66.de>
parents:
260
diff
changeset
|
88 |
|
b84f8060d54c
More elaborated changelog for the last change.
Franz Glasner <fzglas.hg@dom66.de>
parents:
260
diff
changeset
|
89 Only the INI-parser did set this variables automatically. |
|
260
2cfd670281ae
Do not set "root", "self" and "here" variables any more.
Franz Glasner <fzglas.hg@dom66.de>
parents:
257
diff
changeset
|
90 |
|
2cfd670281ae
Do not set "root", "self" and "here" variables any more.
Franz Glasner <fzglas.hg@dom66.de>
parents:
257
diff
changeset
|
91 .. changelog:: |
| 257 | 92 :version: 0.8.1 |
| 93 :released: 2020-07-08 | |
| 94 | |
| 95 .. change:: | |
| 96 :tags: bugfix | |
| 97 | |
| 98 Allow non-string keys when merging configurations. | |
| 99 | |
| 100 .. changelog:: | |
| 253 | 101 :version: 0.8 |
| 102 :released: 2020-07-08 | |
|
251
2a8dcab2de8c
Do not implicitely convert a configuration value to text if the value is the result of just a variable expansion.
Franz Glasner <fzglas.hg@dom66.de>
parents:
245
diff
changeset
|
103 |
|
2a8dcab2de8c
Do not implicitely convert a configuration value to text if the value is the result of just a variable expansion.
Franz Glasner <fzglas.hg@dom66.de>
parents:
245
diff
changeset
|
104 .. change:: |
|
2a8dcab2de8c
Do not implicitely convert a configuration value to text if the value is the result of just a variable expansion.
Franz Glasner <fzglas.hg@dom66.de>
parents:
245
diff
changeset
|
105 :tags: breaking, feature |
|
2a8dcab2de8c
Do not implicitely convert a configuration value to text if the value is the result of just a variable expansion.
Franz Glasner <fzglas.hg@dom66.de>
parents:
245
diff
changeset
|
106 |
|
2a8dcab2de8c
Do not implicitely convert a configuration value to text if the value is the result of just a variable expansion.
Franz Glasner <fzglas.hg@dom66.de>
parents:
245
diff
changeset
|
107 Do not implicitely convert a configuration value to text if the |
|
2a8dcab2de8c
Do not implicitely convert a configuration value to text if the value is the result of just a variable expansion.
Franz Glasner <fzglas.hg@dom66.de>
parents:
245
diff
changeset
|
108 value is the result of just a variable expansion. |
|
2a8dcab2de8c
Do not implicitely convert a configuration value to text if the value is the result of just a variable expansion.
Franz Glasner <fzglas.hg@dom66.de>
parents:
245
diff
changeset
|
109 |
|
2a8dcab2de8c
Do not implicitely convert a configuration value to text if the value is the result of just a variable expansion.
Franz Glasner <fzglas.hg@dom66.de>
parents:
245
diff
changeset
|
110 .. changelog:: |
| 245 | 111 :version: 0.7.4 |
| 112 :released: 2020-05-21 | |
|
242
bfa4d125fd14
FIX: The namespace lookup implementation for the "OS" namespace did not properly handle the "default" argument.
Franz Glasner <fzglas.hg@dom66.de>
parents:
239
diff
changeset
|
113 |
|
bfa4d125fd14
FIX: The namespace lookup implementation for the "OS" namespace did not properly handle the "default" argument.
Franz Glasner <fzglas.hg@dom66.de>
parents:
239
diff
changeset
|
114 .. change:: |
|
244
6d473abe308d
Change the order of items in CHANGES.txt
Franz Glasner <fzglas.hg@dom66.de>
parents:
243
diff
changeset
|
115 :tags: feature |
|
6d473abe308d
Change the order of items in CHANGES.txt
Franz Glasner <fzglas.hg@dom66.de>
parents:
243
diff
changeset
|
116 |
|
6d473abe308d
Change the order of items in CHANGES.txt
Franz Glasner <fzglas.hg@dom66.de>
parents:
243
diff
changeset
|
117 Implemented new namespace function ``OS:node`` to return the node's |
|
6d473abe308d
Change the order of items in CHANGES.txt
Franz Glasner <fzglas.hg@dom66.de>
parents:
243
diff
changeset
|
118 computername. |
|
6d473abe308d
Change the order of items in CHANGES.txt
Franz Glasner <fzglas.hg@dom66.de>
parents:
243
diff
changeset
|
119 |
|
6d473abe308d
Change the order of items in CHANGES.txt
Franz Glasner <fzglas.hg@dom66.de>
parents:
243
diff
changeset
|
120 .. change:: |
|
242
bfa4d125fd14
FIX: The namespace lookup implementation for the "OS" namespace did not properly handle the "default" argument.
Franz Glasner <fzglas.hg@dom66.de>
parents:
239
diff
changeset
|
121 :tags: bugfix |
|
bfa4d125fd14
FIX: The namespace lookup implementation for the "OS" namespace did not properly handle the "default" argument.
Franz Glasner <fzglas.hg@dom66.de>
parents:
239
diff
changeset
|
122 |
|
bfa4d125fd14
FIX: The namespace lookup implementation for the "OS" namespace did not properly handle the "default" argument.
Franz Glasner <fzglas.hg@dom66.de>
parents:
239
diff
changeset
|
123 The ``OS`` namespace lookup did not handle non-existing variables |
|
bfa4d125fd14
FIX: The namespace lookup implementation for the "OS" namespace did not properly handle the "default" argument.
Franz Glasner <fzglas.hg@dom66.de>
parents:
239
diff
changeset
|
124 properly and ignored the `default` parameter. |
|
bfa4d125fd14
FIX: The namespace lookup implementation for the "OS" namespace did not properly handle the "default" argument.
Franz Glasner <fzglas.hg@dom66.de>
parents:
239
diff
changeset
|
125 |
|
bfa4d125fd14
FIX: The namespace lookup implementation for the "OS" namespace did not properly handle the "default" argument.
Franz Glasner <fzglas.hg@dom66.de>
parents:
239
diff
changeset
|
126 |
|
bfa4d125fd14
FIX: The namespace lookup implementation for the "OS" namespace did not properly handle the "default" argument.
Franz Glasner <fzglas.hg@dom66.de>
parents:
239
diff
changeset
|
127 .. changelog:: |
|
238
be04384727c8
Prepare CHANGES for 0.7.3
Franz Glasner <fzglas.hg@dom66.de>
parents:
234
diff
changeset
|
128 :version: 0.7.3 |
| 239 | 129 :released: 2020-05-13 |
|
238
be04384727c8
Prepare CHANGES for 0.7.3
Franz Glasner <fzglas.hg@dom66.de>
parents:
234
diff
changeset
|
130 |
|
be04384727c8
Prepare CHANGES for 0.7.3
Franz Glasner <fzglas.hg@dom66.de>
parents:
234
diff
changeset
|
131 .. change:: |
|
be04384727c8
Prepare CHANGES for 0.7.3
Franz Glasner <fzglas.hg@dom66.de>
parents:
234
diff
changeset
|
132 :tags: |
|
be04384727c8
Prepare CHANGES for 0.7.3
Franz Glasner <fzglas.hg@dom66.de>
parents:
234
diff
changeset
|
133 |
|
be04384727c8
Prepare CHANGES for 0.7.3
Franz Glasner <fzglas.hg@dom66.de>
parents:
234
diff
changeset
|
134 No code changes. |
|
be04384727c8
Prepare CHANGES for 0.7.3
Franz Glasner <fzglas.hg@dom66.de>
parents:
234
diff
changeset
|
135 |
|
be04384727c8
Prepare CHANGES for 0.7.3
Franz Glasner <fzglas.hg@dom66.de>
parents:
234
diff
changeset
|
136 |
|
be04384727c8
Prepare CHANGES for 0.7.3
Franz Glasner <fzglas.hg@dom66.de>
parents:
234
diff
changeset
|
137 .. changelog:: |
| 230 | 138 :version: 0.7.2 |
|
233
2ec722518d5d
FIX: v0.7.2 is released already: put the release date into the changelog
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
230
diff
changeset
|
139 :released: 2019-05-13 |
|
227
f5011eec3b6e
Added a loader with key "ignore" that ignores the given configuration file
Franz Glasner <fzglas.hg@dom66.de>
parents:
226
diff
changeset
|
140 |
|
f5011eec3b6e
Added a loader with key "ignore" that ignores the given configuration file
Franz Glasner <fzglas.hg@dom66.de>
parents:
226
diff
changeset
|
141 .. change:: |
|
f5011eec3b6e
Added a loader with key "ignore" that ignores the given configuration file
Franz Glasner <fzglas.hg@dom66.de>
parents:
226
diff
changeset
|
142 :tags: feature |
|
f5011eec3b6e
Added a loader with key "ignore" that ignores the given configuration file
Franz Glasner <fzglas.hg@dom66.de>
parents:
226
diff
changeset
|
143 |
|
234
f39e54e4f29a
FIX: Wording in CHANGES.txt
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
233
diff
changeset
|
144 Implemented a loader with key ``-*-ignore-*-`` effectively |
|
f39e54e4f29a
FIX: Wording in CHANGES.txt
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
233
diff
changeset
|
145 ignores the contents of given file. No file extensions are by |
|
f39e54e4f29a
FIX: Wording in CHANGES.txt
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
233
diff
changeset
|
146 default associated with this loader. |
|
227
f5011eec3b6e
Added a loader with key "ignore" that ignores the given configuration file
Franz Glasner <fzglas.hg@dom66.de>
parents:
226
diff
changeset
|
147 |
|
226
8b1c52d5e7d5
Bump version to 0.7.2.dev1 for next development steps
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
148 |
|
8b1c52d5e7d5
Bump version to 0.7.2.dev1 for next development steps
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
149 .. changelog:: |
| 223 | 150 :version: 0.7.1 |
| 151 :released: 2019-05-10 | |
|
216
c03c9162f7e6
Prepare next version (planned: 0.7.1.dev1)
Franz Glasner <fzglas.hg@dom66.de>
parents:
211
diff
changeset
|
152 |
|
217
b869e792310e
FIX: Extra merged and unsafe merges in configmix.safe_load
Franz Glasner <fzglas.hg@dom66.de>
parents:
216
diff
changeset
|
153 .. change:: |
|
221
6f0f39a9a46f
configmix.load() and .safe_load() got a new keyword argument "extras" to be merged in as last configuration dictionary
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
154 :tags: feature |
|
6f0f39a9a46f
configmix.load() and .safe_load() got a new keyword argument "extras" to be merged in as last configuration dictionary
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
155 |
|
6f0f39a9a46f
configmix.load() and .safe_load() got a new keyword argument "extras" to be merged in as last configuration dictionary
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
156 :py:func:`configmix.load` and :py:func:`configmix.safe_load` got a |
|
6f0f39a9a46f
configmix.load() and .safe_load() got a new keyword argument "extras" to be merged in as last configuration dictionary
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
157 new keyword argument `extras` that (if given) will be used as the |
|
6f0f39a9a46f
configmix.load() and .safe_load() got a new keyword argument "extras" to be merged in as last configuration dictionary
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
158 *last* configuration dictionary to be merged into the configuration. |
|
6f0f39a9a46f
configmix.load() and .safe_load() got a new keyword argument "extras" to be merged in as last configuration dictionary
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
159 |
|
6f0f39a9a46f
configmix.load() and .safe_load() got a new keyword argument "extras" to be merged in as last configuration dictionary
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
160 This can be used to overwrite configuration file settings from |
|
6f0f39a9a46f
configmix.load() and .safe_load() got a new keyword argument "extras" to be merged in as last configuration dictionary
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
161 commandline arguments. |
|
6f0f39a9a46f
configmix.load() and .safe_load() got a new keyword argument "extras" to be merged in as last configuration dictionary
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
162 |
|
6f0f39a9a46f
configmix.load() and .safe_load() got a new keyword argument "extras" to be merged in as last configuration dictionary
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
163 .. change:: |
|
217
b869e792310e
FIX: Extra merged and unsafe merges in configmix.safe_load
Franz Glasner <fzglas.hg@dom66.de>
parents:
216
diff
changeset
|
164 :tags: bugfix |
|
b869e792310e
FIX: Extra merged and unsafe merges in configmix.safe_load
Franz Glasner <fzglas.hg@dom66.de>
parents:
216
diff
changeset
|
165 |
|
218
b56586789838
FIX: Docu: Sphinx reference syntax to a Python function
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
217
diff
changeset
|
166 :py:func:`configmix.safe_load` did some preliminary unsafe merges |
|
217
b869e792310e
FIX: Extra merged and unsafe merges in configmix.safe_load
Franz Glasner <fzglas.hg@dom66.de>
parents:
216
diff
changeset
|
167 from `defaults` and an extra additional unneeded merge. |
|
b869e792310e
FIX: Extra merged and unsafe merges in configmix.safe_load
Franz Glasner <fzglas.hg@dom66.de>
parents:
216
diff
changeset
|
168 |
|
227
f5011eec3b6e
Added a loader with key "ignore" that ignores the given configuration file
Franz Glasner <fzglas.hg@dom66.de>
parents:
226
diff
changeset
|
169 |
|
216
c03c9162f7e6
Prepare next version (planned: 0.7.1.dev1)
Franz Glasner <fzglas.hg@dom66.de>
parents:
211
diff
changeset
|
170 .. changelog:: |
| 211 | 171 :version: 0.7 |
| 172 :released: 2019-05-06 | |
|
170
c247a5dc35ed
Begin development of a version 0.7 with some API changes
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
167
diff
changeset
|
173 |
|
171
1ff11462a5c1
The associations from filename extensions to parsers are "fnmatch" style patterns now.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
170
diff
changeset
|
174 .. change:: |
| 182 | 175 :tags: breaking |
| 176 | |
|
192
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
177 Additional or alternative loaders can be installed by changing |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
178 the :py:data:`configmix.mode_loaders` dictionary directly. |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
179 |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
180 .. change:: |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
181 :tags: breaking |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
182 |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
183 The public functions to associate filename extensions to filemodes |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
184 have been renamed to :py:func:`configmix.set_assoc`, |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
185 :py:func:`configmix.get_assoc`, |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
186 :py:func:`configmix.clear_assoc`, |
| 182 | 187 :py:func:`configmix.get_default_assoc`. |
| 188 | |
|
192
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
189 The filemodes must be keys in the :py:data:`configmix.mode_loaders` |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
190 dictionary. |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
191 |
| 182 | 192 .. change:: |
|
171
1ff11462a5c1
The associations from filename extensions to parsers are "fnmatch" style patterns now.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
170
diff
changeset
|
193 :tags: breaking, feature |
|
1ff11462a5c1
The associations from filename extensions to parsers are "fnmatch" style patterns now.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
170
diff
changeset
|
194 |
|
1ff11462a5c1
The associations from filename extensions to parsers are "fnmatch" style patterns now.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
170
diff
changeset
|
195 The associations from filename extensions to parsers are |
|
172
8138d56d7cd3
".load" and ".safe_load" get a keyword parameter "defaults" that allows the provision of a configuration dictionary with default settings
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
171
diff
changeset
|
196 :py:mod:`fnmatch` style patterns now. |
|
171
1ff11462a5c1
The associations from filename extensions to parsers are "fnmatch" style patterns now.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
170
diff
changeset
|
197 |
|
192
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
198 Calling :py:func:`configmix.set_assoc` by default prepends to |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
199 the currently defined associations and therefore gets the |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
200 highest priority. Appending is possible also. |
|
171
1ff11462a5c1
The associations from filename extensions to parsers are "fnmatch" style patterns now.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
170
diff
changeset
|
201 |
|
172
8138d56d7cd3
".load" and ".safe_load" get a keyword parameter "defaults" that allows the provision of a configuration dictionary with default settings
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
171
diff
changeset
|
202 .. change:: |
|
8138d56d7cd3
".load" and ".safe_load" get a keyword parameter "defaults" that allows the provision of a configuration dictionary with default settings
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
171
diff
changeset
|
203 :tags: feature |
|
8138d56d7cd3
".load" and ".safe_load" get a keyword parameter "defaults" that allows the provision of a configuration dictionary with default settings
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
171
diff
changeset
|
204 |
|
192
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
205 :py:func:`configmix.load` and :py:func:`configmix.safe_load` got |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
206 a keyword argument `defaults` that allow the provision of an |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
207 already existing default configuration into which all additional |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
182
diff
changeset
|
208 configuration settings are merged into. |
|
172
8138d56d7cd3
".load" and ".safe_load" get a keyword parameter "defaults" that allows the provision of a configuration dictionary with default settings
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
171
diff
changeset
|
209 |
|
195
28e6c1413947
Added support for TOML style configuration files
Franz Glasner <fzglas.hg@dom66.de>
parents:
192
diff
changeset
|
210 .. change:: |
|
28e6c1413947
Added support for TOML style configuration files
Franz Glasner <fzglas.hg@dom66.de>
parents:
192
diff
changeset
|
211 :tags: feature |
|
28e6c1413947
Added support for TOML style configuration files
Franz Glasner <fzglas.hg@dom66.de>
parents:
192
diff
changeset
|
212 |
|
198
0b855758ba08
An additional TOML-related unittest (types)
Franz Glasner <fzglas.hg@dom66.de>
parents:
195
diff
changeset
|
213 Added support for TOML style configuration files. This needs |
|
204
bbc1aa40d781
Doc: use the correct URL for the source of the used toml library: https://github.com/uiri/toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
214 the external package :py:mod:`toml` (from https://github.com/uiri/toml). |
|
195
28e6c1413947
Added support for TOML style configuration files
Franz Glasner <fzglas.hg@dom66.de>
parents:
192
diff
changeset
|
215 |
|
170
c247a5dc35ed
Begin development of a version 0.7 with some API changes
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
167
diff
changeset
|
216 |
|
c247a5dc35ed
Begin development of a version 0.7 with some API changes
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
167
diff
changeset
|
217 .. changelog:: |
| 91 | 218 :version: 0.6 |
| 167 | 219 :released: 2019-03-14 |
| 91 | 220 |
| 221 .. change:: | |
|
111
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
103
diff
changeset
|
222 :tags: breaking, feature |
|
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
103
diff
changeset
|
223 |
| 222 | 224 Reimplemented :py:func:`configmix.safe_merge` to do a deepcopy of all |
|
118
e37fc67ae7f3
Changes: Document that previously "safe_merge()" made sort of shallow copies
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
111
diff
changeset
|
225 source configurations when merging. Previously is was sort of a |
|
e37fc67ae7f3
Changes: Document that previously "safe_merge()" made sort of shallow copies
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
111
diff
changeset
|
226 shallow copy. |
|
111
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
103
diff
changeset
|
227 |
|
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
103
diff
changeset
|
228 .. change:: |
|
120
ba5970a2dcef
The default file encoding when reading INI style files with configmix.ini.load() is now "UTF-8".
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
118
diff
changeset
|
229 :tags: breaking, feature |
|
ba5970a2dcef
The default file encoding when reading INI style files with configmix.ini.load() is now "UTF-8".
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
118
diff
changeset
|
230 |
|
ba5970a2dcef
The default file encoding when reading INI style files with configmix.ini.load() is now "UTF-8".
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
118
diff
changeset
|
231 The default file encoding when reading INI style files with |
|
ba5970a2dcef
The default file encoding when reading INI style files with configmix.ini.load() is now "UTF-8".
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
118
diff
changeset
|
232 :py:func:`configmix.ini.load` is now "UTF-8". Previously it was |
|
ba5970a2dcef
The default file encoding when reading INI style files with configmix.ini.load() is now "UTF-8".
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
118
diff
changeset
|
233 undefined and therefore dependent on the user's locale. |
|
ba5970a2dcef
The default file encoding when reading INI style files with configmix.ini.load() is now "UTF-8".
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
118
diff
changeset
|
234 |
|
ba5970a2dcef
The default file encoding when reading INI style files with configmix.ini.load() is now "UTF-8".
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
118
diff
changeset
|
235 An `encoding` keyword argument can be specified explicitely now. |
|
ba5970a2dcef
The default file encoding when reading INI style files with configmix.ini.load() is now "UTF-8".
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
118
diff
changeset
|
236 |
|
ba5970a2dcef
The default file encoding when reading INI style files with configmix.ini.load() is now "UTF-8".
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
118
diff
changeset
|
237 .. change:: |
|
147
8b7333caba25
Put the new comment-key feature into CHANGES
Franz Glasner <hg@dom66.de>
parents:
139
diff
changeset
|
238 :tags: breaking, feature |
|
8b7333caba25
Put the new comment-key feature into CHANGES
Franz Glasner <hg@dom66.de>
parents:
139
diff
changeset
|
239 |
|
203
b2a5442867e7
Doc: Wording: "allow" -> "support"
Franz Glasner <fzglas.hg@dom66.de>
parents:
198
diff
changeset
|
240 Support comment-like key-value pairs with configuration keys starting |
|
147
8b7333caba25
Put the new comment-key feature into CHANGES
Franz Glasner <hg@dom66.de>
parents:
139
diff
changeset
|
241 with ``__doc`` or ``__comment``. |
|
8b7333caba25
Put the new comment-key feature into CHANGES
Franz Glasner <hg@dom66.de>
parents:
139
diff
changeset
|
242 |
|
8b7333caba25
Put the new comment-key feature into CHANGES
Franz Glasner <hg@dom66.de>
parents:
139
diff
changeset
|
243 .. change:: |
|
166
b5ce9a8461bf
Use the filesystem encoding explicitely where appropriate.
Franz Glasner <fzglas.hg@dom66.de>
parents:
164
diff
changeset
|
244 :tags: misc |
|
b5ce9a8461bf
Use the filesystem encoding explicitely where appropriate.
Franz Glasner <fzglas.hg@dom66.de>
parents:
164
diff
changeset
|
245 |
|
b5ce9a8461bf
Use the filesystem encoding explicitely where appropriate.
Franz Glasner <fzglas.hg@dom66.de>
parents:
164
diff
changeset
|
246 Use the filesystem encoding where appripriate. |
|
b5ce9a8461bf
Use the filesystem encoding explicitely where appropriate.
Franz Glasner <fzglas.hg@dom66.de>
parents:
164
diff
changeset
|
247 |
|
b5ce9a8461bf
Use the filesystem encoding explicitely where appropriate.
Franz Glasner <fzglas.hg@dom66.de>
parents:
164
diff
changeset
|
248 .. change:: |
| 91 | 249 :tags: doc |
| 250 | |
| 93 | 251 Begin the documentation with `Sphinx <http://www.sphinx-doc.org>`_ |
| 252 | |
| 253 .. change:: | |
| 254 :tags: test | |
| 255 | |
| 256 Begin formal unittests | |
| 91 | 257 |
|
97
1b4d95f60650
Build a tree-ish configuration from an INI style configuration file
Franz Glasner <hg@dom66.de>
parents:
93
diff
changeset
|
258 .. change:: |
|
1b4d95f60650
Build a tree-ish configuration from an INI style configuration file
Franz Glasner <hg@dom66.de>
parents:
93
diff
changeset
|
259 :tags: feature |
|
1b4d95f60650
Build a tree-ish configuration from an INI style configuration file
Franz Glasner <hg@dom66.de>
parents:
93
diff
changeset
|
260 |
|
1b4d95f60650
Build a tree-ish configuration from an INI style configuration file
Franz Glasner <hg@dom66.de>
parents:
93
diff
changeset
|
261 Build a tree of configuration settings from INI files |
|
1b4d95f60650
Build a tree-ish configuration from an INI style configuration file
Franz Glasner <hg@dom66.de>
parents:
93
diff
changeset
|
262 |
|
122
21d92ff8cf31
Begin the handling of JSON-style configuration files
Franz Glasner <hg@dom66.de>
parents:
120
diff
changeset
|
263 .. change:: |
|
21d92ff8cf31
Begin the handling of JSON-style configuration files
Franz Glasner <hg@dom66.de>
parents:
120
diff
changeset
|
264 :tags: feature |
|
21d92ff8cf31
Begin the handling of JSON-style configuration files
Franz Glasner <hg@dom66.de>
parents:
120
diff
changeset
|
265 |
|
203
b2a5442867e7
Doc: Wording: "allow" -> "support"
Franz Glasner <fzglas.hg@dom66.de>
parents:
198
diff
changeset
|
266 Support JSON formatted files as configuration files also (suffix ".json"). |
|
122
21d92ff8cf31
Begin the handling of JSON-style configuration files
Franz Glasner <hg@dom66.de>
parents:
120
diff
changeset
|
267 |
|
139
c87b0dc54e1d
Allow custom configuration filename extensions and custom loaders that can handle custom configuration file syntax styles
Franz Glasner <hg@dom66.de>
parents:
122
diff
changeset
|
268 .. change:: |
|
c87b0dc54e1d
Allow custom configuration filename extensions and custom loaders that can handle custom configuration file syntax styles
Franz Glasner <hg@dom66.de>
parents:
122
diff
changeset
|
269 :tags: feature |
|
c87b0dc54e1d
Allow custom configuration filename extensions and custom loaders that can handle custom configuration file syntax styles
Franz Glasner <hg@dom66.de>
parents:
122
diff
changeset
|
270 |
|
c87b0dc54e1d
Allow custom configuration filename extensions and custom loaders that can handle custom configuration file syntax styles
Franz Glasner <hg@dom66.de>
parents:
122
diff
changeset
|
271 Allow custom configuration filename extensions and custom loaders that |
|
c87b0dc54e1d
Allow custom configuration filename extensions and custom loaders that can handle custom configuration file syntax styles
Franz Glasner <hg@dom66.de>
parents:
122
diff
changeset
|
272 can handle custom configuration file syntax styles. |
|
c87b0dc54e1d
Allow custom configuration filename extensions and custom loaders that can handle custom configuration file syntax styles
Franz Glasner <hg@dom66.de>
parents:
122
diff
changeset
|
273 |
|
111
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
103
diff
changeset
|
274 |
| 91 | 275 .. changelog:: |
| 276 :version: 0.5 | |
|
118
e37fc67ae7f3
Changes: Document that previously "safe_merge()" made sort of shallow copies
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
111
diff
changeset
|
277 :released: 2016-04-19 |
| 91 | 278 |
| 279 .. change:: | |
| 280 :tags: feature | |
| 281 | |
| 282 First really used release. |
