commit 0952f3acd1fc5534a94454f8f29aca07d6574e30d5c2f0e44e187e4e834577a3 Author: Tomáš Chvátal Date: Wed Apr 3 08:03:40 2019 +0000 Accepting request 690670 from home:jubalh OBS-URL: https://build.opensuse.org/request/show/690670 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-structlog?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/19.1.0.tar.gz b/19.1.0.tar.gz new file mode 100644 index 0000000..9866fbb --- /dev/null +++ b/19.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9116b6be372290dc9538a6af434d3e954dc901bf39b5423a4fdcb5f5c86c8f93 +size 314266 diff --git a/python-structlog.changes b/python-structlog.changes new file mode 100644 index 0000000..f30dfca --- /dev/null +++ b/python-structlog.changes @@ -0,0 +1,33 @@ +------------------------------------------------------------------- +Tue Apr 2 11:12:35 UTC 2019 - mvetter@suse.com + +- Update to 19.1.0: + * structlog.ReturnLogger and structlog.PrintLogger now have + a fatal() log method. #181 + * Under certain (rather unclear) circumstances, the frame + extraction could throw an SystemError: error return without + exception set. A workaround has been added. #174 + * structlog now tolerates passing through dicts to stdlib + logging. #187 #188 #189 +- Use pytest macro + +------------------------------------------------------------------- +Thu Nov 29 08:06:43 UTC 2018 - ecsos@opensuse.org + +- Fix source address and add missing source. + +------------------------------------------------------------------- +Thu Nov 22 13:28:52 UTC 2018 - Karol Babioch + +- Version update to 18.2.0 + * Added structlog.stdlib.add_log_level_number() processor that adds the level + number to the event dictionary. Can be used to simplify log filtering. + * structlog.processors.JSONRenderer now allows for overwriting the default + argument of its serializer. + * Added try_unbind() that works like unbind() but doesn't raise a KeyError if + one of the keys is missing. #171 + +------------------------------------------------------------------- +Tue Jul 31 12:37:20 UTC 2018 - kbabioch@suse.com + +- Initial packaging of version 18.1.0 diff --git a/python-structlog.spec b/python-structlog.spec new file mode 100644 index 0000000..53cc8c4 --- /dev/null +++ b/python-structlog.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-structlog +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-structlog +Version: 19.1.0 +Release: 0 +Summary: Structured Logging for Python +License: Apache-2.0 OR MIT +Group: Development/Languages/Python +URL: http://www.structlog.org/en/stable/ +Source: https://github.com/hynek/structlog/archive/%{version}.tar.gz +BuildRequires: %{python_module Twisted} +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module freezegun >= 0.2.8} +BuildRequires: %{python_module pretend} +BuildRequires: %{python_module pytest >= 3.3.0} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module simplejson} +BuildRequires: %{python_module six} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-six +BuildArch: noarch +%if %{python_version_nodots} >= 36 +BuildRequires: python3-rapidjson +%endif +%python_subpackages + +%description +structlog makes logging in Python less painful and more powerful by adding +structure to your log entries. + +It’s up to you whether you want structlog to take care about the output of your +log entries or whether you prefer to forward them to an existing logging system +like the standard library’s logging module. + +%prep +%setup -q -n structlog-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc CHANGE* README* +%license LICENSE* +%{python_sitelib}/* + +%changelog