14
0

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-visitor?expand=0&rev=5
This commit is contained in:
2025-06-13 12:43:45 +00:00
committed by Git OBS Bridge
parent b327d095df
commit 0737d91c6f
2 changed files with 14 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 13 12:43:19 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Thu Oct 18 08:37:33 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-visitor
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -16,21 +16,21 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-visitor
Version: 0.1.3
Release: 0
Summary: A tiny pythonic visitor implementation
License: MIT
Group: Development/Languages/Python
Url: http://github.com/mbr/visitor
URL: https://github.com/mbr/visitor
Source: https://github.com/mbr/visitor/archive/%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
@@ -41,17 +41,18 @@ A tiny library to facilitate visitor implementation in Python
%setup -q -n visitor-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
%pytest
%files %{python_files}
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/visitor
%{python_sitelib}/visitor-%{version}*-info
%changelog