From 7d3cdb1aa12cfaa5cc341f28a677d1ab51c29934 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Sun, 3 Jul 2022 10:25:19 +0000 Subject: Adding metadata --- dev-python/shapely/Manifest | 2 + .../shapely-1.7.1-tests-support-geos-3.9.patch | 61 ++++++++++++++++++++++ dev-python/shapely/metadata.xml | 22 ++++++++ dev-python/shapely/shapely-1.7.1-r1.ebuild | 31 +++++++++++ dev-python/shapely/shapely-1.8.2.ebuild | 50 ++++++++++++++++++ 5 files changed, 166 insertions(+) create mode 100644 dev-python/shapely/Manifest create mode 100644 dev-python/shapely/files/shapely-1.7.1-tests-support-geos-3.9.patch create mode 100644 dev-python/shapely/metadata.xml create mode 100644 dev-python/shapely/shapely-1.7.1-r1.ebuild create mode 100644 dev-python/shapely/shapely-1.8.2.ebuild (limited to 'dev-python/shapely') diff --git a/dev-python/shapely/Manifest b/dev-python/shapely/Manifest new file mode 100644 index 000000000000..0145b67b8f00 --- /dev/null +++ b/dev-python/shapely/Manifest @@ -0,0 +1,2 @@ +DIST shapely-1.7.1.tar.gz 293368 BLAKE2B 14d9cb0c2b486a3a20b71c0cde7260ec357287ea020352c0320eea07b91674605bdcd22512b33c5ac5a71b89c3d811946f8dd6d3b90c61398203a4c68f30d067 SHA512 72070437960a8c1cf6504b5f4ccc8ec509f87fb6a90178e291aff14889f5add89f9ed4f7e9a19799ce0835c1aea3f0241eaa6efd4d8ea5b879f2167f7c1de50a +DIST shapely-1.8.2.gh.tar.gz 322064 BLAKE2B f21f91eb58818aa30464c719b1079d382c5a00f13eda70c532e4a12f1612284240e5c8c110a867c74eaa4aac5f3a21fd10b23c7ce781808d4adc871d038b8b2b SHA512 c85323f180622235257aed28c85640c63bb43cbcb2bd7ed9b354a0f23a92e0ca8becf7a94e85edea3a90cfd01017ddfc6f268f4bb2945639c2cae29a73292bd6 diff --git a/dev-python/shapely/files/shapely-1.7.1-tests-support-geos-3.9.patch b/dev-python/shapely/files/shapely-1.7.1-tests-support-geos-3.9.patch new file mode 100644 index 000000000000..18b6c5ad9a46 --- /dev/null +++ b/dev-python/shapely/files/shapely-1.7.1-tests-support-geos-3.9.patch @@ -0,0 +1,61 @@ +diff --git a/tests/test_svg.py b/tests/test_svg.py +--- a/tests/test_svg.py (revision 56c0f97a80e75308cf62e0bc4883238c10f56fdf) ++++ b/tests/test_svg.py (date 1615044742785) +@@ -174,7 +174,8 @@ + self.assertSVG(GeometryCollection(), '') + # Valid + self.assertSVG( +- Point(7, 3).union(LineString([(4, 2), (8, 4)])), ++ GeometryCollection( ++ [Point(7, 3), LineString([(4, 2), (8, 4)])]), + '' + ' + + + + 3dprint@gentoo.org + Gentoo 3D Printer Project + + + python@gentoo.org + Python + + + Shapely is a BSD-licensed Python package for manipulation and analysis of planar geometric objects. + It is based on the widely deployed GEOS (the engine of PostGIS) and JTS (from which GEOS is ported) libraries. + Shapely is not concerned with data formats or coordinate systems, but can be readily integrated with packages that are. + + + https://github.com/shapely/shapely/issues + https://shapely.readthedocs.io + + gentoo-staging + \ No newline at end of file diff --git a/dev-python/shapely/shapely-1.7.1-r1.ebuild b/dev-python/shapely/shapely-1.7.1-r1.ebuild new file mode 100644 index 000000000000..f1ca05469384 --- /dev/null +++ b/dev-python/shapely/shapely-1.7.1-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="Geometric objects, predicates, and operations" +HOMEPAGE="https://pypi.org/project/Shapely/ https://github.com/Toblerity/Shapely" +SRC_URI="https://github.com/Toblerity/Shapely/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P^}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" + +DEPEND=">=sci-libs/geos-3.9" +RDEPEND="${DEPEND} + dev-python/numpy[${PYTHON_USEDEP}] +" +BDEPEND="${DEPEND} + dev-python/cython[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/${P}-tests-support-geos-3.9.patch" +) + +distutils_enable_tests --install pytest +distutils_enable_sphinx docs dev-python/matplotlib diff --git a/dev-python/shapely/shapely-1.8.2.ebuild b/dev-python/shapely/shapely-1.8.2.ebuild new file mode 100644 index 000000000000..ac363d082e50 --- /dev/null +++ b/dev-python/shapely/shapely-1.8.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Geometric objects, predicates, and operations" +HOMEPAGE=" + https://pypi.org/project/Shapely/ + https://github.com/shapely/shapely/ +" +SRC_URI=" + https://github.com/shapely/shapely/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +DEPEND=" + >=sci-libs/geos-3.9 +" +RDEPEND=" + ${DEPEND} + dev-python/numpy[${PYTHON_USEDEP}] +" +BDEPEND=" + ${DEPEND} + dev-python/cython[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs dev-python/matplotlib + +src_prepare() { + rm -r _vendor || die + sed -i -e 's:_vendor\.::' setup.py || die + distutils-r1_src_prepare +} + +python_test() { + rm -rf shapely || die + epytest +} -- cgit v1.3