File python-ray.spec of Package python-ray

#
# spec file for package python-ray
#
# 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
# 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-ray
Version:        2.3.0
Release:        0
Summary:        API for building distributed applications
License:        Apache-2.0
URL:            https://github.com/ray-project/ray
# No sdist on PyPI
Source:         https://github.com/ray-project/ray/releases/download/ray-%{version}/ray-%{version}.tar.gz
# SECTION build
BuildRequires:  bazel
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module colorama}
BuildRequires:  %{python_module setproctitle}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module psutil}
BuildRequires:  %{python_module wheel}
# /SECTION
# SECTION runtime
BuildRequires:  %{python_module attrs}
BuildRequires:  %{python_module click >= 7.0}
BuildRequires:  %{python_module filelock}
BuildRequires:  %{python_module jsonschema < 4.18}
BuildRequires:  %{python_module msgpack >= 1.0.0 with %python-msgpack < 2.0.0}
BuildRequires:  %{python_module protobuf >= 3.15.3}
BuildRequires:  %{python_module PyYAML}
BuildRequires:  %{python_module aiosignal}
BuildRequires:  %{python_module frozenlist}
BuildRequires:  %{python_module requests}
BuildRequires:  %{python_module virtualenv >= 20.0.24}
Requires:        python-attrs
Requires:        python-click >= 7.0
Requires:        python-filelock
Requires:        python-jsonschema < 4.18
Requires:        (python-msgpack >= 1.0.0 with python-msgpack < 2.0.0)
Requires:        python-protobuf >= 3.15.3
Requires:        python-pyyaml
Requires:        python-aiosignal
Requires:        python-frozenlist
Requires:        python-requests
Requires:        python-virtualenv >= 20.0.24
# /SECTION
# SECTION test
BuildRequires:  %{python_module pytest}
# /SECTION
%python_subpackages

%description
Ray is a unified framework for scaling AI and Python applications.

Ray consists of a core distributed runtime and a toolkit of libraries
(Ray AIR) for simplifying ML compute


%prep
%setup -q -n ray-%{version}

%build
pushd python
export SKIP_THIRDPARTY_INSTALL=1
export SKIP_BAZEL_BUILD=1
%pyproject_wheel
pod

%install
pushd python
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
popd

%check
pushd python
%pytest_arch
popd

%files %{python_files}
$%
%{python_sitearch}/ray
%{python_sitearch}/ray-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by