From e359bd701d15579485711676be5a866548d32a5d8d3abb971ceb04f093526b06 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 10 Jan 2025 04:36:05 +0000 Subject: [PATCH] - Add patch support-poetry-core-2.patch: * Support poetry-core 2.0 changes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-easydev?expand=0&rev=18 --- python-easydev.changes | 6 ++++++ python-easydev.spec | 6 ++++-- support-poetry-core-2.patch | 31 +++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 support-poetry-core-2.patch diff --git a/python-easydev.changes b/python-easydev.changes index f9e2e99..6af0297 100644 --- a/python-easydev.changes +++ b/python-easydev.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jan 10 04:35:36 UTC 2025 - Steve Kowalik + +- Add patch support-poetry-core-2.patch: + * Support poetry-core 2.0 changes. + ------------------------------------------------------------------- Mon Apr 29 06:11:17 UTC 2024 - pgajdos@suse.com diff --git a/python-easydev.spec b/python-easydev.spec index d03a98f..c7f2299 100644 --- a/python-easydev.spec +++ b/python-easydev.spec @@ -1,7 +1,7 @@ # # spec file for package python-easydev # -# 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 @@ -23,6 +23,8 @@ Summary: Common utilities to ease the development of Python packages License: BSD-3-Clause URL: https://github.com/cokelaer/easydev Source: https://github.com/cokelaer/easydev/archive/refs/tags/v%{version}.tar.gz#/easydev-%{version}.tar.gz +# PATCH-FIX-UPSTREAM gh#cokelaer/easydev#37 +Patch0: support-poetry-core-2.patch BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-colorama @@ -72,6 +74,6 @@ also as an incubator for other packages and is stable. %doc README.rst %license COPYING %{python_sitelib}/easydev -%{python_sitelib}/easydev*-info +%{python_sitelib}/easydev-%{version}.dist-info %changelog diff --git a/support-poetry-core-2.patch b/support-poetry-core-2.patch new file mode 100644 index 0000000..e1f8eea --- /dev/null +++ b/support-poetry-core-2.patch @@ -0,0 +1,31 @@ +From 57840ffd66a23e9546c3cf97f870094d0b6dd5aa Mon Sep 17 00:00:00 2001 +From: Steve Kowalik +Date: Fri, 10 Jan 2025 15:33:10 +1100 +Subject: [PATCH] Support poetry-core 2.0 + +poetry-core 2.0 has been released, and it is a lot more strict with the +configuration in pyproject.toml. +--- + pyproject.toml | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 52c55a3..2ad7f62 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -2,11 +2,13 @@ + requires = ["poetry-core"] + build-backend = "poetry.core.masonry.api" + +-[tool.poetry] ++[project] + name = "easydev" + version = "0.13.2" + description = "Commn utilities to ease development of Python packages" +-authors = ["Thomas Cokelaer "] ++authors = [ ++ { "name" = "Thomas Cokelaer", "email" = "thomas.cokelaer@pasteur.fr" }, ++] + license = "BSD-3-Clause" + readme = "README.rst" + keywords = ["config", "decorators", "development"]