forked from pool/python-pydyf
Accepting request 997441 from home:bnavigator:branches:devel:languages:python
- Implement python packaging best practices for build requirements, testing and files section As suggested on ML OBS-URL: https://build.opensuse.org/request/show/997441 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydyf?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 16 20:25:37 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Implement python packaging best practices for build requirements,
|
||||||
|
testing and files section
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Aug 13 11:44:53 UTC 2022 - Axel Braun <axel.braun@gmx.de>
|
Sat Aug 13 11:44:53 UTC 2022 - Axel Braun <axel.braun@gmx.de>
|
||||||
|
|
||||||
|
@@ -17,9 +17,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%define skip_python2 1
|
|
||||||
|
|
||||||
Name: python-pydyf
|
Name: python-pydyf
|
||||||
Version: 0.2.0
|
Version: 0.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -27,19 +24,18 @@ Summary: A low-level PDF generator
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://www.courtbouillon.org/pydyf
|
URL: https://www.courtbouillon.org/pydyf
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pydyf/pydyf-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pydyf/pydyf-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module flit}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
|
BuildRequires: %{python_module flit-core}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
## Testing
|
# SECTION Testing
|
||||||
BuildRequires: %{python_module Pillow}
|
BuildRequires: %{python_module Pillow}
|
||||||
BuildRequires: %{python_module pytest-isort}
|
BuildRequires: %{python_module pytest-xdist}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: gs
|
BuildRequires: gs
|
||||||
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -47,6 +43,8 @@ A low-level PDF generator written in Python and based on PDF specification 1.7.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pydyf-%{version}
|
%setup -q -n pydyf-%{version}
|
||||||
|
sed -i 's:--isort --flake8::' pyproject.toml
|
||||||
|
chmod -x pydyf/__init__.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@@ -56,12 +54,12 @@ A low-level PDF generator written in Python and based on PDF specification 1.7.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
sed -i 's:--flake8 --numprocesses=auto::' pyproject.toml
|
%pytest
|
||||||
%pytest tests/test_pydyf.py
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pydyf
|
||||||
|
%{python_sitelib}/pydyf-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user