Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37584232
en ru br
ALT Linux repositórios
S:4.1.13-alt1

Group :: Development/Python3
RPM: python3-module-moto

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define pypi_name moto

%def_with check
# full testsuite takes too long for now, run it locally
# name                      aarch64   armh   i586  ppc64le  x86_64
# python3-module-moto         20:32  35:22  12:18    25:10   12:09
%def_without full_testsuite

Name: python3-module-%pypi_name
Version: 4.0.5
Release: alt1

Summary: A library that allows your python tests to easily mock out the boto library
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.org/project/moto/

BuildArch: noarch

# https://github.com/spulec/moto.git

Source: %name-%version.tar
Patch: %name-%version-alt.patch

BuildRequires(pre): rpm-build-python3

# build backend and its deps

BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)

%if_with check
# install_requires=
BuildRequires: python3(boto3)
BuildRequires: python3(botocore)
BuildRequires: python3(cryptography)
BuildRequires: python3(requests)
BuildRequires: python3(xmltodict)
BuildRequires: python3(werkzeug)
BuildRequires: python3(pytz)
BuildRequires: python3(dateutil)
BuildRequires: python3(responses)
BuildRequires: python3(jinja2)
BuildRequires: python3(flask)
BuildRequires: python3(flask_cors)

# extra

BuildRequires: python3(sure)
BuildRequires: python3(freezegun)
BuildRequires: python3(jose)
BuildRequires: python3(aws_xray_sdk)
BuildRequires: python3(yaml)
BuildRequires: python3(jsondiff)
BuildRequires: python3(docker)
BuildRequires: python3(openapi-spec-validator)

BuildRequires: python3(pytest)
%endif

# not detected external dep

%py3_requires responses

%description
Moto is a library that allows your python tests to easily mock out the
boto library.

%prep
%setup
%autopatch -p1

%build
%pyproject_build

%install
%pyproject_install

%check
%tox_create_default_config
export NO_DOCKERD=YES
export TOX_TESTENV_PASSENV='NO_INTERNET NO_DOCKERD'
%if_with full_testsuite
export TESTS=tests
%else
export TESTS=tests/test_core
%endif
# test_batch_jobs requires internet
%tox_check_pyproject -- \
   -vra $TESTS \
   -m 'not network' \
   --ignore tests/test_batch/test_batch_jobs.py

%files
%doc LICENSE
%doc *.md
%_bindir/moto_server
%python3_sitelibdir/%pypi_name
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009