Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d60f241c79 | |||
| c5334005ad |
+1
-43
@@ -40,27 +40,6 @@ Summary: %{summary}
|
|||||||
|
|
||||||
%description -n python3-pint %{_description}
|
%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
|
%prep
|
||||||
%autosetup -n pint-%{version} -p1
|
%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
|
sed -r -i '1{/^#!/d}' pint/pint_convert.py
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%{pyproject_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 }
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|||||||
Reference in New Issue
Block a user