14
0

Accepting request 1037402 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1037402
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-canonicaljson?expand=0&rev=13
This commit is contained in:
2022-11-23 08:48:14 +00:00
committed by Git OBS Bridge
4 changed files with 17 additions and 21 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Nov 22 13:31:34 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>
- Update to 1.6.4
- Remove unused setuptools_scm build requirement.
- Properly package the canonicaljson module (#52)
- switch to pyproject build
-------------------------------------------------------------------
Wed Jun 8 11:30:41 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>
@@ -6,7 +14,7 @@ Wed Jun 8 11:30:41 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>
-------------------------------------------------------------------
Wed Jun 8 10:00:55 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>
- Update to 1.6.2
- Update to 1.6.2
- Add type annotations (#49).
- 1.6.2 is a rerelease of 1.6.1 with the version numbers fixed in
the tarball.
@@ -14,7 +22,7 @@ Wed Jun 8 10:00:55 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>
-------------------------------------------------------------------
Tue Jun 7 17:33:11 UTC 2022 - Marcus Rueckert <mrueckert@suse.de>
- Update to 1.6.0
- Update to 1.6.0
- Make frozendict import conditional. by @BURG3R5 in #46
-------------------------------------------------------------------

View File

@@ -25,26 +25,23 @@
%bcond_with test
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with pyproject
%define github_user matrix-org
%define short_name canonicaljson
Name: python-%{short_name}%{psuffix}
Version: 1.6.2
Version: 1.6.4
Release: 0
Summary: Canonical JSON for Python
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/matrix-org/python-canonicaljson
Source: https://github.com/matrix-org/python-canonicaljson/archive/v%{version}.tar.gz
%if %{with pyproject}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
%endif
BuildRequires: %{python_module frozendict >= 2.1.3}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module simplejson >= 3.14.0}
BuildRequires: %{python_module typing_extensions}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-frozendict >= 1.0
@@ -73,19 +70,11 @@ RFC 7159.
%setup -q -n python-canonicaljson-%{version}
%build
%if %{with pyproject}
%pyproject_wheel
%else
%python_build
%endif
%install
%if !%{with test}
%if %{with pyproject}
%pyproject_install
%else
%python_install
%endif
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
@@ -102,8 +91,7 @@ RFC 7159.
%files %{python_files}
%license LICENSE
%doc README.rst
%pycache_only %{python_sitelib}/__pycache__/%{short_name}*.pyc
%{python_sitelib}/%{short_name}.py
%{python_sitelib}/%{short_name}/
%{python_sitelib}/%{short_name}-%{version}*-info
%endif

View File

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

3
v1.6.4.tar.gz Normal file
View File

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