blob: 24015ca28f12f4a40c32ea5910f2e9685472e8e3 (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{3_6,3_7,3_8} )
inherit distutils-r1
DESCRIPTION="Python job scheduling for humans"
HOMEPAGE="https://github.com/dbader/schedule"
if [[ ${PV} = 9999* ]]; then
EGIT_REPO_URI="https://github.com/dbader/schedule"
EGIT_BRANCH="master"
inherit git-r3
KEYWORDS=""
else
SRC_URI="https://github.com/dbader/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
LICENSE="MIT"
SLOT="0"
IUSE="test"
RDEPEND="${PYTHON_DEPS}"
DEPEND="${PYTHON_DEPS}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pytest-3.0.3[${PYTHON_USEDEP}] )
"
python_test() {
python_export PYTHON_SITEDIR PYTHON_SCRIPTDIR
py.test test_schedule.py || die "Testing failed with ${EPYTHON}"
}
|