Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
647
Issues
647
List
Boards
Labels
Service Desk
Milestones
Merge Requests
172
Merge Requests
172
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
cdb22c5f
Unverified
Commit
cdb22c5f
authored
Jul 21, 2019
by
prspkt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing/py-distro: drop python 2
parent
33ed9013
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
23 deletions
+8
-23
testing/py3-distro/APKBUILD
testing/py3-distro/APKBUILD
+8
-23
No files found.
testing/py-distro/APKBUILD
→
testing/py
3
-distro/APKBUILD
View file @
cdb22c5f
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname
=
py-distro
pkgname
=
py
3
-distro
_pkgname
=
distro
pkgver
=
1.4.0
pkgrel
=
1
pkgrel
=
2
pkgdesc
=
"A Linux OS platform information API"
options
=
"!check"
# Some tests fail
url
=
"https://github.com/nir0s/distro"
arch
=
"noarch"
license
=
"Apache-2.0"
makedepends
=
"py-setuptools py3-setuptools"
depends
=
"python3"
makedepends
=
"py3-setuptools"
checkdepends
=
"py3-pytest py3-pytest-cov"
subpackages
=
"py3-
$_pkgname
:_py3 py2-
$_pkgname
:_py2"
source
=
"https://files.pythonhosted.org/packages/source/
${
_pkgname
:0:1
}
/
$_pkgname
/
$_pkgname
-
$pkgver
.tar.gz"
builddir
=
"
$srcdir
"
/
$_pkgname
-
$pkgver
replaces
=
py-distro
# Backwards compatibility
provides
=
py-distro
=
$pkgver
-r
$pkgrel
# Backwards compatibility
build
()
{
python2 setup.py build
python3 setup.py build
}
...
...
@@ -25,24 +27,7 @@ check() {
}
package
()
{
mkdir
-p
"
$pkgdir
"
}
_py
()
{
local
python
=
$1
pkgdesc
=
"
$pkgdesc
-
$python
"
install_if
=
"
$pkgname
=
$pkgver
-r
$pkgrel
$python
"
cd
"
$builddir
"
$python
setup.py
install
--prefix
=
/usr
--root
=
"
$subpkgdir
"
}
_py2
()
{
_py python2
replaces
=
"
$pkgname
"
}
_py3
()
{
_py python3
python3 setup.py
install
--prefix
=
/usr
--root
=
"
$pkgdir
"
}
sha512sums
=
"eac7d32ea77c2074e57c6828a8b2e4d4d01e9c46cb0f7adbd99998630b0af4924bf18d05d5f5b42fef5603b024ef835dbb4c05fc88310f5e64d193514b2fc10f distro-1.4.0.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