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
This commit is contained in:
parent
9fba3dde0b
commit
2223a365e1
33
get-numpy-include.patch
Normal file
33
get-numpy-include.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
From 07d8ad1f89356dc77a503071a16516873f4d4e30 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Pavlin=20Poli=C4=8Dar?= <pavlin.g.p@gmail.com>
|
||||||
|
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():
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:54ba0dcf782bc88b544d22d5dc9d342b27dbaf47abb87ef8d1d80918029a2421
|
|
||||||
size 22641032
|
|
3
openTSNE-1.0.0-gh.tar.gz
Normal file
3
openTSNE-1.0.0-gh.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:31de08ea24dbfccec756535d5b9c3aa72cdcaad1bad2f505de6993328743f4f0
|
||||||
|
size 22643133
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 14 13:26:03 UTC 2023 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- 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 <code@bnavigator.de>
|
Sun Mar 20 19:38:50 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-openTSNE
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -19,7 +19,7 @@
|
|||||||
%{?!python_module:%define python_module() python3-%{**}}
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-openTSNE
|
Name: python-openTSNE
|
||||||
Version: 0.6.2
|
Version: 1.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Extensible, parallel implementations of t-SNE
|
Summary: Extensible, parallel implementations of t-SNE
|
||||||
License: BSD-3-Clause
|
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
|
# tests are not packaged in the PyPI sdist, use GitHub instead
|
||||||
Source: %{url}/archive/v%{version}.tar.gz#/openTSNE-%{version}-gh.tar.gz
|
Source: %{url}/archive/v%{version}.tar.gz#/openTSNE-%{version}-gh.tar.gz
|
||||||
Patch0: python-openTSNE-disable-CPU-autodetection.patch
|
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 Cython}
|
||||||
BuildRequires: %{python_module devel >= 3.7}
|
BuildRequires: %{python_module devel >= 3.7}
|
||||||
BuildRequires: %{python_module numpy-devel >= 1.16.6}
|
BuildRequires: %{python_module numpy-devel >= 1.16.6}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user