2013-05-02 10:40:11 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pytools
|
|
|
|
#
|
2024-01-27 08:13:27 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-05-02 10:40:11 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 13:56:56 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-24 11:12:53 +00:00
|
|
|
#
|
2013-05-02 10:40:11 +00:00
|
|
|
|
|
|
|
|
2020-08-03 15:06:48 +00:00
|
|
|
%define skip_python2 1
|
2021-04-19 02:03:20 +00:00
|
|
|
%define skip_python36 1
|
2013-05-02 10:40:11 +00:00
|
|
|
Name: python-pytools
|
2024-01-27 08:13:27 +00:00
|
|
|
Version: 2023.1.1
|
2013-05-02 10:40:11 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A collection of tools for Python
|
2013-10-24 11:12:53 +00:00
|
|
|
License: MIT
|
2018-04-06 08:54:08 +00:00
|
|
|
URL: https://pypi.python.org/pypi/pytools
|
2017-06-11 10:26:38 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pytools/pytools-%{version}.tar.gz
|
2017-03-04 10:19:23 +00:00
|
|
|
BuildRequires: %{python_module base}
|
2020-03-20 10:24:22 +00:00
|
|
|
BuildRequires: %{python_module numpy >= 1.6.0}
|
2022-02-15 09:05:59 +00:00
|
|
|
BuildRequires: %{python_module platformdirs >= 2.2.0}
|
2020-03-20 10:24:22 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-03-04 10:19:23 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-02-21 09:38:53 +00:00
|
|
|
BuildRequires: %{python_module typing_extensions if %python-base < 3.11}
|
2017-03-04 10:19:23 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-04-20 09:54:37 +00:00
|
|
|
Requires: python-numpy >= 1.6.0
|
2022-02-15 09:05:59 +00:00
|
|
|
Requires: python-platformdirs
|
2023-02-21 09:38:53 +00:00
|
|
|
%if %{python_version_nodots} < 311
|
|
|
|
Requires: python-typing_extensions
|
2020-12-20 09:59:09 +00:00
|
|
|
%endif
|
2017-03-04 10:19:23 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
2013-05-02 10:40:11 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Pytools is a big bag of things that are "missing" from the Python standard library.
|
|
|
|
This is mainly a dependency of other software packages (pycuda, pyopencl, etc ),
|
|
|
|
and is probably of little interest to you unless you use those. If you're curious
|
|
|
|
nonetheless, here's what's on offer:
|
|
|
|
* A ton of small tool functions such as len_iterable, argmin, tuple generation,
|
|
|
|
permutation generation, ASCII table pretty printing, GvR's mokeypatch_xxx() hack,
|
|
|
|
the elusive flatten, and much more.
|
|
|
|
* Michele Simionato's decorator module
|
|
|
|
* A time-series logging module, pytools.log.
|
|
|
|
* Batch job submission, pytools.batchjob.
|
|
|
|
* A lexer, pytools.lex.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pytools-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-03-04 10:19:23 +00:00
|
|
|
%python_build
|
2013-05-02 10:40:11 +00:00
|
|
|
|
|
|
|
%install
|
2017-03-04 10:19:23 +00:00
|
|
|
%python_install
|
2020-03-20 10:24:22 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2013-05-02 10:40:11 +00:00
|
|
|
|
2013-05-02 10:42:02 +00:00
|
|
|
%check
|
2020-03-20 10:24:22 +00:00
|
|
|
%pytest
|
2013-05-02 10:40:11 +00:00
|
|
|
|
2017-03-04 10:19:23 +00:00
|
|
|
%files %{python_files}
|
2018-04-06 08:54:08 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2023-02-21 09:38:53 +00:00
|
|
|
%{python_sitelib}/pytools
|
|
|
|
%{python_sitelib}/pytools-%{version}*-info
|
2013-05-02 10:40:11 +00:00
|
|
|
|
|
|
|
%changelog
|