Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Philippe Schommers
aports
Commits
a9da2cda
Commit
a9da2cda
authored
Sep 26, 2019
by
Leo
Committed by
Kevin Daudt
Sep 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main/py3-pathlib2: drop py2
Closes !175
parent
a88eab15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
27 deletions
+8
-27
main/py3-pathlib2/APKBUILD
main/py3-pathlib2/APKBUILD
+8
-27
No files found.
main/py3-pathlib2/APKBUILD
View file @
a9da2cda
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname
=
py-pathlib2
pkgname
=
py
3
-pathlib2
pkgver
=
2.3.4
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"Fork of pathlib aiming to support the full stdlib Python API"
url
=
"https://github.com/mcmtroffaes/pathlib2"
arch
=
"noarch"
license
=
"MIT"
depends
=
"python3 py3-six py3-scandir"
makedepends
=
"py3-setuptools"
source
=
"pathlib2-
$pkgver
.tar.gz::https://github.com/mcmtroffaes/pathlib2/archive/
$pkgver
.tar.gz"
builddir
=
"
$srcdir
/pathlib2-
$pkgver
"
depends
=
"py-six py-scandir"
makedepends
=
"python2-dev python3-dev py-setuptools"
subpackages
=
"py2-
${
pkgname
#py-
}
:_py2 py3-
${
pkgname
#py-
}
:_py3"
replaces
=
"py-pathlib2"
# Backwards compatibility
provides
=
"py-pathlib2=
$pkgver
-r
$pkgrel
"
# Backwards compatibility
build
()
{
cd
"
$builddir
"
python2 setup.py build
python3 setup.py build
}
check
()
{
cd
"
$builddir
"
python2 setup.py
test
python3 setup.py
test
}
package
()
{
mkdir
-p
"
$pkgdir
"
}
_py2
()
{
depends
=
"
${
depends
//py-/py2-
}
"
_py python2
}
_py3
()
{
depends
=
"
${
depends
//py-/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
=
"
$
sub
pkgdir
"
python
3
setup.py
install
--prefix
=
/usr
--root
=
"
$pkgdir
"
}
sha512sums
=
"79b37a97037ba9ca2b315c7c4ff06e8b9b492d4f5d5cfe33e8b4cae533bf2314d27edb1a21f83791d82a1761df6a97bc07376cbff61e29e4bf43552daab499a0 pathlib2-2.3.4.tar.gz"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment