X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail.cmpwn.com (mail.cmpwn.com [45.56.77.53]) by lists.alpinelinux.org (Postfix) with ESMTP id 16885F8524D for ; Tue, 25 Jun 2019 19:28:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cmpwn.com; s=cmpwn; t=1561491146; bh=CsIaKSxM9hLd9fB2wnpNZQPeQz4VdMUUXXw0PJrDGrg=; h=From:To:Cc:Subject:Date; b=vgNwLPjUww5pSXa9ARkKfcej2ubSg+ZDpP0qWm7cAAGNcbXAHoZ+HlDJoRVQTr4zw BS1Qib3WM3OIscJ53Ko0f7GbFk6jTk+hcyCDlcOpVV/E41603fn6rLo+Mfat7end+m l8aV9/ioR1xKYnU5kP0WbHs8GzY2OStEgcpCPrAQ= From: Drew DeVault To: alpine-aports@lists.alpinelinux.org Cc: Drew DeVault , Valery Kartel Subject: [alpine-aports] [PATCH] testing/py3-httpretty: normalize, upgrade to 0.9.6 Date: Tue, 25 Jun 2019 15:28:07 -0400 Message-Id: <20190625192807.2810-1-sir@cmpwn.com> X-Mailer: git-send-email 2.22.0 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Also drops Python 2 for Python 3 --- testing/py-httpretty/APKBUILD | 32 -------------------------------- testing/py3-httpretty/APKBUILD | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 32 deletions(-) delete mode 100644 testing/py-httpretty/APKBUILD create mode 100644 testing/py3-httpretty/APKBUILD diff --git a/testing/py-httpretty/APKBUILD b/testing/py-httpretty/APKBUILD deleted file mode 100644 index 4ce51aadc1..0000000000 --- a/testing/py-httpretty/APKBUILD +++ /dev/null @@ -1,32 +0,0 @@ -# Maintainer: Valery Kartel -# Contributor: Valery Kartel -pkgname=py-httpretty -_pkgname=HTTPretty -pkgver=0.8.14 -pkgrel=0 -pkgdesc="HTTP client mocking tool for Python" -url="https://github.com/gabrielfalcao/HTTPretty" -arch="noarch" -license="MIT" -depends="python2" -depends_dev= -makedepends="python2-dev py-setuptools" -install= -subpackages="" -source="$_pkgname-$pkgver.tar.gz::https://github.com/gabrielfalcao/$_pkgname/archive/$pkgver.tar.gz" - -_builddir="$srcdir"/$_pkgname-$pkgver - -build() { - cd "$_builddir" - python2 setup.py build || return 1 -} - -package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 -} - -md5sums="575451618591fbb0c39bfb54e40c98bb HTTPretty-0.8.14.tar.gz" -sha256sums="22bb7c76c11d2d92bc864e4feae73b8bd78cfefc89bddaaf3608d7fec65a9034 HTTPretty-0.8.14.tar.gz" -sha512sums="cb1559ffb247b11bfbea44ab93de9880df7fe1879772ccfb692ae50985c25a7547165970d4874e6d3d2b43e11092e9c6ec8fa650f4042c7019b628bbfb1fc645 HTTPretty-0.8.14.tar.gz" diff --git a/testing/py3-httpretty/APKBUILD b/testing/py3-httpretty/APKBUILD new file mode 100644 index 0000000000..28ca6f76c1 --- /dev/null +++ b/testing/py3-httpretty/APKBUILD @@ -0,0 +1,29 @@ +# Maintainer: Valery Kartel +# Contributor: Valery Kartel +pkgname=py3-httpretty +_pyname=httpretty +pkgver=0.9.6 +pkgrel=0 +pkgdesc="HTTP client mocking tool for Python" +url="https://github.com/gabrielfalcao/HTTPretty" +arch="noarch" +license="MIT" +depends="python3" +makedepends="python3-dev py3-setuptools" +_pypiprefix="${_pyname%${_pyname#?}}" +source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" +replaces="py-httpretty" +builddir="$srcdir"/$_pyname-$pkgver + +build() { + python2 setup.py build +} + +check() { + python2 setup.py build +} + +package() { + python2 setup.py install --prefix=/usr --root="$pkgdir" +} +sha512sums="bc1c64d34370209c732bc12dd9935600b647507ab2c8f18c85f348e9b5e853618ba39e10e5a073b35036e6cbe3db2cb7a342a721d0e4affa81fe178fd0b75d92 httpretty-0.9.6.tar.gz" -- 2.22.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---