%global forgeurl https://github.com/jchen6727/batchtk %global _description %{expand: Package for handling custom remote job submissions} Name: python-batchtk Version: 0.0.1c Release: %{autorelease} Summary: Package for handling custom remote job submissions License: MIT URL: %forgeurl %global tag %version %forgemeta Source0: %forgesource BuildArch: noarch %description %_description %package -n python3-batchtk Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-pytest # missing from pyproject.toml BuildRequires: python3-numpy BuildRequires: python3-pandas Requires: %{py3_dist numpy} Requires: %{py3_dist scipy} %description -n python3-batchtk %_description %prep %forgeautosetup sed -i 's/\r$//' README.md %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l batchtk %check # hangs, not sure why %{pytest} --ignore tests/test_sh.py # ray is not yet packaged for Fedora: https://pypi.org/project/ray/ %pyproject_check_import -e "*raytk*" %files -n python3-batchtk -f %{pyproject_files} %doc README.md examples/ %changelog %autochangelog