1 Commits

Author SHA1 Message Date
jinqiang zhang
d60f241c79 remove all subpkg 2026-03-02 18:10:00 +08:00

View File

@@ -40,27 +40,6 @@ Summary: %{summary}
%description -n python3-pint %{_description}
%pyproject_extras_subpkg -n python3-pint numpy
%if %{with xarray}
%pyproject_extras_subpkg -n python3-pint xarray
%endif
%if %{with dask}
%pyproject_extras_subpkg -n python3-pint dask
%endif
%if %{with uncertainties}
%pyproject_extras_subpkg -n python3-pint uncertainties
%endif
%if %{with babel}
%pyproject_extras_subpkg -n python3-pint babel
%endif
%if %{with pandas}
%pyproject_extras_subpkg -n python3-pint pandas
%endif
%if %{with mip}
%pyproject_extras_subpkg -n python3-pint mip
%endif
%pyproject_extras_subpkg -n python3-pint matplotlib
%prep
%autosetup -n pint-%{version} -p1
@@ -76,28 +55,7 @@ tomcli set pyproject.toml lists delitem project.optional-dependencies.test \
sed -r -i '1{/^#!/d}' pint/pint_convert.py
%generate_buildrequires
%{pyproject_buildrequires \
-x numpy \
%if %{with uncertainties}
-x uncertainties \
%endif
%if %{with babel}
-x babel \
%endif
%if %{with pandas}
-x pandas \
%endif
%if %{with xarray}
-x xarray \
%endif
%if %{with dask}
-x dask \
%endif
%if %{with mip}
-x mip \
%endif
-x matplotlib \
-x test-all }
%{pyproject_buildrequires}
%build
%pyproject_wheel