Сравнение flask-cors-2.1.0-r1 с flask-cors-4.0.0

/usr/portage/dev-python/flask-cors/flask-cors-4.0.0.ebuild 2023-10-09 14:52:30.280368370 +0300
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=5
5
PYTHON_COMPAT=( python3_7 )
4
EAPI=8
6 5

  
7
inherit distutils-r1
6
DISTUTILS_USE_PEP517=setuptools
7
PYTHON_COMPAT=( python3_{10..12} )
8 8

  
9
MY_PN="Flask-Cors"
10
MY_P="${MY_PN}-${PV}"
9
inherit distutils-r1
11 10

  
12 11
if [[ "${PV}" == "9999" ]]; then
13
	inherit git-2
14
	EGIT_REPO_URI="https://github.com/wcdolphin/${PN}.git"
15
	SRC_URI=""
12
	EGIT_REPO_URI="https://github.com/corydolphin/flask-cors.git"
13
	inherit git-r3
16 14
else
17
	SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
15
	SRC_URI="
16
		https://github.com/corydolphin/flask-cors/archive/v${PV}.tar.gz
17
			-> ${P}.gh.tar.gz
18
	"
19
	KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86"
18 20
fi
19 21

  
20 22
DESCRIPTION="A Flask extension for Cross Origin Resource Sharing (CORS)"
21
HOMEPAGE="https://github.com/wcdolphin/flask-cors https://pypi.org/project/Flask-Cors/"
23
HOMEPAGE="
24
	https://github.com/corydolphin/flask-cors/
25
	https://pypi.org/project/Flask-Cors/
26
"
22 27

  
23 28
LICENSE="MIT"
24 29
SLOT="0"
25
KEYWORDS="amd64 x86"
26
IUSE="doc test"
27
RESTRICT="!test? ( test )"
28

  
29
RDEPEND="dev-python/flask[${PYTHON_USEDEP}]
30
	dev-python/six[${PYTHON_USEDEP}]"
31
DEPEND="
32
	dev-python/setuptools[${PYTHON_USEDEP}]
33
	doc? (
34
		${RDEPEND}
35
		dev-python/sphinx[${PYTHON_USEDEP}]
36
		>=dev-python/python-docs-2.7.6-r1:2.7
37
		dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
38
	)
39
	test? (
40
		${RDEPEND}
41
		dev-python/nose[${PYTHON_USEDEP}]
42
	)"
43

  
44
S="${WORKDIR}/${MY_P}"
45

  
46
python_prepare_all() {
47
	if use doc; then
48
		local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7)
49
		local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}"
50
		local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html"
51
		local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv"
52
		sed -i "s|'http://docs.python.org/': None|'${PYTHON_DOC}': '${PYTHON_DOC_INVENTORY}'|" docs/conf.py || die
53
	fi
54
	distutils-r1_python_prepare_all
55
}
56

  
57
python_compile_all() {
58
	use doc && emake -C docs html
59
}
60

  
61
python_test() {
62
	esetup.py test
63
}
64 30

  
65
python_install_all() {
66
	use doc && local HTML_DOCS=( docs/_build/html/. )
31
RDEPEND="
32
	dev-python/flask[${PYTHON_USEDEP}]
33
"
34
BDEPEND="
35
	test? (
36
		dev-python/packaging[${PYTHON_USEDEP}]
37
	)
38
"
67 39

  
68
	distutils-r1_python_install_all
69
}
40
distutils_enable_tests pytest
41
distutils_enable_sphinx docs \
42
	dev-python/sphinx-rtd-theme \
43
	dev-python/sphinxcontrib-httpdomain
Спасибо!