aboutsummaryrefslogtreecommitdiff
blob: 32ab2d7e2fcb3e1db55f158464297dada88e8401 (plain)
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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=(python3_11)

inherit eutils distutils-r1

DESCRIPTION="Package and upload Python lambda functions to AWS"
HOMEPAGE="https://github.com/rackerlabs/lambda-uploader"
SRC_URI="https://github.com/rackerlabs/lambda-uploader/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="mirror test"

# Test failures due virtualenv failures.
# tests disabled on test deps due to circular dependencies and many other
# test failures.

RDEPEND="
	${PYTHON_DEPS}
"
DEPEND="
	<=dev-python/boto3-1.18.65[${PYTHON_USEDEP}]
	dev-python/botocore[${PYTHON_USEDEP}]
	dev-python/setuptools[${PYTHON_USEDEP}]
	test? (
		  dev-python/coverage
		  dev-python/flake8
		  dev-python/moto
		  dev-python/nose
		  dev-python/pylint
		  dev-python/pytest[-test]
		  dev-python/virtualenv
		  dev-python/httpx[-test]
		  dev-python/iniconfig[-test]
		  dev-python/pluggy[-test]
		  dev-python/pytest-cov[-test]
		  dev-python/pythran[-test]
		  dev-python/scipy[-pythran]
		  dev-python/uvicorn[-test]
		  dev-python/webtest[-test]
		  dev-python/pyquery[-test]
		  dev-python/aiohttp[-test]
		  dev-python/async_timeout[-test]
		  dev-python/bottle[-test]
		  dev-python/pytest-localserver[-test]
		  dev-python/python-socks[-test]
		  dev-python/trio[-test]
		  dev-python/scipy[-test]
		  dev-python/moto[-test]
		  )
	${RDEPEND}
"

DOCS="README.rst"

python_test() {
	py.test --verbose
	flake8 lambda_uploader "${S}"/setup.py --statistics
}