From 546598019635d5eed17e046e143ae6dba1fc69579ecf7dc071cb9973b4a16289 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 30 Jan 2021 11:39:41 +0000 Subject: [PATCH] Accepting request 867806 from home:bnavigator:branches:devel:languages:python:numeric The new name for python-fastTSNE OBS-URL: https://build.opensuse.org/request/show/867806 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-openTSNE?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + openTSNE-0.5.1-gh.tar.gz | 3 ++ python-openTSNE.changes | 7 ++++ python-openTSNE.spec | 74 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 openTSNE-0.5.1-gh.tar.gz create mode 100644 python-openTSNE.changes create mode 100644 python-openTSNE.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/openTSNE-0.5.1-gh.tar.gz b/openTSNE-0.5.1-gh.tar.gz new file mode 100644 index 0000000..46c6363 --- /dev/null +++ b/openTSNE-0.5.1-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d10aa350fe041d6cbac0c4c93e16a9b0f4163f97acad78c05acc59aba9434773 +size 25650859 diff --git a/python-openTSNE.changes b/python-openTSNE.changes new file mode 100644 index 0000000..5eef0d5 --- /dev/null +++ b/python-openTSNE.changes @@ -0,0 +1,7 @@ +------------------------------------------------------------------- +Fri Jan 29 19:18:18 UTC 2021 - Ben Greiner + +- initial specfile for version 0.5.1 +- replaces python-fastTSNE +- The pytest_arch macro needs the "Cepl-Strangelove-Parameter" + (= specify --import-mode) diff --git a/python-openTSNE.spec b/python-openTSNE.spec new file mode 100644 index 0000000..4d5fe8d --- /dev/null +++ b/python-openTSNE.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-openTSNE +# +# Copyright (c) 2021 SUSE LLC +# +# 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 +# No python36-scipy in Tumbleweed +%define skip_python36 1 +Name: python-openTSNE +Version: 0.5.1 +Release: 0 +Summary: Extensible, parallel implementations of t-SNE +License: BSD-3-Clause +URL: https://github.com/pavlin-policar/openTSNE +# tests are not packaged in the PyPI sdist, use GitHub instead +Source: %{url}/archive/v%{version}.tar.gz#/openTSNE-%{version}-gh.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module numpy-devel >= 1.16.6} +BuildRequires: %{python_module scikit-learn >= 0.20} +BuildRequires: %{python_module scipy} +BuildRequires: c++_compiler +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +BuildRequires: fdupes +Requires: python-numpy >= 1.16.6 +Requires: python-scikit-learn >= 0.20 +Requires: python-scipy +Suggests: python-hnswlib +Suggests: python-pynndescent +Provides: python-fastTSNE = %{version} +Obsoletes: python-fastTSNE < %{version} +%python_subpackages + +%description +Extensible, parallel implementations of t-SNE + +%prep +%setup -q -n openTSNE-%{version} + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pytest_arch --import-mode append + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitearch}/openTSNE +%{python_sitearch}/openTSNE-%{version}*-info + +%changelog