Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 2065094 Details for
Bug 2334210
Review Request: python-einops - Deep learning operations reinvented
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh109 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
Migrated Products
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
Suggestions for changes to spec file
python-einops.spec (text/x-matlab), 3.50 KB, created by
Benson Muite
on 2025-01-07 22:13:40 UTC
(
hide
)
Description:
Suggestions for changes to spec file
Filename:
MIME Type:
Creator:
Benson Muite
Created:
2025-01-07 22:13:40 UTC
Size:
3.50 KB
patch
obsolete
>%global pypi_name einops >%global pypi_version 0.8.0 > >Name: python-%{pypi_name} >Version: %{pypi_version} >Release: %autorelease >Summary: Deep learning operations reinvented > >License: MIT >URL: https://github.com/arogozhnikov/einops >Source: %{url}/archive/v%{version}.tar.gz#/%{pypi_name}-%{pypi_version}.tar.gz > >BuildArch: noarch >#Pytorch is only available on x86_64 aarch64 >ExclusiveArch: x86_64 aarch64 > >BuildRequires: python3-devel >BuildRequires: python3dist(numpy) >BuildRequires: python3dist(nbformat) >BuildRequires: python3dist(nbconvert) >BuildRequires: python3dist(parameterized) >BuildRequires: python3dist(pillow) >BuildRequires: python3dist(pytest) >BuildRequires: python3dist(torch) ># Additional test dependencies >BuildRequires: jupyterlab ># array-api-compat is recommended or ensuring ># that numpy is built with array-api >BuildRequires: python3dist(notebook) >BuildRequires: python3dist(hatchling) >BuildRequires: python3dist(ipython) >BuildRequires: python3dist(ipywidgets) >BuildRequires: python3dist(ipykernel) >BuildRequires: python3dist(jupyter-console) > >%description >Flexible and powerful tensor operations for readable and reliable code. >Supports numpy, pytorch, tensorflow, jax, and others. > >%package -n python3-%{pypi_name} >Summary: Deep learning operations reinvented > >%description -n python3-%{pypi_name} >Flexible and powerful tensor operations for readable and reliable code. >Supports numpy, pytorch, tensorflow, jax, and others. > >%prep >%autosetup -n %{pypi_name}-%{pypi_version} -p 1 > ># Remove bundled egg-info >rm -rf %{pypi_name}.egg-info > ># To prevent import errors, remove the frameworks we have no support for. >rm einops/layers/chainer.py >rm einops/layers/flax.py >rm einops/layers/keras.py >rm einops/layers/oneflow.py >rm einops/layers/paddle.py >rm einops/layers/tensorflow.py > ># Do not use a bare python in the test >sed -i -e 's@python -m@%__python3 -m@' test.py ># Remove some tests ># if sys.version_info >= (3, 13): ># > raise RuntimeError("Dynamo is not supported on Python 3.13+") ># E RuntimeError: Dynamo is not supported on Python 3.13+ >#rm tests/test_other.py >#rm tests/test_ops.py >#rm tests/test_examples.py ># def test_pack_unpack_array_api(): ># from einops import array_api as AA >#> import numpy.array_api as xp >#E ModuleNotFoundError: No module named 'numpy.array_api' >#rm tests/test_packing.py >#rm tests/test_notebooks.py > >%generate_buildrequires >%pyproject_buildrequires -t > >%build >%pyproject_wheel > >%install >%pyproject_install >%pyproject_save_files -l %{pypi_name} > >%check >%pyproject_check_import >export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitelib}/%{pypi_name} > >k="${k-}${k+ and }not (test_notebooks and test_notebook_1)" >k="${k-}${k+ and }not (test_ops and test_rearrange_array_api)" >k="${k-}${k+ and }not (test_ops and test_reduce_array_api)" >k="${k-}${k+ and }not (test_ops and test_repeat_array_api)" >k="${k-}${k+ and }not (test_packing and test_pack_unpack_array_api)" >EINOPS_TEST_BACKENDS=numpy %pytest -k "${k-}" tests >k="${k-}${k+ and }not (test_notebooks and test_notebook_2_with_all_backends)" >k="${k-}${k+ and }not (test_notebooks and test_notebook_3)" >k="${k-}${k+ and }not (test_notebooks and test_notebook_4)" >k="${k-}${k+ and }not (test_ops and test_torch_compile_with_dynamic_shape)" >k="${k-}${k+ and }not (test_other and test_torch_compile)" >EINOPS_TEST_BACKENDS=torch %pytest -k "${k-}" tests > >%files -n python3-%{pypi_name} -f %{pyproject_files} >%doc README.md > >%changelog >%autochangelog
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2334210
:
2064884
| 2065094 |
2065603