## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name dask-expr %global forgeurl https://github.com/dask/dask-expr # dask-expr buildrequires dask, and dask buildrequires dask-expr # this disables dask-expr's tests and excludes dask from the # buildrequires, for breaking the loop when bootstrapping %bcond bootstrap 0 # Tests require `distributed` and so does `dask_expr`. But that # dependency is neither listed nor available, yet. %bcond tests 1 Name: python-%{pypi_name} Version: 1.1.3 Release: %{autorelease} Summary: High Level Expressions for Dask %forgemeta License: BSD-3-Clause URL: %forgeurl Source: %forgesource BuildArch: noarch BuildRequires: python3-devel BuildRequires: git-core # Unlisted and unavailable dependencies # https://github.com/dask/dask-expr/issues/1079 #BuildRequires: python3dist(distributed) #BuildRequires: python3dist(crick) %if %{with tests} BuildRequires: python3dist(pytest) %endif %global _description %{expand: Dask Expressions - Dask DataFrames with query optimization. This is a rewrite of Dask DataFrame that includes query optimization and generally improved organization.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} # Unlisted and unavailable dependencies # https://github.com/dask/dask-expr/issues/1079 #Requires: python3dist(distributed) #Requires: python3dist(crick) %description -n python3-%{pypi_name} %_description %prep %forgeautosetup -p1 -S git %if %{with bootstrap} # patch out the dask dependency so we can bootstrap it sed -r -i '/(dask)[<=> ]+[0-9]+/d' pyproject.toml %else # Drop upper bound from dask sed -r -i 's/(dask)[<=> ]*[0-9.]*/\1/' pyproject.toml %endif # Loosen version pinning on versioneer[toml] sed -r -i 's/(versioneer\[toml\])[<=>]*/\1>=/' pyproject.toml # Commit and tag for Versioneer git add --all git commit -m '[Fedora] Changes for RPM' git tag v%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l dask_expr %check %if %{with tests} && %{without bootstrap} # ImportError: Dask diagnostics requirements are not installed k="${k-}${k+ and }not test_df_to_html" # Needs `distributed` k="${k-}${k+ and }not test_respect_context_shuffle" # Ignore tests requiring `distributed` (not available, yet) %pytest -v \ --ignore dask_expr/tests/test_diagnostics.py \ --ignore dask_expr/tests/test_distributed.py \ --ignore dask_expr/io/tests/test_parquet.py \ ${k+-k }"${k-}" %else # Import test fails due to missing `crick` :-\ # @adamw, pick you fights wisely: # https://english.stackexchange.com/questions/51637/why-do-we-spell-eureka-not-heureka echo "Heureka! /s" #%%pyproject_check_import %endif %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Wed Jun 19 2024 Sandro - 1.1.3-6 - Disable bootstrap, enable tests * Wed Jun 19 2024 Sandro - 1.1.3-5 - Revert "Build without bootstrap, but also without tests for now" * Tue Jun 18 2024 Adam Williamson - 1.1.3-4 - Build without bootstrap, but also without tests for now * Mon Jun 17 2024 Adam Williamson - 1.1.3-3 - Tweak the bootstrap implementation to be cleaner * Mon Jun 17 2024 Adam Williamson - 1.1.3-2 - Filter dask dependency in bootstrap build * Mon Jun 17 2024 Adam Williamson - 1.1.3-1 - Bump to 1.1.3, implement a bootstrap build to break dep loop * Fri May 17 2024 Sandro - 1.1.0-1 - Initial release (RHBZ#2280279) ## END: Generated by rpmautospec