From 2223a365e1445d2696dd729f27d2abf213ab6e1b82ffbed9e1d2beb6bd9c1857 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 17 Sep 2023 09:46:22 +0000 Subject: [PATCH] Accepting request 1111345 from home:mcalabkova:branches:devel:languages:python:numeric - Update to 1.0.0 * Given the longtime stability of openTSNE, it is only fitting that we release a v1.0.0. * Various documentation fixes * Include Python 3.11 in the test and build matrix * Uniform affinity kernel now supports mean and max mode - add get-numpy-include.patch OBS-URL: https://build.opensuse.org/request/show/1111345 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-openTSNE?expand=0&rev=8 --- get-numpy-include.patch | 33 +++++++++++++++++++++++++++++++++ openTSNE-0.6.2-gh.tar.gz | 3 --- openTSNE-1.0.0-gh.tar.gz | 3 +++ python-openTSNE.changes | 11 +++++++++++ python-openTSNE.spec | 6 ++++-- 5 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 get-numpy-include.patch delete mode 100644 openTSNE-0.6.2-gh.tar.gz create mode 100644 openTSNE-1.0.0-gh.tar.gz diff --git a/get-numpy-include.patch b/get-numpy-include.patch new file mode 100644 index 0000000..50b6392 --- /dev/null +++ b/get-numpy-include.patch @@ -0,0 +1,33 @@ +From 07d8ad1f89356dc77a503071a16516873f4d4e30 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Pavlin=20Poli=C4=8Dar?= +Date: Sat, 19 Aug 2023 11:29:35 +0200 +Subject: [PATCH] Fix #248: get_numpy_include class error in new pip + +--- + setup.py | 13 +++---------- + 1 file changed, 3 insertions(+), 10 deletions(-) + +diff --git a/setup.py b/setup.py +index 0f6a3d5..e44111c 100644 +--- a/setup.py ++++ b/setup.py +@@ -55,16 +55,9 @@ def run(self): + writer.write(body, resources, nb_name) + + +-class get_numpy_include: +- """Helper class to determine the numpy include path +- +- The purpose of this class is to postpone importing numpy until it is +- actually installed, so that the ``get_include()`` method can be invoked. +- +- """ +- def __str__(self): +- import numpy +- return numpy.get_include() ++def get_numpy_include(): ++ import numpy ++ return numpy.get_include() + + + def get_include_dirs(): diff --git a/openTSNE-0.6.2-gh.tar.gz b/openTSNE-0.6.2-gh.tar.gz deleted file mode 100644 index 163949f..0000000 --- a/openTSNE-0.6.2-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:54ba0dcf782bc88b544d22d5dc9d342b27dbaf47abb87ef8d1d80918029a2421 -size 22641032 diff --git a/openTSNE-1.0.0-gh.tar.gz b/openTSNE-1.0.0-gh.tar.gz new file mode 100644 index 0000000..2ac7f34 --- /dev/null +++ b/openTSNE-1.0.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31de08ea24dbfccec756535d5b9c3aa72cdcaad1bad2f505de6993328743f4f0 +size 22643133 diff --git a/python-openTSNE.changes b/python-openTSNE.changes index 6404199..260c7f2 100644 --- a/python-openTSNE.changes +++ b/python-openTSNE.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Sep 14 13:26:03 UTC 2023 - Markéta Machová + +- Update to 1.0.0 + * Given the longtime stability of openTSNE, it is only fitting + that we release a v1.0.0. + * Various documentation fixes + * Include Python 3.11 in the test and build matrix + * Uniform affinity kernel now supports mean and max mode +- add get-numpy-include.patch + ------------------------------------------------------------------- Sun Mar 20 19:38:50 UTC 2022 - Ben Greiner diff --git a/python-openTSNE.spec b/python-openTSNE.spec index e9b1110..81e55bd 100644 --- a/python-openTSNE.spec +++ b/python-openTSNE.spec @@ -1,7 +1,7 @@ # # spec file for package python-openTSNE # -# Copyright (c) 2022 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 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-openTSNE -Version: 0.6.2 +Version: 1.0.0 Release: 0 Summary: Extensible, parallel implementations of t-SNE License: BSD-3-Clause @@ -27,6 +27,8 @@ 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 Patch0: python-openTSNE-disable-CPU-autodetection.patch +# PATCH-FIX-UPSTREAM https://github.com/pavlin-policar/openTSNE/commit/07d8ad1f89356dc77a503071a16516873f4d4e30 Fix #248: get_numpy_include class error in new pip +Patch1: get-numpy-include.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module numpy-devel >= 1.16.6}