Repository navigation
Expand file tree
/
Copy pathpython3-botocore.spec
More file actions
108 lines (93 loc) · 3.01 KB
/
Copy pathpython3-botocore.spec
File metadata and controls
108 lines (93 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#
# Conditional build:
%bcond_without doc # Sphinx documentation
%bcond_with lowmem # non-parallel Sphinx (parallel is memory-hungry, non-parallel is slow)
%bcond_without tests # unit/functional tests
Summary: Low-level, data-driven core of boto 3
Summary(pl.UTF-8): Niskopoziomowy, oparty na danych rdzeń boto 3
Name: python3-botocore
Version: 1.44.1
Release: 1
License: Apache v2.0
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/botocore/
Source0: https://files.pythonhosted.org/packages/source/b/botocore/botocore-%{version}.tar.gz
# Source0-md5: 35036d5eb2ee127991f3d596c7bb85d4
URL: https://pypi.org/project/botocore/
BuildRequires: python3-dateutil >= 2.1
BuildRequires: python3-dateutil < 3
BuildRequires: python3-jmespath >= 0.7.1
BuildRequires: python3-jmespath < 2
BuildRequires: python3-modules >= 1:3.10
BuildRequires: python3-setuptools
BuildRequires: python3-urllib3 >= 1.25.4
BuildRequires: python3-urllib3 < 3
%if %{with tests}
BuildRequires: python3-jsonschema >= 2.5.1
BuildRequires: python3-pytest >= 7.1.2
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with doc}
BuildRequires: python3-guzzle_sphinx_theme
BuildRequires: python3-sphinx_remove_toctrees
BuildRequires: sphinx-pdg-3
%endif
Requires: python3-modules >= 1:3.10
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
A low-level interface to a growing number of Amazon Web Services. The
botocore package is the foundation for the AWS CLI
(<https://github.com/aws/aws-cli>) as well as boto3
(<https://github.com/boto/boto3>).
%description -l pl.UTF-8
Niskopoziomowy interfejs do rosnącej liczby usług Amazon Web Services.
Pakiet botocore jest podstawą dla AWS CLI
(<https://github.com/aws/aws-cli>), jak i boto3
(<https://github.com/boto/boto3>).
%package apidocs
Summary: API documentation for Python botocore module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona botocore
Group: Documentation
%description apidocs
API documentation for Python botocore module.
%description apidocs -l pl.UTF-8
Dokumentacja API modułu Pythona botocore.
%prep
%setup -q -n botocore-%{version}
%build
%py3_build
%if %{with tests}
# leak tests fail for me
SKIP="TestDoesNotLeakMemory"
%ifnarch %{x8664} x32 aarch64
# these fail with 32-bit time_t
SKIP="$SKIP or test_parse_epoch_beyond_2038 or test_parse_epoch_negative_time"
%endif
# integration tests require some S3 credentials
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTHONPATH=$(pwd) \
%{__python3} -m pytest tests --ignore tests/integration -k "not ($SKIP)"
%endif
%if %{with doc}
PYTHONPATH=$(pwd) \
%{__make} -C docs html \
SPHINXBUILD=sphinx-build-3 \
%{?with_lowmem:SPHINXOPTS=}
%endif
%install
rm -rf $RPM_BUILD_ROOT
%py3_install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.rst
%{py3_sitescriptdir}/botocore
%{py3_sitescriptdir}/botocore-%{version}-py*.egg-info
%if %{with doc}
%files apidocs
%defattr(644,root,root,755)
%doc docs/build/html/{_static,development,reference,topics,tutorial,*.html,*.js}
%endif