commit 8b8574d7b1efd9c013af540ec6bad9d83cb7a484b9ebed7dcd60e73a15b80d50 Author: Steve Kowalik Date: Wed Apr 30 02:48:17 2025 +0000 - Correct requirements to reflect reality. - Switch to pyproject and pytest macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonlines?expand=0&rev=10 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/4.0.0.tar.gz b/4.0.0.tar.gz new file mode 100644 index 0000000..4b7e16e --- /dev/null +++ b/4.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51df713e1f9b54f520f2a13fa0a9a386b8551686f964008d497c160082e1e295 +size 13172 diff --git a/python-jsonlines.changes b/python-jsonlines.changes new file mode 100644 index 0000000..508d358 --- /dev/null +++ b/python-jsonlines.changes @@ -0,0 +1,41 @@ +------------------------------------------------------------------- +Wed Apr 30 02:47:56 UTC 2025 - Steve Kowalik + +- Correct requirements to reflect reality. +- Switch to pyproject and pytest macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Fri Dec 8 09:47:50 UTC 2023 - Dirk Müller + +- update to 4.0.0: + * use ‘orjson’ or ‘ujson’ for reading if available + * drop support for end-of-life Python versions; this package is now + Python 3.8+ only. + +------------------------------------------------------------------- +Sat Jul 1 09:05:29 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Thu Sep 29 14:16:46 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 3.0.0 + * add type annotations; adopt mypy in strict mode (#58, #62) + * ignore UTF-8 BOM sequences in various scenarios (#69) + * support dumps() callables returning bytes again (#64) + * add basic support for rfc7464 text sequences (#61) + * drop support for numbers.Number in type= arguments (#63) + +------------------------------------------------------------------- +Mon Nov 8 10:08:24 UTC 2021 - Dirk Müller + +- update to 2.0.0: + * drop support for python versions older than 3.6 + +------------------------------------------------------------------- +Wed Aug 29 11:40:44 UTC 2018 - mcalabkova@suse.com + +- Added python-jsonlines needed by python-cloudflare, which is +needed by python-certbot-dns-cloudflare diff --git a/python-jsonlines.spec b/python-jsonlines.spec new file mode 100644 index 0000000..53fea1c --- /dev/null +++ b/python-jsonlines.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-jsonlines +# +# Copyright (c) 2025 SUSE LLC +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-jsonlines +Version: 4.0.0 +Release: 0 +Summary: Library with helpers for the jsonlines file format +License: BSD-3-Clause +URL: https://github.com/wbolster/jsonlines +Source: https://github.com/wbolster/jsonlines/archive/%{version}.tar.gz +BuildRequires: %{python_module attrs >= 19.2.0} +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module ujson} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +Requires: python-attrs >= 19.2.0 +Recommends: python-ujson +%python_subpackages + +%description +Python library to simplify working with jsonlines_ and ndjson_ data. + +%prep +%setup -q -n jsonlines-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE.rst +%{python_sitelib}/jsonlines +%{python_sitelib}/jsonlines-%{version}.dist-info + +%changelog