From 02887584b78fa0db7d4e642e0e79ccd7557cd317bfa02821067c0803e203eeb2 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Wed, 8 Mar 2023 03:45:53 +0000 Subject: [PATCH] Accepting request 1070052 from home:bnavigator:branches:devel:languages:python:jupyter - Shorten Summary (rpmlint) - Clean specfile - PEP517 OBS-URL: https://build.opensuse.org/request/show/1070052 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-threevis?expand=0&rev=15 --- python-threevis.changes | 7 +++++++ python-threevis.spec | 26 ++++++++++---------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/python-threevis.changes b/python-threevis.changes index e6243d7..8ce86fb 100644 --- a/python-threevis.changes +++ b/python-threevis.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Mar 8 03:36:10 UTC 2023 - Ben Greiner + +- Shorten Summary (rpmlint) +- Clean specfile +- PEP517 + ------------------------------------------------------------------- Tue Apr 27 05:18:24 UTC 2021 - Steve Kowalik diff --git a/python-threevis.spec b/python-threevis.spec index 4ea80a3..84d83db 100644 --- a/python-threevis.spec +++ b/python-threevis.spec @@ -1,7 +1,7 @@ # # spec file for package python-threevis # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,33 +16,28 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 -%define skip_python36 1 Name: python-threevis Version: 0.1.0.post25 Release: 0 -Summary: Plugin for visualizing meshes, point clouds, and other geometry in a Jupyter Notebook +Summary: Plugin for visualizing geometry in a Jupyter Notebook License: BSD-3-Clause URL: https://graphics.rwth-aachen.de:9000/threevis/threevis Source: https://files.pythonhosted.org/packages/source/t/threevis/threevis-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module numpy} BuildRequires: %{python_module openmesh} BuildRequires: %{python_module pythreejs >= 1.0.0} # /SECTION -BuildRequires: fdupes Requires: python-numpy Requires: python-openmesh Requires: python-pythreejs >= 1.0.0 -%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3" -Provides: jupyter-threevis = %{version} -%endif BuildArch: noarch - %python_subpackages %description @@ -53,22 +48,21 @@ a Jupyter Notebook. %setup -q -n threevis-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check pushd tests -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -$python -B -m unittest -} +%pyunittest -v popd %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/threevis +%{python_sitelib}/threevis-%{version}.dist-info %changelog