%global pypi_name ci-info Name: python-%{pypi_name} Version: 0.4.0 Release: 1%{?dist} Summary: Detect whether code is running on a continuous integration service License: MIT URL: https://github.com/mgxd/ci-info Source0: %{pypi_source ci_info} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: ci-info detects continuous integration environments (GitHub Actions, GitLab CI, Travis, CircleCI and others) from environment variables.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -p1 -n ci_info-%{version} %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install %pyproject_install # Build helpers some DataLad-template projects install at top level; not part of the package. rm -rf %{buildroot}%{python3_sitelib}/_datalad_buildsupport %{buildroot}%{python3_sitelib}/tools %{buildroot}%{python3_sitelib}/benchmarks %{buildroot}%{python3_sitelib}/tests %{buildroot}%{python3_sitelib}/tests.py %pyproject_save_files -l ci_info %check %pyproject_check_import -e 'ci_info.tests*' -e 'ci_info.*.tests*' %files -n python3-%{pypi_name} -f %{pyproject_files} %changelog * Mon Oct 12 2026 Morgan Hough - 0.4.0-1 - Initial package, for the DataLad extension stack and dandi.