Skip to content

Commit

Permalink
Merge pull request #22 from SUSE-Enceladus/py311
Browse files Browse the repository at this point in the history
Switch build
  • Loading branch information
rjschwei authored May 21, 2024
2 parents bb548ed + 3302012 commit 6f4cba8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions csp-billing-adapter-local.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1
%define pythons python3

%{?sle15_python_module_pythons}

Name: csp-billing-adapter-local
Version: 0.5.1
Release: 0
Expand All @@ -28,9 +28,11 @@ URL: https://github.com/SUSE-Enceladus/%{name}
Source: https://files.pythonhosted.org/packages/source/c/%{name}/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pluggy}
BuildRequires: %{python_module csp-billing-adapter >= 0.5.1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
%if %{with test}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module coverage}
Expand All @@ -50,10 +52,10 @@ storage of data using local resources.
%autosetup -n %{name}-%{version}

%build
%python_build
%pyproject_wheel

%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
Expand Down

0 comments on commit 6f4cba8

Please sign in to comment.