17
0

Accepting request 1161731 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1161731
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fixedint?expand=0&rev=3
This commit is contained in:
2024-03-26 18:28:08 +00:00
committed by Git OBS Bridge
2 changed files with 17 additions and 4 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Mar 26 11:51:00 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Switch build system from setuptools to pyproject.toml
+ Add python-pip and python-wheel to BuildRequires
+ Replace %python_build with %pyproject_wheel
+ Replace %python_install with %pyproject_install
- Fix capitalization in Summary
- Limit Python files matched in %files section
-------------------------------------------------------------------
Thu Mar 7 14:41:12 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -20,11 +20,13 @@
Name: python-fixedint
Version: 0.2.0
Release: 0
Summary: simple fixed-width integers
Summary: Simple fixed-width integers
License: Python-2.0
URL: https://github.com/nneonneo/fixedint
Source: https://files.pythonhosted.org/packages/source/f/fixedint/fixedint-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -45,10 +47,10 @@ of machine registers.
%setup -q -n fixedint-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -57,6 +59,7 @@ of machine registers.
%files %{python_files}
%doc AUTHORS CHANGES README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/fixedint
%{python_sitelib}/fixedint-*.dist-info
%changelog