14
0
forked from pool/python-pydyf

Accepting request 997376 from home:DocB:branches:devel:languages:python

- Update to version 0.2.0
  * Requires Python 3.7+
  * change buildsystem to .toml

test options
--flake8 --numprocesses=auto
commented out

OBS-URL: https://build.opensuse.org/request/show/997376
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydyf?expand=0&rev=4
This commit is contained in:
2022-08-16 15:04:49 +00:00
committed by Git OBS Bridge
parent 552c531468
commit 6d009727d8
4 changed files with 20 additions and 10 deletions

View File

@@ -1,8 +1,8 @@
#
# spec file for package python-pydyf
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2021 Dr. Axel Braun <DocB@openSUSE.org>
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2022 Dr. Axel Braun <DocB@openSUSE.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -21,20 +21,23 @@
%define skip_python2 1
Name: python-pydyf
Version: 0.1.2
Version: 0.2.0
Release: 0
Summary: A low-level PDF generator
License: BSD-3-Clause
URL: https://www.courtbouillon.org/pydyf
Source: https://files.pythonhosted.org/packages/source/p/pydyf/pydyf-%{version}.tar.gz
BuildRequires: %{python_module flit}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
## Testing
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module pytest-isort}
BuildRequires: %{python_module pytest}
BuildRequires: gs
%python_subpackages
@@ -46,14 +49,14 @@ A low-level PDF generator written in Python and based on PDF specification 1.7.
%setup -q -n pydyf-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
sed -i 's:--flake8 --cov --no-cov-on-fail::' pyproject.toml
sed -i 's:--flake8 --numprocesses=auto::' pyproject.toml
%pytest tests/test_pydyf.py
%files %{python_files}