From 00fc61cf82a43582a85922c67dbe78e04b00bf8593116d83f57e8051e3618eae Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 8 Jul 2024 01:12:30 +0000 Subject: [PATCH] - Update to 1.14.2: * build: temporarily exclude macos until ecosystem fixes itself * chore: ignore fastremap.cpp * chore: ignore fastremap.cpp * build: update for py312 * build: update build - Switch to pyproject macros. - Cythonize pyx file before building. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-fastremap?expand=0&rev=21 --- .gitattributes | 23 +++++++ .gitignore | 1 + fastremap-1.14.0.tar.gz | 3 + fastremap-1.14.2.tar.gz | 3 + python-fastremap.changes | 127 +++++++++++++++++++++++++++++++++++++++ python-fastremap.spec | 64 ++++++++++++++++++++ 6 files changed, 221 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 fastremap-1.14.0.tar.gz create mode 100644 fastremap-1.14.2.tar.gz create mode 100644 python-fastremap.changes create mode 100644 python-fastremap.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/fastremap-1.14.0.tar.gz b/fastremap-1.14.0.tar.gz new file mode 100644 index 0000000..8f8283e --- /dev/null +++ b/fastremap-1.14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:189d329a60d741fcef8945ad79068e3165e80bc5aa69b8d8897c2d33e701e95c +size 621365 diff --git a/fastremap-1.14.2.tar.gz b/fastremap-1.14.2.tar.gz new file mode 100644 index 0000000..2bca46e --- /dev/null +++ b/fastremap-1.14.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f6ed313a44c8214fa97576338fb4af691eb9e3f3153b121f5f345abece7b8b2 +size 43947 diff --git a/python-fastremap.changes b/python-fastremap.changes new file mode 100644 index 0000000..d147a97 --- /dev/null +++ b/python-fastremap.changes @@ -0,0 +1,127 @@ +------------------------------------------------------------------- +Mon Jul 8 01:11:21 UTC 2024 - Steve Kowalik + +- Update to 1.14.2: + * build: temporarily exclude macos until ecosystem fixes itself + * chore: ignore fastremap.cpp + * chore: ignore fastremap.cpp + * build: update for py312 + * build: update build +- Switch to pyproject macros. +- Cythonize pyx file before building. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Tue Dec 5 17:49:11 UTC 2023 - Dirk Müller + +- update to 1.14.0: + * docs: add README info and docstring + * docs: add tobytes example + * feat: bulk tobytes + +------------------------------------------------------------------- +Thu May 18 07:23:16 UTC 2023 - Dirk Müller + +- update to 1.13.5: + * release(1.13.5): updated build for py311 + +------------------------------------------------------------------- +Fri Feb 10 12:30:04 UTC 2023 - Dirk Müller + +- update to 1.13.4: + * release(1.13.4): easier installation + * Delayed numpy import during setup + * fix: handle all LP64 platforms generically + +------------------------------------------------------------------- +Sun Jan 8 20:32:43 UTC 2023 - Dirk Müller + +- update to 1.13.3: + * release(1.13.2): (inverse\_)component\_map accepts non-aligned inputs + * fix: component\_map and inverse\_component\_map accept non-aligned + inputs + * fixtest: elements in inv\_component\_map are now sorted + * feat: unique accepts lists + * fix: remove duplicates from inverse\_component\_map + * build: update build system with aarch64 and py310 + * release(1.13.0): using improved map for faster renumber, remap, more + * perf: switch to ska::flat\_hash\_map instead of std::unordered\_map + * release(1.12.2): release binaries with broader numpy ABI compat + * chore: use oldest-supported-numpy when building wheels + * release(1.12.1): unique accepts empty arrays + * fix: fastremap.unique doesn't accept empty arrays + * release(1.12.0): new point\_cloud and foreground functions + * feat(point\_cloud): new point\_cloud and foreground functions + * fix(renumber): preserve\_zero=False w/ arrays starting with 0 + +------------------------------------------------------------------- +Thu Apr 22 00:47:39 UTC 2021 - Steve Kowalik + +- Update to 1.11.4: + * chore: support only py36 - py39 + * chore: drop py27 from build + * fix(inverse\_component\_map): not checking component for continue cond + * release(1.11.2): fix numpy deprecation of np.bool + * fix: further fix numpy deprecation of np.bool + * chore: fix numpy 1.20 deprecation of np.bool in favor of bool + * chore: update setup.cfg + * release(1.11.1): python39 support + * chore: make build\_linux.sh script generic + * chore: add updated build system + * fix: pbr couldn't see git repo + * release(1.11.0): unique(..., return\_index=True) now accelerated + * feat(unique): adds return\_index to high performance paths (#25) +- Do not build on Python 3.6, due to no NumPy. + +------------------------------------------------------------------- +Thu Jul 9 14:27:11 UTC 2020 - Marketa Calabkova + +- Update to version 1.10.2 + * release(1.10.2): fixed bug in remap + * fix: remap was not handling missing labels correctly (#23) + * Revert "feat: adds argminmax, argmin, argmax, ravel\_index (#22)" + * feat: adds argminmax, argmin, argmax, ravel\_index (#22) + * chore: update changelog + * chore: adds tox + * release(1.10.1): faster renumber and by proxy unique in some circumstances + * chore: add tox.ini + * perf: faster renumber by using unordered\_map (#21) + * release(1.10.0): adds component\_map and inverse\_component\_map + * fix: should use int instead of uint + * test: abort appveyor early if a test fails + * fix: test for renumber dying on uint64 assertion + * fix: remove 'build.cmd' as we are not supporting 3.3 or 3.4 + * chore: add appveyor.yml + * docs: show how to use component\_map and inverse\_component\_map + * feat: add components\_map and inverse\_components\_map + * Update README.md + * release(1.9.2): fixed performance issue with fastremap.unique + * perf: faster unique\_va\_array + * release(1.9.1): ipt handles 64-bit addressable arrays + * fix: support 64-bit addressable volumes for IPT + * release(1.9.0): adds unique, minmax, refit, fit\_dtype, pixel\_pairs + * chore: add py3.8 to dockerfile + * feat: unique, minmax, refit, fit\_dtype, pixel\_pairs (#20) + +------------------------------------------------------------------- +Thu Jan 30 14:53:17 UTC 2020 - Todd R + +- Update to version 1.8.0 + * faster remap and mask operators + +------------------------------------------------------------------- +Tue Nov 19 21:02:51 UTC 2019 - Todd R + +- Update to version 1.7.0 + * feat: add support for single precision complex numbers to IPT + * docs: move "all available functions" higher + +------------------------------------------------------------------- +Tue Sep 17 11:11:04 UTC 2019 - Jan Engelhardt + +- Use noun phrase in descriptions. + +------------------------------------------------------------------- +Mon Sep 16 06:48:30 PM UTC 2019 - John Vandenberg + +- Initial spec for v1.6.2 diff --git a/python-fastremap.spec b/python-fastremap.spec new file mode 100644 index 0000000..645cb1c --- /dev/null +++ b/python-fastremap.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-fastremap +# +# Copyright (c) 2024 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/ +# + + +Name: python-fastremap +Version: 1.14.2 +Release: 0 +Summary: Module to Remap, mask, renumber, and in-place transpose numpy arrays +License: LGPL-3.0-only +URL: https://github.com/seung-lab/fastremap/ +Source: https://files.pythonhosted.org/packages/source/f/fastremap/fastremap-%{version}.tar.gz +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module numpy-devel >= 1.16.0} +BuildRequires: %{python_module pbr} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: python-rpm-macros +Requires: python-numpy >= 1.16.0 +%python_subpackages + +%description +A module to remap, mask, renumber, and in-place transpose numpy arrays. + +%prep +%setup -q -n fastremap-%{version} + +%build +export CFLAGS="%{optflags}" +cython -3 --cplus fastremap.pyx +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pytest_arch + +%files %{python_files} +%doc AUTHORS ChangeLog README.md +%license LICENSE +%{python_sitearch}/fastremap.cpython-*-linux-gnu.so +%{python_sitearch}/fastremap-%{version}.dist-info + +%changelog