Files
guru/dev-python/webpy/webpy-0.62.ebuild
T

40 lines
959 B
Bash
Raw Normal View History

2022-05-30 15:00:05 +02:00
# Copyright 1999-2022 Gentoo Authors
2020-03-27 17:25:00 +01:00
# Distributed under the terms of the GNU General Public License v2
2021-07-05 03:01:19 +02:00
EAPI="8"
2020-03-27 17:25:00 +01:00
2022-05-30 15:00:05 +02:00
PYTHON_COMPAT=( python3_{8..11} )
2020-03-27 17:25:00 +01:00
inherit distutils-r1
DESCRIPTION="A web framework for python that is as simple as it is powerful"
HOMEPAGE="
2021-07-05 03:01:19 +02:00
https://webpy.org
2020-03-27 17:25:00 +01:00
https://github.com/webpy/webpy
2022-04-04 18:45:49 +02:00
https://pypi.org/project/web.py/
2020-03-27 17:25:00 +01:00
"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="public-domain"
SLOT="0"
2020-03-27 17:30:07 +01:00
KEYWORDS="~amd64 ~x86"
2020-03-27 17:25:00 +01:00
2021-07-05 03:01:19 +02:00
RDEPEND="dev-python/cheroot[${PYTHON_USEDEP}]"
2020-03-27 17:25:00 +01:00
distutils_enable_tests pytest
distutils_enable_sphinx docs
src_prepare() {
#tests require postgresql and mysql running
rm tests/test_db.py
default
}
2021-07-05 03:01:19 +02:00
python_test() {
#https://github.com/webpy/webpy/issues/712
#https://github.com/webpy/webpy/issues/713
epytest -vv \
--deselect tests/test_application.py::ApplicationTest::test_routing \
--deselect tests/test_session.py::DiskStoreTest::testStoreConcurrent \
|| die
}