|
 |
9f4919b |
%global pkgname anyconfig
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%global desc \
|
|
 |
9f4919b |
Python library provides common APIs to load and dump configuration files in\
|
|
 |
9f4919b |
various formats such like JSON, YAML and XML with some useful features such as\
|
|
 |
9f4919b |
contents merge, templates, query, schema validation and generation support.
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%bcond_with optionals
|
|
 |
9f4919b |
%bcond_with tests
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
 |
9f4919b |
%bcond_without doc
|
|
 |
9f4919b |
%bcond_without extras
|
|
 |
9f4919b |
%else
|
|
 |
9f4919b |
%bcond_with doc
|
|
 |
9f4919b |
%bcond_with extras
|
|
 |
9f4919b |
%endif
|
|
 |
9f4919b |
|
|
 |
9f4919b |
Name: python-%{pkgname}
|
|
 |
5392dd6 |
Version: 0.13.0
|
|
 |
2a38c62 |
Release: 6%{?dist}
|
|
 |
9f4919b |
Summary: Python library to load and dump configuration files in various formats
|
|
 |
9f4919b |
License: MIT
|
|
 |
9f4919b |
URL: https://github.com/ssato/python-anyconfig
|
|
 |
9f4919b |
Source0: %{url}/archive/RELEASE_%{version}.tar.gz
|
|
 |
9f4919b |
BuildArch: noarch
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%if %{with doc}
|
|
 |
9f4919b |
BuildRequires: make
|
|
 |
b7f7312 |
BuildRequires: python3-docutils
|
|
 |
b7f7312 |
BuildRequires: python3-sphinx
|
|
 |
b7f7312 |
BuildRequires: python3-configobj
|
|
 |
b7f7312 |
BuildRequires: python3-toml
|
|
 |
b7f7312 |
BuildRequires: python3-PyYAML
|
|
 |
654829c |
BuildRequires: python3-sphinx-autodoc-typehints
|
|
 |
9f4919b |
%endif
|
|
 |
9f4919b |
BuildRequires: python3-devel
|
|
 |
9f4919b |
BuildRequires: python3-setuptools
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%description %{desc}
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%package -n python3-%{pkgname}
|
|
 |
9f4919b |
Summary: %{summary}
|
|
 |
9f4919b |
Requires: python3-PyYAML
|
|
 |
9f4919b |
Requires: python3-setuptools
|
|
 |
9f4919b |
%if %{with extras}
|
|
 |
9f4919b |
Requires: python3-jinja2
|
|
 |
9f4919b |
Requires: python3-jsonschema
|
|
 |
9f4919b |
Requires: python3-ruamel-yaml
|
|
 |
9f4919b |
%endif
|
|
 |
9f4919b |
%if %{with optionals}
|
|
 |
9f4919b |
Requires: python3-configobj
|
|
 |
9f4919b |
Requires: python3-toml
|
|
 |
9f4919b |
%endif
|
|
 |
9f4919b |
%{?python_provide:%python_provide python3-%{pkgname}}
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%description -n python3-%{pkgname} %{desc}
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%if %{with doc}
|
|
 |
9f4919b |
%package doc
|
|
 |
9f4919b |
Summary: Documentation for %{name}
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%description doc
|
|
 |
9f4919b |
HTML documentation for %{name}.
|
|
 |
9f4919b |
%endif
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%prep
|
|
 |
9f4919b |
%autosetup -n %{name}-RELEASE_%{version}
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%build
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%py3_build
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%if %{with doc}
|
|
 |
b7f7312 |
make -C docs/ SPHINXBUILD=sphinx-build-3 html
|
|
 |
9f4919b |
rm -f docs/build/html/.buildinfo
|
|
 |
9f4919b |
rm -frv docs/build/html/_sources
|
|
 |
9f4919b |
%endif
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%install
|
|
 |
9f4919b |
%py3_install
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%if %{with tests}
|
|
 |
9f4919b |
%check
|
|
 |
b7f7312 |
export WITH_PYTHON_3=1
|
|
 |
9f4919b |
./pkg/runtest.sh
|
|
 |
9f4919b |
%endif
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%files -n python3-%{pkgname}
|
|
 |
9f4919b |
%doc README.rst
|
|
 |
9f4919b |
%license LICENSE.MIT
|
|
 |
9f4919b |
%{python3_sitelib}/*
|
|
 |
9f4919b |
%{_bindir}/anyconfig*
|
|
 |
9f4919b |
%{_mandir}/*/anyconfig*.*.gz
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%if %{with doc}
|
|
 |
