## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 # We can’t run tests that access the network in koji, but this build # conditional allows us to try them in local mock builds for added confidence: # fedpkg mockbuild --enable-network --with network_tests %bcond network_tests 0 Name: python-snakemake-storage-plugin-http Version: 0.2.3 Release: %autorelease Summary: Snakemake storage plugin for downloading input files from HTTP(s) # SPDX License: MIT URL: https://github.com/snakemake/snakemake-storage-plugin-http # We use the GitHub archive instead of the PyPI sdist to get CHANGELOG.md and # the tests. Source: %{url}/archive/v%{version}/snakemake-storage-plugin-http-%{version}.tar.gz # Fix typo in description, donwload/download # https://github.com/snakemake/snakemake-storage-plugin-http/pull/16 Patch: %{url}/pull/16.patch BuildArch: noarch BuildRequires: python3-devel # See: [tool.poetry.dev-dependencies] in pyproject.toml BuildRequires: %{py3_dist pytest} BuildRequires: snakemake >= 8 %global common_description %{expand: %{summary}.} %description %{common_description} %package -n python3-snakemake-storage-plugin-http Summary: %{summary} %description -n python3-snakemake-storage-plugin-http %{common_description} %prep %autosetup -n snakemake-storage-plugin-http-%{version} -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files snakemake_storage_plugin_http %check # Just in case the tests are not very thorough: %pyproject_check_import %if %{without network_tests} # The following tests require network access: k="${k-}${k+ and }not (TestStorageNoSettings and test_storage)" k="${k-}${k+ and }not (TestStorageNoSettings and test_storage_not_existing)" k="${k-}${k+ and }not (TestStorageNoSettings and test_inventory)" %endif %pytest -v -k "${k-}" tests/tests.py %files -n python3-snakemake-storage-plugin-http -f %{pyproject_files} %license LICENSE %doc CHANGELOG.md %doc README.md %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.2.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jul 12 2024 Benjamin A. Beasley - 0.2.3-5 - No longer patch the requests dependency version bound * Sun Jun 09 2024 Python Maint - 0.2.3-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Benjamin A. Beasley - 0.2.3-1 - Initial package (close RHBZ#2257677) ## END: Generated by rpmautospec