Skip to content
Snippets Groups Projects
Commit 5f9b72e6 authored by Leo's avatar Leo Committed by Kevin Daudt
Browse files

main/py3-atomicwrites: drop py2

Closes !173
parent 511009dc
No related merge requests found
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=py-atomicwrites
pkgname=py3-atomicwrites
_pkgname=python-atomicwrites
pkgver=1.3.0
pkgrel=0
pkgdesc="Powerful Python library for atomic file writes"
pkgrel=1
pkgdesc="Powerful Python3 library for atomic file writes"
url="https://github.com/untitaker/python-atomicwrites"
arch="noarch"
license="MIT"
makedepends="python2-dev python3-dev py-setuptools"
depends="python3"
makedepends="py3-setuptools"
options="!check" # requires pytest which depends on this aport (cyclic dep)
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="https://github.com/untitaker/python-atomicwrites/archive/$pkgver/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-atomicwrites" # Backwards compatibility
provides="py-atomicwrites=$pkgver-r$pkgrel" # Backwards compatibility
build() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
}
package() {
mkdir -p "$pkgdir"
}
_py2() {
_py python2
}
_py3() {
_py python3
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="7a257286ba35d6f0db3772ef9666283f29c36719fe35eeb1cb9c36341f0f6a0d7c316d236927ef031f2b8ac6c245320481f51c59e0e1ccf2cbea49065a13d474 python-atomicwrites-1.3.0.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment