14
0
forked from pool/python-pydyf
Files
python-pydyf/python-pydyf.spec
Axel Braun 6d009727d8 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
2022-08-16 15:04:49 +00:00

68 lines
1.9 KiB
RPMSpec

#
# spec file for package python-pydyf
#
# 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
# 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-pydyf
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 Pillow}
BuildRequires: %{python_module pytest-isort}
BuildRequires: %{python_module pytest}
BuildRequires: gs
%python_subpackages
%description
A low-level PDF generator written in Python and based on PDF specification 1.7.
%prep
%setup -q -n pydyf-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
sed -i 's:--flake8 --numprocesses=auto::' pyproject.toml
%pytest tests/test_pydyf.py
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%changelog