17
0
Files
python-bytecode/python-bytecode.spec
Dirk Mueller 58d50de9a2 - Update to 0.17.0
* Add support for Python 3.14 PR #166
    Support for Python 3.14, comes with a number of changes reflecting changes in
    CPython bytecode itself:
    - introduced an enum for BINARY_OP argument which now supports subscribe.
      When disassembling the enum is always used, when creating bytecode from
      scratch integer values are coerced into the right enum member.
    - support BUILD_TEMPLATE, BUILD_INTERPOLATION, LOAD_SMALL_INT, LOAD_FAST_BORROW
      and LOAD_FAST_BORROW_LOAD_FAST_BORROW
    - LOAD_COMMON_CONSTANT, LOAD_SPECIAL whose argument is described using dedicated
      enums CommonConstant, SpecialMethod
    - CONVERT_VALUE (FORMAT_VALUE in Python < 3.13) now use the FormatValue enum.
      When disassembling the enum is always used, when creating bytecode from
      scratch integer values are coerced into the right enum member.
  * properly set the next_block attribute of the new block created by
    ControlFlowGraph.split_block. PR #170

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=27
2025-09-10 09:11:29 +00:00

63 lines
1.8 KiB
RPMSpec

#
# spec file for package python-bytecode
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-bytecode
Version: 0.17.0
Release: 0
Summary: Python module to generate and modify bytecode
License: MIT
URL: https://github.com/vstinner/bytecode
Source: https://files.pythonhosted.org/packages/source/b/bytecode/bytecode-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
Python module to generate and modify bytecode
%prep
%setup -q -n bytecode-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license COPYING
%{python_sitelib}/bytecode
%{python_sitelib}/bytecode-%{version}.dist-info
%changelog