15
0

Accepting request 1236762 from devel:languages:python

- Correct BuildRequires.
- Fix URL to actually be an URL.
- Add patch support-poetry-core-2.patch:
  * Support poetry-core 2.0 changes.

OBS-URL: https://build.opensuse.org/request/show/1236762
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dataclasses-json?expand=0&rev=4
This commit is contained in:
2025-01-12 10:20:33 +00:00
committed by Git OBS Bridge
3 changed files with 59 additions and 5 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Jan 10 04:22:08 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Correct BuildRequires.
- Fix URL to actually be an URL.
- Add patch support-poetry-core-2.patch:
* Support poetry-core 2.0 changes.
-------------------------------------------------------------------
Tue Aug 27 16:56:04 UTC 2024 - Guang Yee <gyee@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-dataclasses-json
#
# Copyright (c) 2024 SUSE LLC
# 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
@@ -22,17 +22,17 @@ Version: 0.6.7
Release: 0
Summary: API for encoding and decoding dataclasses to and from JSON
License: MIT
URL: python-dataclasses-json
URL: https://github.com/lidatong/dataclasses-json
Source: https://github.com/lidatong/dataclasses-json/archive/refs/tags/v%{version}.tar.gz#/dataclasses-json-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#lidatong/dataclasses-json#553
Patch0: support-poetry-core-2.patch
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module marshmallow}
BuildRequires: %{python_module mypy}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module poetry-dynamic-versioning}
BuildRequires: %{python_module poetry}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typing-inspect}
BuildRequires: fdupes
Requires: python-marshmallow
@@ -61,7 +61,9 @@ sed -i 's/version = "0.0.0"/version = "%{version}"/' pyproject.toml
%pytest
%files %python_files
%license LICENSE
%doc README.md
%{python_sitelib}/dataclasses_json
%{python_sitelib}/dataclasses_json-%{version}*-info
%{python_sitelib}/dataclasses_json-%{version}.dist-info
%changelog

View File

@@ -0,0 +1,44 @@
From 635b0cfe0afc8330aecadf2083af9ce1fdf92441 Mon Sep 17 00:00:00 2001
From: Steve Kowalik <steven@wedontsleep.org>
Date: Fri, 10 Jan 2025 15:18:55 +1100
Subject: [PATCH] Support poetry-core 2.0 changes
poetry-core 2.0 has released, and it's a lot more strict about the
configuration groups and their contents in pyproject.toml.
---
pyproject.toml | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index 20a147fb..b24d8d69 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,9 +1,16 @@
-[tool.poetry]
+[project]
name = "dataclasses-json"
version = "0.0.0"
description = "Easily serialize dataclasses to and from JSON."
-authors = ["Charles Li <charles.dt.li@gmail.com>"]
-maintainers = ['Charles Li <charles.dt.li@gmail.com>', 'Georgiy Zubrienko <gzu@ecco.com>', 'Vitaliy Savitskiy <visa@ecco.com>', 'Matthias Als <mata@ecco.com>']
+authors = [
+ { "name" = "Charles Li", "email" = "charles.dt.li@gmail.com" },
+]
+maintainers = [
+ { "name" = "Charles Li", "email" = "charles.dt.li@gmail.com" },
+ { "name" = "Georgiy Zubrienko", "email" = "gzu@ecco.com" },
+ { "name" = "Vitaliy Savitskiy", "email" = "visa@ecco.com" },
+ { "name" = "Matthias Als", "email" = "mata@ecco.com>" },
+]
license = 'MIT'
readme = "README.md"
repository = 'https://github.com/lidatong/dataclasses-json'
@@ -33,7 +40,7 @@ build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry-dynamic-versioning]
enable = true
-[tool.poetry.urls]
+[project.urls]
changelog = "https://github.com/lidatong/dataclasses-json/releases"
documentation = "https://lidatong.github.io/dataclasses-json/"
issues = "https://github.com/lidatong/dataclasses-json/issues"