Files
python-trimesh/python-trimesh.spec
Stefan Brüns e451297580 Accepting request 766727 from home:StefanBruens:branches:science
- Update to trimesh 3.5.15, changes since 3.5.0 inclusive:
  + bump version.py to release
  + Scene Fixes And Numpydoc
  + DXF Exports and Broken Faces
  + Make sure unicode is stripped from DXF exports
  + Allow kwargs in Path objects
  + #680 Vectorized And Merge Updates
  + SVG Segments, Python 3.8, Vertex Normal Merging
  + move apply_obb up to base class
  + Scipy 1.4 Qhull options
  + add force_immutable to Cache
  + Add return_index to segment resampling and overload __copy__
  + Apply `metallicFactor` property to `pbrMetallicRoughness` object on glTF export
  + Widget And Path Updates
- Update to trimesh 3.4.10, changes since 3.4.0 inclusive:
  + export full graph from GLTF
  + allow vertex properties with one element
  + GLTF Nodes, SVG IO Changes, README updates, raytrace fix
  + Make materials hashable
  + #622 implement transforms for scenes
  + Better face_normals setter check and rename get_resources
  + Replace reversing case of align_vectors
  + Merge a number of PR's and bump version.
- Update to trimesh 3.3.9, changes since 3.3.0 inclusive:
  + Fix Typo In test_scene
  + filter degenerate triangles from face_adjacency
  + Add __repr__ and cache Extrusion.direction
  + resource caching, remove_close improvements, and GLTF fix from #588
- Update to trimesh 3.2.39, changes since 3.2.25:
  + skip concat in quaternion_matrix
  + bump and remove duplicate code
  + fix issues with new extrude logic
  + remove pkg_resource requirement
- Make it actually build:
  + Add python-scipy dependency (runtime, and build for tests)
  + Add several other optional dependencies to avoid runtime
    errors
  + Fix several python singlespec errors
- Remove pyembree build dependency for now, as it is x86_64 only.

OBS-URL: https://build.opensuse.org/request/show/766727
OBS-URL: https://build.opensuse.org/package/show/science/python-trimesh?expand=0&rev=2
2020-01-24 03:35:23 +00:00

82 lines
2.4 KiB
RPMSpec

#
# spec file for package python-phue
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-trimesh
Version: 3.5.15
Release: 0
Summary: Library for loading and using triangular meshes
License: MIT
Group: Development/Languages/Python
URL: https://trimsh.org
Source: trimesh-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module scipy}
%if 0
# Some more dependencies for tests, add when
# python-rtree becomes available
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module networkx}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module rtree}
BuildRequires: %{python_module shapely}
%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-lxml
Requires: python-numpy
Requires: python-scipy
Requires: python-shapely
Requires: python-networkx
#Requires: python-rtree
Recommends: python-pyembree
%python_subpackages
%description
Trimesh is a pure Python library for loading and using triangular
meshes with an emphasis on watertight surfaces.
%prep
%setup -q -n trimesh-%version
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
# run a subset of tests for now, many require the optional python-rtree module
cat tests/basic.list
%pytest -n auto tests/test_inertia.py tests/test_cache.py tests/test_triangles.py
%files %{python_files}
%license LICENSE.md
%doc README.md
%{python_sitelib}/*