# In our build environment, we find that tests are unable to connect to the # mocked API that is supposed to be running on localhost, e.g.: # # snakemake_interface_common.exceptions.WorkflowError: Failed to check # existence of s3://snakemake-2a593a3105254880b0f9095efbccc6a7/test2.out # EndpointConnectionError: Could not connect to the endpoint URL: # "http://127.0.0.1:9000/snakemake-2a593a3105254880b0f9095efbccc6a7/test2.out" # # This probably doesn’t represent a real defect. %bcond tests 0 Name: python-snakemake-executor-plugin-aws-batch Version: 0.2.1 Release: %autorelease Summary: Snakemake executor plugin for AWS Batch License: MIT URL: https://github.com/snakemake/snakemake-executor-plugin-aws-batch Source: %{url}/archive/v%{version}/snakemake-executor-plugin-aws-batch-%{version}.tar.gz BuildSystem: pyproject BuildOption(install): -L snakemake_executor_plugin_aws_batch BuildArch: noarch %if %{with tests} # See [tool.poetry.group.dev-dependencies] in pyproject.toml; we list # dependencies manually to avoid bringing in unwanted linters & coverage tools, # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters. BuildRequires: snakemake >= 8.30.0 BuildRequires: %{py3_dist pytest} >= 7.4.3 %endif %global common_description %{expand: A Snakemake executor plugin for submitting jobs to AWS Batch.} %description %{common_description} %package -n python3-snakemake-executor-plugin-aws-batch Summary: %{summary} %description -n python3-snakemake-executor-plugin-aws-batch %{common_description} %if %{with tests} %check -a # Obviously, we cannot run tests/tests_true_api.py since we have neither network # access nor AWS credentials. For tests/tests_mocked_api.py, environment # variables SNAKEMAKE_AWS_BATCH_JOB_QUEUE and SNAKEMAKE_AWS_BATCH_JOB_ROLE are # normally set in GitHub CI from secrets, to the same values used with the real # API. We ought to be export SNAKEMAKE_AWS_BATCH_JOB_QUEUE='example-jq' export SNAKEMAKE_AWS_BATCH_JOB_ROLE='bogus.example.com' %pytest -v tests/tests_mocked_api.py %endif %files -n python3-snakemake-executor-plugin-aws-batch -f %{pyproject_files} %license LICENSE %doc CHANGELOG.md %doc README.md %doc docs/*.md %changelog %autochangelog