python-keyring: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
568ffefc28
commit
8f6ccc4e67
2 changed files with 17 additions and 11 deletions
srcpkgs
|
@ -1,12 +1,11 @@
|
|||
# Template file for 'python-keyring'
|
||||
pkgname=python-keyring
|
||||
version=9.3.1
|
||||
revision=1
|
||||
revision=2
|
||||
noarch=yes
|
||||
wrksrc="keyring-${version}"
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
depends="python-setuptools"
|
||||
pycompile_module="keyring"
|
||||
short_desc="Python2 interface to the system keyring service"
|
||||
|
@ -15,7 +14,7 @@ license="MIT"
|
|||
homepage="https://github.com/jaraco/keyring"
|
||||
distfiles="${PYPI_SITE}/k/keyring/keyring-${version}.tar.gz"
|
||||
checksum=3be74f6568fcac1350b837d7e46bd3525e2e9fe2b78b3a3a87dc3b29f24a0c00
|
||||
alternatives="keyring:keyring:/usr/bin/keyring2.7"
|
||||
alternatives="keyring:keyring:/usr/bin/keyring2"
|
||||
|
||||
pre_build() {
|
||||
sed -e '/setuptools_scm/d' \
|
||||
|
@ -23,15 +22,21 @@ pre_build() {
|
|||
-i setup.py
|
||||
}
|
||||
|
||||
python3.4-keyring_package() {
|
||||
python3-keyring_package() {
|
||||
noarch=yes
|
||||
pycompile_version="3.4"
|
||||
pycompile_module="keyring"
|
||||
depends="python3.4-setuptools"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
alternatives="keyring:keyring:/usr/bin/keyring3.4"
|
||||
depends="python3-setuptools"
|
||||
replaces="python3.4-keyring>=0"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
alternatives="keyring:keyring:/usr/bin/keyring3"
|
||||
pkg_install() {
|
||||
vmove usr/bin/keyring3.4
|
||||
vmove usr/lib/python3.4
|
||||
vmove usr/bin/keyring3
|
||||
vmove usr/lib/python3*
|
||||
}
|
||||
}
|
||||
python3.4-keyring_package() {
|
||||
noarch=yes
|
||||
build_style=meta
|
||||
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||
depends="python3-keyring>=${version}_${revision}"
|
||||
}
|
||||
|
|
1
srcpkgs/python3-keyring
Symbolic link
1
srcpkgs/python3-keyring
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-keyring
|
Loading…
Reference in a new issue