15
0
Files
python-crashtest/python-crashtest.spec
Markéta Machová d797ac1819 Accepting request 1006427 from home:yarunachalam:branches:devel:languages:python
- Update to 0.4.0:
  * Fixed a decoding error by forcing 'utf-8' encoding when opening a file. (#5)
  Misc
  * Added typing
  * Fixed multiple issues raised by flake8 and plugins
  * Updated dependencies (both package and dev)
  * Bumped Python versions to 3.7+
- Update to 0.3.1:
  * Fixed an error when trying to retrieve the line of a frame with no context (#2).

OBS-URL: https://build.opensuse.org/request/show/1006427
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-crashtest?expand=0&rev=7
2022-09-27 14:32:01 +00:00

60 lines
1.7 KiB
RPMSpec

#
# spec file for package python-crashtest
#
# Copyright (c) 2022 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-crashtest
Version: 0.4.0
Release: 0
Summary: Manage Python errors with ease
License: MIT
Group: Development/Languages/Python
URL: https://pypi.org/project/crashtest
Source: https://github.com/sdispater/crashtest/archive/%{version}.tar.gz#/crashtest-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module pytest}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
A Python library that makes exceptions handling and inspection easier
%prep
%setup -q -n crashtest-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/crashtest
%{python_sitelib}/crashtest-%{version}*-info
%changelog