15
0
Files
python-bytecode/python-bytecode.spec
Markéta Machová f9dc305b47 Accepting request 1242835 from home:glaubitz:branches:devel:languages:python
- Update to 0.16.1
  * Minor fixes following linter recommendations by @MatthieuDartiailh in #154
  * build(deps): bump codecov/codecov-action from 4 to 5 by @dependabot in #153
  * Fix flag inference by @MatthieuDartiailh in #157

OBS-URL: https://build.opensuse.org/request/show/1242835
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=23
2025-02-03 14:54:05 +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.16.1
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