From 910ab2464e724fc8166e2151b75bb9b08211aad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 29 Sep 2020 00:00:41 +0700 Subject: [PATCH] python-py: drop package --- srcpkgs/python3-py | 1 - srcpkgs/{python-py => python3-py}/template | 27 +++++++++------------- 2 files changed, 11 insertions(+), 17 deletions(-) delete mode 120000 srcpkgs/python3-py rename srcpkgs/{python-py => python3-py}/template (54%) diff --git a/srcpkgs/python3-py b/srcpkgs/python3-py deleted file mode 120000 index 1a72927b964..00000000000 --- a/srcpkgs/python3-py +++ /dev/null @@ -1 +0,0 @@ -python-py \ No newline at end of file diff --git a/srcpkgs/python-py/template b/srcpkgs/python3-py/template similarity index 54% rename from srcpkgs/python-py/template rename to srcpkgs/python3-py/template index 181bbbd3567..5bfcb42bc88 100644 --- a/srcpkgs/python-py/template +++ b/srcpkgs/python3-py/template @@ -1,13 +1,13 @@ -# Template file for 'python-py' -pkgname=python-py +# Template file for 'python3-py' +pkgname=python3-py version=1.9.0 -revision=1 +revision=2 wrksrc="py-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="python" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" checkdepends="python3-pytest" -short_desc="Python2 development support library" +short_desc="Python3 development support library" maintainer="Orphaned " license="MIT" homepage="https://github.com/pytest-dev/py" @@ -15,6 +15,10 @@ changelog="https://github.com/pytest-dev/py/raw/master/CHANGELOG" distfiles="${PYPI_SITE}/p/py/py-${version}.tar.gz" checksum=9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342 +post_extract() { + vsed -i -e 's/"setuptools-scm"//' setup.py +} + do_check() { python3 -m pytest } @@ -22,12 +26,3 @@ do_check() { post_install() { vlicense LICENSE } - -python3-py_package() { - depends="python3" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE - } -}