Mercurial > hgrepos > Python > libs > ConfigMix
annotate doc/changes.rst @ 195:28e6c1413947
Added support for TOML style configuration files
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 03 May 2019 21:51:09 +0200 |
| parents | 46c7d872db83 |
| children | 24f4ab79a3ab |
| rev | line source |
|---|---|
|
192
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
1 .. -*- coding: utf-8; mode: rst; -*- |
| 91 | 2 |
| 3 ========= | |
| 4 Changes | |
| 5 ========= | |
| 6 | |
|
111
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
91
diff
changeset
|
7 All major changes over the versions are listed here. For breaking |
| 91 | 8 changes have a look at :ref:`api-changes`, they are listed there in |
| 9 detail. | |
| 10 | |
| 11 .. include:: ../CHANGES.txt | |
| 12 | |
| 13 | |
| 14 .. _api-changes: | |
| 15 | |
|
111
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
91
diff
changeset
|
16 Breaking Changes |
|
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
91
diff
changeset
|
17 ================ |
|
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
91
diff
changeset
|
18 |
|
176
24a05dae0e76
FIX: Document the breaking change in the upcoming v0.7 in the chapter for "Breaking Changes" also
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
160
diff
changeset
|
19 0.7 |
|
24a05dae0e76
FIX: Document the breaking change in the upcoming v0.7 in the chapter for "Breaking Changes" also
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
160
diff
changeset
|
20 --- |
|
24a05dae0e76
FIX: Document the breaking change in the upcoming v0.7 in the chapter for "Breaking Changes" also
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
160
diff
changeset
|
21 |
|
192
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
22 - A major overhowl of how filename extensions are associated with loaders |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
23 has been done: |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
24 |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
25 + Filename extensions in :mod:`fnmatch` style are associated with |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
26 file-mode strings. These file-mode strings are associated with loader |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
27 functions separately. |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
28 |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
29 + :py:func:`configmix.set_assoc`, :py:func:`configmix.get_assoc`, |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
30 :py:func:`configmix.clear_assoc` and |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
31 :py:func:`configmix.get_default_assoc` are the new names for the old |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
32 `set_loader()`, `get_loader()`, `clear_loader()` and |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
33 `get_default_loader()` functions. |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
34 |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
35 + :py:func:`configmix.set_assoc` now requires a :mod:`fnmatch` style |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
36 pattern instead of just a file extension string (i.e. a plain trailer). |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
37 The previons dictionary with mapping from filename extensions to loader |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
38 callables is now a list of tuples containing the :mod:`fnmatch` style |
|
46c7d872db83
Changelog: note the latest refactorings
Franz Glasner <fzglas.hg@dom66.de>
parents:
176
diff
changeset
|
39 pattern and the corresponding loader callable. |
|
176
24a05dae0e76
FIX: Document the breaking change in the upcoming v0.7 in the chapter for "Breaking Changes" also
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
160
diff
changeset
|
40 |
|
24a05dae0e76
FIX: Document the breaking change in the upcoming v0.7 in the chapter for "Breaking Changes" also
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
160
diff
changeset
|
41 |
|
111
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
91
diff
changeset
|
42 0.6 |
|
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
91
diff
changeset
|
43 --- |
| 91 | 44 |
|
111
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
91
diff
changeset
|
45 - :py:func:`configmix.safe_merge` does now a deepcopy of all source |
| 160 | 46 configurations when merging. Changes in configuration instances |
| 47 afterwards will not be reflected in the merged configuration any | |
| 48 more. | |
|
111
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
91
diff
changeset
|
49 |
|
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
91
diff
changeset
|
50 The public signature of :py:func:`configmix.safe_merge` has *not* |
|
d51a18e5b0e3
Reimplement configmix.safe_merge() do to a deepcopy of all source configurations when merging.
Franz Glasner <hg@dom66.de>
parents:
91
diff
changeset
|
51 changed. |
|
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:
111
diff
changeset
|
52 |
|
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:
111
diff
changeset
|
53 - 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:
111
diff
changeset
|
54 :py:func:`configmix.ini.load` is now "UTF-8". Previously it was undefined |
|
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:
111
diff
changeset
|
55 and therefore dependent on the user's locale. |
