17
0

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
This commit is contained in:
2023-03-08 03:45:53 +00:00
committed by Git OBS Bridge
parent 01678227f6
commit 02887584b7
2 changed files with 17 additions and 16 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Mar 8 03:36:10 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Shorten Summary (rpmlint)
- Clean specfile
- PEP517
-------------------------------------------------------------------
Tue Apr 27 05:18:24 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -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