Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions recipes-support/aws-cli-v2/aws-cli-v2_2.34.33.bb
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ SRC_URI = "\
file://run-ptest \
"

<<<<<<<< HEAD:recipes-support/aws-cli-v2/aws-cli-v2_2.34.33.bb
SRCREV = "1cc7be1dd47d8367a92f2563963c1a03304a1225"

S = "${WORKDIR}/git"
========
SRCREV = "6378d3744183c1a2046330c325d4bd8caa7e419d"
>>>>>>>> 2492a70aa (aws-cli-v2: upgrade 2.35.8 -> 2.35.14):recipes-support/aws-cli-v2/aws-cli-v2_2.35.14.bb

# version 2.x
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>2\.\d+(\.\d+)+)"
Expand Down
105 changes: 105 additions & 0 deletions recipes-support/aws-cli-v2/aws-cli-v2_2.35.14.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
SUMMARY = "Universal Command Line Interface for Amazon Web Services v2"
DESCRIPTION = "Universal Command Line Interface for Amazon Web Services and ptest scripts v2"
HOMEPAGE = "https://github.com/aws/aws-cli/tree/v2"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=8ad764cee43b1595056063799f3f79a5"

DEPENDS += "\
aws-crt-python-native \
groff \
openssl-native \
python3-botocore \
python3-colorama-native \
python3-cryptography-native \
python3-dateutil-native \
python3-distro-native \
python3-docutils-native \
python3-flit-core \
python3-jmespath-native \
python3-native \
python3-prompt-toolkit-native \
python3-pyyaml-native \
python3-rsa \
python3-ruamel-yaml-clib-native \
python3-ruamel-yaml-native \
python3-s3transfer \
python3-urllib3-native \
python3-zipp-native \
"

SRC_URI = "\
git://github.com/aws/aws-cli.git;protocol=https;branch=v2 \
file://run-ptest \
"

<<<<<<<< HEAD:recipes-support/aws-cli-v2/aws-cli-v2_2.34.33.bb
SRCREV = "1cc7be1dd47d8367a92f2563963c1a03304a1225"

S = "${WORKDIR}/git"
========
SRCREV = "6378d3744183c1a2046330c325d4bd8caa7e419d"
>>>>>>>> 2492a70aa (aws-cli-v2: upgrade 2.35.8 -> 2.35.14):recipes-support/aws-cli-v2/aws-cli-v2_2.35.14.bb

# version 2.x
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>2\.\d+(\.\d+)+)"

inherit python_pep517 python3native python3-dir setuptools3-base ptest

export CRYPTOGRAPHY_OPENSSL_NO_LEGACY = "true"

# this package also contains aws help
PACKAGES += "${PN}-examples"

FILES:${PN}-examples += "${libdir}/${PYTHON_DIR}/site-packages/awscli/examples"

RDEPENDS:${PN} += "\
aws-crt-python \
openssl \
python3-botocore \
python3-colorama \
python3-compression \
python3-core \
python3-dateutil \
python3-distro \
python3-docutils \
python3-elementpath \
python3-io \
python3-ipaddress \
python3-jmespath \
python3-json \
python3-logging \
python3-misc \
python3-prompt-toolkit \
python3-rsa \
python3-ruamel-yaml \
python3-sqlite3 \
python3-unixadmin \
python3-urllib3 \
python3-zipp \
"

do_patch() {
sed -i -E 's/(([a-zA-Z0-9_.-]+)(>=?[0-9.]+)?(,)?(<[0-9.]+\*|<=?[0-9.]+)?|([a-zA-Z0-9_.-]+)==[0-9.]+)/\2\3\6/' ${S}/pyproject.toml ${S}/requirements/bootstrap.txt
}

do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
# just install some tests with low memory (less than 4GB) consumption
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}

RDEPENDS:${PN}-ptest += "\
bash \
python3-mock \
python3-pytest \
python3-venv \
"

RDEPENDS:${PN}-examples += "\
groff \
less \
"

RRECOMMENDS:${PN} = "${PN}-examples"

RCONFLICTS:${PN} = "awscli"
Loading