forked from pool/python-srcinfo
Accepting request 1285932 from devel:languages:python
- Switch to autosetup and pyproject macros. - List files and directories explicitly in %files. - Add patch support-new-poetry.patch: * Do not use deprecated sections in pyproject.toml. OBS-URL: https://build.opensuse.org/request/show/1285932 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-srcinfo?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 16 02:53:21 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to autosetup and pyproject macros.
|
||||||
|
- List files and directories explicitly in %files.
|
||||||
|
- Add patch support-new-poetry.patch:
|
||||||
|
* Do not use deprecated sections in pyproject.toml.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 13 10:13:37 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
Fri Jun 13 10:13:37 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
@@ -22,10 +22,12 @@ Version: 0.1.2
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python library to parse Arch SRCINFO files
|
Summary: Python library to parse Arch SRCINFO files
|
||||||
License: ISC
|
License: ISC
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/kyrias/python-srcinfo
|
URL: https://github.com/kyrias/python-srcinfo
|
||||||
Source: https://files.pythonhosted.org/packages/source/s/srcinfo/srcinfo-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/s/srcinfo/srcinfo-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
# PATCH-FIX-OPENSUSE Do not use deprecated sections in pyproject.toml
|
||||||
|
Patch0: support-new-poetry.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module poetry-core}
|
||||||
BuildRequires: alts
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -42,14 +44,14 @@ BuildRequires: %{python_module pytest}
|
|||||||
Python library to parse Arch .SRCINFO files.
|
Python library to parse Arch .SRCINFO files.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n srcinfo-%{version}
|
%autosetup -p1 -n srcinfo-%{version}
|
||||||
mv test/__init__.py test_srcinfo.py
|
mv test/__init__.py test_srcinfo.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/parse_srcinfo
|
%python_clone -a %{buildroot}%{_bindir}/parse_srcinfo
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
@@ -63,6 +65,7 @@ mv test/__init__.py test_srcinfo.py
|
|||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/parse_srcinfo
|
%python_alternative %{_bindir}/parse_srcinfo
|
||||||
%{python_sitelib}/srcinfo*/
|
%{python_sitelib}/srcinfo
|
||||||
|
%{python_sitelib}/srcinfo-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
26
support-new-poetry.patch
Normal file
26
support-new-poetry.patch
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
Index: srcinfo-0.1.2/pyproject.toml
|
||||||
|
===================================================================
|
||||||
|
--- srcinfo-0.1.2.orig/pyproject.toml
|
||||||
|
+++ srcinfo-0.1.2/pyproject.toml
|
||||||
|
@@ -1,8 +1,8 @@
|
||||||
|
-[tool.poetry]
|
||||||
|
+[project]
|
||||||
|
name = "srcinfo"
|
||||||
|
version = "0.1.2"
|
||||||
|
description = "A small library to parse .SRCINFO files"
|
||||||
|
-authors = ["Johannes Löthberg <johannes@kyriasis.com>"]
|
||||||
|
+authors = [{ name = "Johannes Löthberg", email = "johannes@kyriasis.com" }]
|
||||||
|
license = "ISC"
|
||||||
|
readme = "README.rst"
|
||||||
|
|
||||||
|
@@ -14,8 +14,8 @@ classifiers = [
|
||||||
|
"License :: OSI Approved :: ISC License (ISCL)",
|
||||||
|
]
|
||||||
|
|
||||||
|
-[tool.poetry.scripts]
|
||||||
|
-parse_srcinfo = { callable = "srcinfo.main:main" }
|
||||||
|
+[project.scripts]
|
||||||
|
+parse_srcinfo = "srcinfo.main:main"
|
||||||
|
|
||||||
|
[tool.poetry.dependencies]
|
||||||
|
python = "^3.7"
|
Reference in New Issue
Block a user