9f4919b |
%files doc
|
|
 |
9f4919b |
%doc README.rst
|
|
 |
9f4919b |
%doc docs/build/html
|
|
 |
9f4919b |
%endif
|
|
 |
9f4919b |
|
|
 |
9f4919b |
%changelog
|
|
 |
2a38c62 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-6
|
|
 |
2a38c62 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
 |
2a38c62 |
|
|
 |
0366120 |
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 0.13.0-5
|
|
 |
0366120 |
- Rebuilt for Python 3.12
|
|
 |
0366120 |
|
|
 |
f7b6288 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-4
|
|
 |
f7b6288 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
 |
f7b6288 |
|
|
 |
4a47138 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-3
|
|
 |
4a47138 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
 |
4a47138 |
|
|
 |
05d6873 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.13.0-2
|
|
 |
05d6873 |
- Rebuilt for Python 3.11
|
|
 |
05d6873 |
|
|
 |
5392dd6 |
* Mon Apr 04 2022 Chedi Toueiti <chedi.toueiti@gmail.com> - 0.13.0-1
|
|
 |
5392dd6 |
- Update to version 0.13.0 (#2071366)
|
|
 |
5392dd6 |
|
|
 |
81a3df8 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-2
|
|
 |
81a3df8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
 |
81a3df8 |
|
|
 |
abc1220 |
* Thu Sep 30 2021 Chedi Toueiti <chedi.toueiti@gmail.com> - 0.12.0-1
|
|
 |
abc1220 |
- Update to version 0.12.0 (#2005745)
|
|
 |
abc1220 |
|
|
 |
5cd3761 |
* Tue Aug 31 2021 Chedi Toueiti <chedi.toueigi@gmail.com> - 0.11.1-1
|
|
 |
5cd3761 |
- Update to version 0.11.1 (#1998704)
|
|
 |
5cd3761 |
|
|
 |
c913c09 |
* Thu Aug 05 2021 Chedi Toueiti <chedi.toueiti@gmail.com> - 0.11.0-1
|
|
 |
5cd3761 |
- Update to version 0.11.0 (#1986615)
|
|
 |
c913c09 |
|
|
 |
e31a1a1 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.9-7
|
|
 |
e31a1a1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
 |
e31a1a1 |
|
|
 |
dc04587 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.9.9-6
|
|
 |
dc04587 |
- Rebuilt for Python 3.10
|
|
 |
dc04587 |
|
|
 |
54998ba |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.9-5
|
|
 |
54998ba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
54998ba |
|
|
 |
a8fc4c0 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.9-4
|
|
 |
a8fc4c0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
a8fc4c0 |
|
|
 |
c9f63cb |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.9.9-3
|
|
 |
c9f63cb |
- Rebuilt for Python 3.9
|
|
 |
c9f63cb |
|
|
 |
176a6da |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.9-2
|
|
 |
176a6da |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
176a6da |
|
|
 |
f575c0c |
* Fri Aug 30 2019 Chedi Toueiti <chedi.toueiti@gmail.com> - 0.9.9-1
|
|
 |
f575c0c |
- Update to 0.9.9
|
|
 |
f575c0c |
|
|
 |
232fde0 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.7-5
|
|
 |
232fde0 |
- Rebuilt for Python 3.8
|
|
 |
232fde0 |
|
|
 |
07d582d |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-4
|
|
 |
07d582d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
07d582d |
|
|
 |
b2a5f12 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.7-3
|
|
 |
b2a5f12 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
 |
b2a5f12 |
|
|
 |
b7f7312 |
* Thu Dec 27 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.7-2
|
|
 |
b7f7312 |
- Subpackage python2-anyconfig has been removed
|
|
 |
b7f7312 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
 |
b7f7312 |
|
|
 |
a90923a |
* Tue Jul 17 2018 Brett Lentz
|
|
 |
a90923a |
- update to 0.9.7
|
|
 |
a90923a |
|
|
 |
274df41 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-3
|
|
 |
274df41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
 |
274df41 |
|
|
 |
7c0c3be |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.4-2
|
|
 |
7c0c3be |
- Rebuilt for Python 3.7
|
|
 |
7c0c3be |
|
|
 |
9f4919b |
* Tue Feb 13 2018 Satoru SATOH <ssato@redhat.com> - 0.9.4-1
|
|
 |
9f4919b |
- change: drop python 3.3 support as isort required by pylint does so
|
|
 |
9f4919b |
- change: separate some backends (cbor, bson and msgpack) from this package
|
|
 |
9f4919b |
- fix: [ini] configparser.ConfigParser.readfp is deprecated method
|
|
 |
9f4919b |
- fix/refactor: cleanup, refactor and fix test cases
|
|
 |
9f4919b |
- change: [api] change the parameter name, s/.*safe/ac_schema_safe/g
|
|
 |
9f4919b |
- fix: [rpm] A lot of cleanups originally from rhbz#1538658
|
|
 |
9f4919b |
- enhancement: add support to catch all errors during validation (issue#79),
|
|
 |
9f4919b |
and its test case
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Mon Jun 19 2017 Satoru SATOH <ssato@redhat.com> - 0.9.3-1
|
|
 |
9f4919b |
- Just add an workaround for travi-ci test errors in python 3.{3,4}
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sat Jun 10 2017 Satoru SATOH <ssato@redhat.com> - 0.9.2-1
|
|
 |
9f4919b |
- enhancement: allow ac_merge to be a callable for user-defined merge
|
|
 |
9f4919b |
strategies (thanks to csboling!)
|
|
 |
9f4919b |
- enhancement: [yaml] Use ruamel.yaml instead of PyYAML if it's available
|
|
 |
9f4919b |
- fix: remove staff of wercker bought by oracle
|
|
 |
9f4919b |
- fix: replace '\n' w/ os.linesep
|
|
 |
9f4919b |
- fix: [xml] misc fixes and refactorings
|
|
 |
9f4919b |
- refactor: split backend parser to some base classes to simplify and make them
|
|
 |
9f4919b |
clean as much as possible
|
|
 |
9f4919b |
- doc: a lot of cleanups and enhancements
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sun Mar 12 2017 Satoru SATOH <ssato@redhat.com> - 0.9.1-1
|
|
 |
9f4919b |
- fix: correct behavior around ac_dict to ignore ac_dict if backend cannot
|
|
 |
9f4919b |
support to customize dict to be used in making results from loaded data.
|
|
 |
9f4919b |
- fix: check if result mapping objects are not None in some backend to avoid
|
|
 |
9f4919b |
critical errors and add such test cases
|
|
 |
9f4919b |
- fix: [yaml] make ac_ordered and ac_dict worked on load
|
|
 |
9f4919b |
- change: [cli] switch from optparse to argparse as it is deprecated
|
|
 |
9f4919b |
- doc: minor expression updates
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Thu Mar 9 2017 Satoru SATOH <ssato@redhat.com> - 0.9.0-1
|
|
 |
9f4919b |
- api: remove m9dicts dependency and utilize anyconfig.dicts.* instead
|
|
 |
9f4919b |
- api: export merge (anyconfig.dicts.merge) instead of to_container which was
|
|
 |
9f4919b |
deprecated and removed
|
|
 |
9f4919b |
- api: add 'ac_dict' keyword option for *load* APIs to be used in backends
|
|
 |
9f4919b |
- api: add experimental new API 'query', just an wrapper for .query.query
|
|
 |
9f4919b |
actually with JMESPath expressions
|
|
 |
9f4919b |
- api: do not convert resuls from load APIs with to_container any more
|
|
 |
9f4919b |
- fix: [xml] ensure {namespace}:{tag,attribute} converted to
|
|
 |
9f4919b |
namespace_prefix:{tag,attribute} on load
|
|
 |
9f4919b |
- fix/enhancement: [xml] Some more code cleanups, fixes and enhancements
|
|
 |
9f4919b |
- fix: [shellvars] remove the member _dict_options 'container' which conflicts
|
|
 |
9f4919b |
with container keyword argument and 'ac_dict' alternates it
|
|
 |
9f4919b |
- fix: [properties] remove the member _dict_options 'container' which conflicts
|
|
 |
9f4919b |
with container keyword argument and 'ac_dict' alternates it
|
|
 |
9f4919b |
- enhancement: make backend implementations not depends on container class and
|
|
 |
9f4919b |
- enhancement: move test cases in anyconfig/tests/ to tests/ and consolidate
|
|
 |
9f4919b |
backend tests; now most backend parser should be checked in same manner
|
|
 |
9f4919b |
- enhancement: [cli] add -Q/--query option to query with JMESPath expression
|
|
 |
9f4919b |
- refactor: enhance and consolidate common functions into backend base class
|
|
 |
9f4919b |
and implement backend parsers more declarative and with less code
|
|
 |
9f4919b |
- doc: add short description of ac_query keyword argument for *load* APIs
|
|
 |
9f4919b |
- doc: add tables to explain some keyword options for load/dump APIs
|
|
 |
9f4919b |
- doc: add JMESpath usage section
|
|
 |
9f4919b |
- doc: add some --query usage examples
|
|
 |
9f4919b |
- doc: add some missing module docs and misc fixes
|
|
 |
9f4919b |
- A lot of other enhancements, refactorings and bug fixes
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Mon Feb 20 2017 Satoru SATOH <ssato@redhat.com> - 0.8.2-1
|
|
 |
9f4919b |
- fix/enhancement: [xml] A lot of code cleanups, fixes and enhancements
|
|
 |
9f4919b |
- doc: fix indentations and other misc fixes
|
|
 |
9f4919b |
- A lot of other enhancements, refactorings and bug fixes
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sun Feb 12 2017 Satoru SATOH <ssato@redhat.com> - 0.8.1-1
|
|
 |
9f4919b |
- fix: doc indentations and other misc fixes
|
|
 |
9f4919b |
- fix: do not build doc in the RPM SPEC to avoid possible docutils bug
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sun Feb 12 2017 Satoru SATOH <ssato@redhat.com> - 0.8.0-1
|
|
 |
9f4919b |
- api: remove 'set_loglevel' API
|
|
 |
9f4919b |
- api: add 'open' API to open files with correct open mode, derived from the
|
|
 |
9f4919b |
issue reported by ajays20078, thanks!
|
|
 |
9f4919b |
- change: now all API calls may fail if it could not find the appropriate
|
|
 |
9f4919b |
backend and cannot process more
|
|
 |
9f4919b |
- change: add python 3.6 support
|
|
 |
9f4919b |
- change: drop python 3.2 support
|
|
 |
9f4919b |
- enhancement: add development status headers to all backend modules' code
|
|
 |
9f4919b |
- change: [ini] Keep order of items as much as possible if ac_ordered == True
|
|
 |
9f4919b |
- change: [properties] Fix the parser in mind key and value seprators
|
|
 |
9f4919b |
correctly, original issue was reported by meticulous, thanks!
|
|
 |
9f4919b |
- change: [shellvars] Added to load vars in b-shell (bash) scripts
|
|
 |
9f4919b |
- change: [xml] make use of cElementTree (C version of ElementTree) if possible
|
|
 |
9f4919b |
- change: [xml] treat some cases as special to avoid extra node added and
|
|
 |
9f4919b |
simplify the result dict as muc h as possible
|
|
 |
9f4919b |
- enhancement: update docs to add notes of the new 'open' API, section about
|
|
 |
9f4919b |
logging, notes of JSON schema generation and so on
|
|
 |
9f4919b |
- A lot of other enhancements, refactorings and bug fixes
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Tue Oct 11 2016 Satoru SATOH <ssato@redhat.com> - 0.7.0-1
|
|
 |
9f4919b |
- enhancement: introduced ac_schema_type to generate more strict schema
|
|
 |
9f4919b |
- enhancement: introduced shellvars backend originally suggested by ajays20078
|
|
 |
9f4919b |
- fix: comment processing and some related fixes in properties backend most of
|
|
 |
9f4919b |
all reported and actual fix implementations by ajays20078; thanks a lot
|
|
 |
9f4919b |
- fix: Add missing import error test cases
|
|
 |
9f4919b |
- some other enhancements, refactorings and bug fixes
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sat Apr 30 2016 Satoru SATOH <ssato@redhat.com> - 0.6.0-1
|
|
 |
9f4919b |
- fix: remove extra line breaks just after each section headers and items when
|
|
 |
9f4919b |
dumping INI format config files in ini backend, reported by ajays20078
|
|
 |
9f4919b |
- fix: make ac_safe option worked for dump API of yaml backend as expected,
|
|
 |
9f4919b |
reported by ajays20078
|
|
 |
9f4919b |
- refactor: log error messages in anyconfig.find_loader always if something
|
|
 |
9f4919b |
goes wrong; no parser given or given parser not found
|
|
 |
9f4919b |
- fix: make anyconfig.loads returning None if no parser or parser is not found
|
|
 |
9f4919b |
- change: try parsing optional arguments with anyconfig.parser.parse instead of
|
|
 |
9f4919b |
anyconfig.loads in the CLI frontend
|
|
 |
9f4919b |
- enhancement: improve package description in setup.py, README.rst and doc
|
|
 |
9f4919b |
- enhancement: add AUTHORS.txt to list authors and contributors
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sun Feb 21 2016 Satoru SATOH <ssato@redhat.com> - 0.5.0-1
|
|
 |
9f4919b |
- change: switch to m9dicts as mearge-able dict, successor of .mergeabledict
|
|
 |
9f4919b |
- enhancement: try to keep order of keys in all backends as wanted, although
|
|
 |
9f4919b |
some ones such as bson, json in python 2.6, msgpack in python 3 and yaml does
|
|
 |
9f4919b |
not work still
|
|
 |
9f4919b |
- enhancement: support namedtuple <-> dict[-like] object conversion
|
|
 |
9f4919b |
- fix: resolve some rpmlint warns such as macro used in the comment lines
|
|
 |
9f4919b |
- fix/enhancement: add missing corner and ordered test cases
|
|
 |
9f4919b |
- refactor: Refactoring all test backend test cases to simplify them
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sun Nov 22 2015 Satoru SATOH <ssato@redhat.com> - 0.4.0-1
|
|
 |
9f4919b |
- fix: correct escape/unescape process in Java properties backend, closed #31
|
|
 |
9f4919b |
- enhancement: Added naive impl. of JSON Pointer support (getter only)
|
|
 |
9f4919b |
- refactor: Refactoring around backend base classes, loaders and dumpers
|
|
 |
9f4919b |
- some other enhancements, refactorings and bug fixes
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Tue Oct 20 2015 Satoru SATOH <ssato@redhat.com> - 0.3.0-1
|
|
 |
9f4919b |
- Enhance anyconfig.multiload not to resolv appropriate config parsers
|
|
 |
9f4919b |
everytime loading config files
|
|
 |
9f4919b |
- Remove a few backend (common and specific) and common options such as merge
|
|
 |
9f4919b |
(ac_merge), marker (ac_marker), etc. from definitions of some public API
|
|
 |
9f4919b |
functions
|
|
 |
9f4919b |
- Add 'ac_' prefix to some keyword arguments to public APIs
|
|
 |
9f4919b |
- fix wrong definition of extensions in BSON backend
|
|
 |
9f4919b |
- fix a bug that ini (configparser) backend behaves different from original;
|
|
 |
9f4919b |
may close #28
|
|
 |
9f4919b |
- fix a bug to pass extra keyword parameters to yaml.safe_load
|
|
 |
9f4919b |
- fix a bug that anyconfig.backend.base.LParser.load_from_string does not
|
|
 |
9f4919b |
process and pass process keyword args `kwargs`
|
|
 |
9f4919b |
- add some more API usage code examples in the doc
|
|
 |
9f4919b |
- a lot of other enhancements, refactorings and bug fixes; some of them might
|
|
 |
9f4919b |
break public nad internal APIs so that bumped up the version
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Mon Sep 21 2015 Satoru SATOH <ssato@redhat.com> - 0.2.2-1
|
|
 |
9f4919b |
- Lower the level of some warn logging messages if backend support module is
|
|
 |
9f4919b |
not available
|
|
 |
9f4919b |
- Cleanup the doc of PyPI page
|
|
 |
9f4919b |
- Add logging settings in the doc
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Fri Sep 18 2015 Satoru SATOH <ssato@redhat.com> - 0.2.0-1
|
|
 |
9f4919b |
- new API anyconfig.to_container, factory method to create container objects
|
|
 |
9f4919b |
- enale processing of stream in anyconfig.*load and anyconfig.*dump
|
|
 |
9f4919b |
- add a native implementation of Java properties file backend
|
|
 |
9f4919b |
- misc doc updates about new backend, APIs, etc.
|
|
 |
9f4919b |
- massive refactoring of some complex modules such as api, cli, mergeabledict,
|
|
 |
9f4919b |
parser and some backends and also add some more corner test cases
|
|
 |
9f4919b |
- some more minor possible bug fixes found by pylint and flake8
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sat Aug 15 2015 Satoru SATOH <ssato@redhat.com> - 0.1.0-1
|
|
 |
9f4919b |
- add BSON support
|
|
 |
9f4919b |
- add TOML support
|
|
 |
9f4919b |
- fix XML load and dump functions
|
|
 |
9f4919b |
- add some more corner test cases to improve test coverage
|
|
 |
9f4919b |
- clean up and refactor some test cases
|
|
 |
9f4919b |
- clean up the RPM SPEC to sort out requirements
|
|
 |
9f4919b |
- make HTML doc built for fedora only
|
|
 |
9f4919b |
- some more minor possible bug fixes found by pylint and flake8
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Mon Aug 10 2015 Satoru SATOH <ssato@redhat.com> - 0.0.13-1
|
|
 |
9f4919b |
- fix up broken PyPI description page
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Mon Aug 10 2015 Satoru SATOH <ssato@redhat.com> - 0.0.12-1
|
|
 |
9f4919b |
- add some usage examples of the CLI frontend in the doc
|
|
 |
9f4919b |
- fix some trivial bugs in the CLI frontend
|
|
 |
9f4919b |
- make the contents of README and the doc consistent
|
|
 |
9f4919b |
- make the doc included in RPM packages
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Wed Aug 5 2015 Satoru SATOH <ssato@redhat.com> - 0.0.11-1
|
|
 |
9f4919b |
- add MessagePack load/dump support
|
|
 |
9f4919b |
- add new API 'gen_schema' to generate JSON schema for given configs
|
|
 |
9f4919b |
- fix some bugs around JSON schema validation while loading configs
|
|
 |
9f4919b |
- add HTML doc in a package
|
|
 |
9f4919b |
- simplify README.rst a lot and just left a reference to
|
|
 |
9f4919b |
http://python-anyconfig.readthedocs.org provides online HTML doc
|
|
 |
9f4919b |
- some more minor possible bug fixes found by pylint and flake8
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sun Jun 21 2015 Satoru SATOH <ssato@redhat.com> - 0.0.10-1
|
|
 |
9f4919b |
- add new API 'validate' to validate config files with json schema
|
|
 |
9f4919b |
- some more minor possible bug fixes found by pylint and flake8
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sun Jun 14 2015 Satoru SATOH <ssato@redhat.com> - 0.0.9-1
|
|
 |
9f4919b |
- merge configobj backend
|
|
 |
9f4919b |
- some more minor possible bug fixes found by pylint and flake8
|
|
 |
9f4919b |
- minor expression updates and fixes in README.rst
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Tue May 26 2015 Satoru SATOH <ssato@redhat.com> - 0.0.8-1
|
|
 |
9f4919b |
- remove os.curdir from a list of default template search paths, may close #18
|
|
 |
9f4919b |
- remove a global, SUPPORTED and import-error hack around it completely; now
|
|
 |
9f4919b |
implementation of backends are simplified a lot
|
|
 |
9f4919b |
- fix a lot of pylint and flake8 warnings
|
|
 |
9f4919b |
- some more minor bug fixes and enhancements
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Thu Apr 23 2015 Satoru SATOH <ssato@redhat.com> - 0.0.7-1
|
|
 |
9f4919b |
- module level logging fixes and improvements, may close issue#13 and issue#14
|
|
 |
9f4919b |
- export anyconfig.api.set_ to public which was not exported
|
|
 |
9f4919b |
- rename a few function parameters template and context passed to *load* to
|
|
 |
9f4919b |
avoid conflicts with parameters intended to pass to backends
|
|
 |
9f4919b |
- reorder some arguments passed to anyconfig.api.*load to keep consistency in
|
|
 |
9f4919b |
the order of arguments among them
|
|
 |
9f4919b |
- add --env option to the CLI frontend to pass configuration default values
|
|
 |
9f4919b |
from envrionment variables
|
|
 |
9f4919b |
- some more minor bug fixes and enhancements
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Fri Mar 13 2015 Satoru SATOH <ssato@redhat.com> - 0.0.6-1
|
|
 |
9f4919b |
- show ini file structure erros by Kamil Chmielewski, closes PR#8
|
|
 |
9f4919b |
- beautify README.rst by Florian Ludwig, closes PR#10
|
|
 |
9f4919b |
- add support to load template config files
|
|
 |
9f4919b |
- removes all custom logging magic and changes the behaviour to the standard
|
|
 |
9f4919b |
way of logging for Python libraries by Wouter Bolsterlee, closed PR#11
|
|
 |
9f4919b |
- re-enable Travis-CI tests for python 2.6
|
|
 |
9f4919b |
- some more minor bug fixes and enhancements
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sun Oct 26 2014 Satoru SATOH <ssato@redhat.com> - 0.0.5-1
|
|
 |
9f4919b |
- start to monitor code coverage w/ using coveralls.io
|
|
 |
9f4919b |
- start to do extra health check by landscape.io
|
|
 |
9f4919b |
- introduce 'ignore_missing' optional parameter to ignore missing config
|
|
 |
9f4919b |
file[s] in anyconfig.apy.*load() originally suggested by chmac in issue#4
|
|
 |
9f4919b |
- add -x/--ignore-missing option to allow ignoring missing files in anyconfig_cli
|
|
 |
9f4919b |
- make xml backend loader worked although it nees a lot more work
|
|
 |
9f4919b |
- fix a typo in README.rst by Jonathan Eunice, closes PR#1
|
|
 |
9f4919b |
- some more minor bug fixes and enhancements
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Tue Aug 19 2014 Satoru SATOH <ssato@redhat.com> - 0.0.4-1
|
|
 |
9f4919b |
- Change the versioning scheme and bump up the version to fix the issue #3
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Fri Aug 1 2014 Satoru SATOH <ssato@redhat.com> - 0.0.3.13-1
|
|
 |
9f4919b |
- Enable flake8 (pyFlake + pep8) testing
|
|
 |
9f4919b |
- Fix some minor errors like F401 (import-but-not-used eror) found by flake8
|
|
 |
9f4919b |
- Introduce an environment variable ANYCONFIG_DEBUG to control module's log
|
|
 |
9f4919b |
level from outside world
|
|
 |
9f4919b |
- Add anyconfig.getset module and --get option to anyconfig cli frontend to get
|
|
 |
9f4919b |
(extract) partial configuration[s] from loaded config files
|
|
 |
9f4919b |
- Add python 3.4 support and also make it tested in CI process
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sat May 3 2014 Satoru SATOH <ssato@redhat.com> - 0.0.3.12-1
|
|
 |
9f4919b |
- Support safe_{load,dump} in YAML backend by safe=True argument
|
|
 |
9f4919b |
- Add some more keyword arguments support in JSON backend
|
|
 |
9f4919b |
- Add man page of anyconfig_cli
|
|
 |
9f4919b |
- Misc fixes and enhancements in anyconfig_cli
|
|
 |
9f4919b |
- Some PEP8 and pylint errors and warnings
|
|
 |
9f4919b |
- Fix some rpmlint errors
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Fri Jan 10 2014 Satoru SATOH <ssato@redhat.com> - 0.0.3.11-1
|
|
 |
9f4919b |
- Just a maintenance update release
|
|
 |
9f4919b |
- Add pylint checks and refactor test driver script
|
|
 |
9f4919b |
- Fix some PEP8 and pylint errors and warnings
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Thu May 2 2013 Satoru SATOH <ssato@redhat.com> - 0.0.3.10-1
|
|
 |
9f4919b |
- [anyconfig_cli] Fix a typo in its filename; s/anyconfg/anyconfig/g,
|
|
 |
9f4919b |
it's alsot pointed by jonathaneunice-san. Thanks a lot!
|
|
 |
9f4919b |
- Swtich to use setuptools instead of standard distutils to allow writing
|
|
 |
9f4919b |
various pluggable backends
|
|
 |
9f4919b |
- Implement pluggable backend system w/ using setuptools
|
|
 |
9f4919b |
- Fix some build and runtime dependencies to PyYAML and setuptools
|
|
 |
9f4919b |
- Spin off java properties file backend into a separate project:
|
|
 |
9f4919b |
https://github.com/ssato/python-anyconfig-pyjavaproperties-backend
|
|
 |
9f4919b |
- Fix some type mismatches in methods of backend modules
|
|
 |
9f4919b |
- Make cli frontend generated w/ setuptools' help and remove tools/*
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sun Mar 31 2013 Satoru SATOH <ssato@redhat.com> - 0.0.3.9-1
|
|
 |
9f4919b |
- Some fixes and enhancements around logging code
|
|
 |
9f4919b |
- [anyconfig_cli] add -s/--silent and -v/--verbose option to control log level
|
|
 |
9f4919b |
and removed -d/--debug option
|
|
 |
9f4919b |
- Allow swtich from/to build time snapshot-versioning-mode dynamically
|
|
 |
9f4919b |
- Build also RPMs for python-3.x
|
|
 |
9f4919b |
- Allow backend specific options passed to load*/dump* methods of some backends
|
|
 |
9f4919b |
- Ensure dir to dump output created if that dir not exist
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Wed Mar 13 2013 Satoru SATOH <ssato@redhat.com> - 0.0.3.8-1
|
|
 |
9f4919b |
- Do not expose internal repr. of loaded data when dump them
|
|
 |
9f4919b |
- Fix for ini (configparser) backend
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Tue Mar 12 2013 Satoru SATOH <ssato@redhat.com> - 0.0.3.7-1
|
|
 |
9f4919b |
- change API from anyconfig.find_parser to anyconfig.find_loader
|
|
 |
9f4919b |
- [anyconfig_cli] rename cli frontend from anyconfig_cui to anyconfig_cli
|
|
 |
9f4919b |
- [anyconfig_cli] add new option '-M/--merge' to select strategy to merge
|
|
 |
9f4919b |
multiple configs
|
|
 |
9f4919b |
- add 'noreplace' merging strategy
|
|
 |
9f4919b |
- fix the bug that 'replace' merge strategy (value: 0) was evaluated as False
|
|
 |
9f4919b |
and cause an 'invalid strategy' error, and change default merging strategy
|
|
 |
9f4919b |
- other misc fixes for PEP8 errors and warns, etc.
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Fri Feb 1 2013 Satoru SATOH <ssato@redhat.com> - 0.0.3.6-1
|
|
 |
9f4919b |
- Added -A and --atype option to anyconfig_cui to override configs w/ -A option
|
|
 |
9f4919b |
- Fixed an error in anyconfig.api.loads when config type is None
|
|
 |
9f4919b |
- Updated usage example of anyconfig_cui in README
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Fri Jan 18 2013 Satoru SATOH <ssato@redhat.com> - 0.0.3.5-1
|
|
 |
9f4919b |
- Changed the default merge strategy of anyconfig.mergeabledict.MergeableDict
|
|
 |
9f4919b |
from merge_dicts_and_lists to merge_dicts
|
|
 |
9f4919b |
- Updated README and added some usage examples
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Thu Jan 17 2013 Satoru SATOH <ssato@redhat.com> - 0.0.3.4-1
|
|
 |
9f4919b |
- Fine tunes in some APIs to load multi config files
|
|
 |
9f4919b |
- Updated and enhanced CUI frontend, anyconfig_cui
|
|
 |
9f4919b |
- Fixed a bug in anyconfig.Bunch.update_w_merge that cause error when merging
|
|
 |
9f4919b |
lists with passing merge_lists=True argument
|
|
 |
9f4919b |
- Updated module's doctext and added some usage examples
|
|
 |
9f4919b |
- Removed strong dependency to anyconfig.Bunch.Bunch, and switched to
|
|
 |
9f4919b |
anyconfig.mergeabledict.MergeableDict which is stripped-down version of
|
|
 |
9f4919b |
anyconfig.Bunch.Bunch object
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Fri Jan 4 2013 Satoru SATOH <ssato@redhat.com> - 0.0.3.3-1
|
|
 |
9f4919b |
- Changed APIs (new: load, {single,mulit}_load) and some cleanups
|
|
 |
9f4919b |
- Complemented some meta package info to register this module to PyPI
|
|
 |
9f4919b |
- Changed the name of python module; stripped 'python-' from its name
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Fri Jan 4 2013 Satoru SATOH <ssato@redhat.com> - 0.0.3.2-1
|
|
 |
9f4919b |
- Fixed a few that yaml.* and etree.* not defined when yaml and etree module is
|
|
 |
9f4919b |
not found, causing build time error
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Fri Jan 4 2013 Satoru SATOH <ssato@redhat.com> - 0.0.3.1-1
|
|
 |
9f4919b |
- Added metaconfig module to control config-loading behavior
|
|
 |
9f4919b |
- Added some new APIs including anyconfig.{mload,loads}, etc.
|
|
 |
9f4919b |
- Started CI tests w/ Travis
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Sat Aug 4 2012 Satoru SATOH <ssato@redhat.com> - 0.0.3-1
|
|
 |
9f4919b |
- Fixed a grave syntax error in anyconfig.backend.properties_
|
|
 |
9f4919b |
- Some docstring cleanups
|
|
 |
9f4919b |
- Some refactoring
|
|
 |
9f4919b |
- Implemented dicts merge/replacements came from config files
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Mon Jul 2 2012 Satoru SATOH <ssato@redhat.com> - 0.0.2-1
|
|
 |
9f4919b |
- Fixed packaging bug that some modules were missing from the list
|
|
 |
9f4919b |
|
|
 |
9f4919b |
* Fri Jun 29 2012 Satoru SATOH <ssato@redhat.com> - 0.0.1-1
|
|
 |
9f4919b |
- Initial packaging
|