14
0

Accepting request 1284852 from devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1284852
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rfc3339-validator?expand=0&rev=4
This commit is contained in:
2025-06-12 13:47:38 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 11 13:18:42 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 5 09:53:54 UTC 2023 - pgajdos@suse.com Mon Jun 5 09:53:54 UTC 2023 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-rfc3339-validator # spec file for package python-rfc3339-validator
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -26,7 +26,9 @@ URL: https://github.com/naimetti/rfc3339-validator
Source: https://files.pythonhosted.org/packages/source/r/rfc3339_validator/rfc3339_validator-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/r/rfc3339_validator/rfc3339_validator-%{version}.tar.gz
# https://github.com/naimetti/rfc3339-validator/issues/11 # https://github.com/naimetti/rfc3339-validator/issues/11
Patch0: python-rfc3339-validator-no-six.patch Patch0: python-rfc3339-validator-no-six.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
@@ -44,10 +46,10 @@ A pure python RFC3339 validator
%autosetup -p1 -n rfc3339_validator-%{version} %autosetup -p1 -n rfc3339_validator-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -55,7 +57,7 @@ A pure python RFC3339 validator
%files %{python_files} %files %{python_files}
%{python_sitelib}/rfc3339_validator.py %{python_sitelib}/rfc3339_validator.py
%pycache_only %{python_sitelib}/__pycache__/ %pycache_only %{python_sitelib}/__pycache__/rfc3339_validator*
%{python_sitelib}/rfc3339_validator-*.egg-info/ %{python_sitelib}/rfc3339_validator-%{version}*-info/
%changelog %changelog