15
0

- update to 8.19.0:

* Python 3.12 support
  * raise minimum python version to 3.7 because of setuptools
    compatibility
  * try to fix pytest command
  * do not limit max. parallel CI jobs
  * use pytest
  * remove verbose output
  * Fix Text encoding and Errors to compile
  * Only build C extension for CPython 3.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitstruct?expand=0&rev=12
This commit is contained in:
2023-11-29 12:22:57 +00:00
committed by Git OBS Bridge
parent 62401d512e
commit bae3c77837
4 changed files with 23 additions and 12 deletions

View File

@@ -17,18 +17,18 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-bitstruct
Version: 8.17.0
Version: 8.19.0
Release: 0
Summary: Interpret strings as packed binary data
License: MIT
URL: https://github.com/eerimoq/bitstruct
Source: https://files.pythonhosted.org/packages/source/b/bitstruct/bitstruct-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%python_subpackages
@@ -42,14 +42,13 @@ module, but working on bits instead of primitive data types (char, int, ...).
%build
export CFLAGS="%{optflags}"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
mv bitstruct bitstruct.hide
%pyunittest_arch discover -v tests
%files %{python_files}