15
0
forked from pool/python-json5

- update to 0.9.24:

* drop python2
  * switch to pyproject.toml
  * add typing
  * format with ruff

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-json5?expand=0&rev=23
This commit is contained in:
2024-03-25 20:19:39 +00:00
committed by Git OBS Bridge
parent e18755ef56
commit f60ad495cc
4 changed files with 21 additions and 11 deletions

Binary file not shown.

3
pyjson5-0.9.24.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c84b956755957dadd9fe1dcbf27df69595e5e1482a3185e29293902803a82d63
size 363449

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon Mar 25 20:18:38 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.9.24:
* drop python2
* switch to pyproject.toml
* add typing
* format with ruff
-------------------------------------------------------------------
Mon Nov 27 19:03:15 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-json5
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,24 +25,24 @@
%{?sle15_python_module_pythons}
Name: python-json5
Version: 0.9.14
Version: 0.9.24
Release: 0
Summary: A Python implementation of the JSON5 data format
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/dpranke/pyjson5
Source: https://github.com/dpranke/pyjson5/archive/v%{version}.tar.gz#/pyjson5-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929
Requires: python-setuptools
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
%endif
BuildArch: noarch
%python_subpackages
@@ -62,10 +62,10 @@ slightly more usable as a configuration language:
%setup -q -n pyjson5-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pyjson5
%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -87,6 +87,7 @@ slightly more usable as a configuration language:
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/pyjson5
%{python_sitelib}/*
%{python_sitelib}/json5
%{python_sitelib}/json5-%{version}.dist-info
%changelog