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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rasmus Thomsen
aports
Commits
14f680b4
Commit
14f680b4
authored
Dec 19, 2017
by
Leonardo Arena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing/py-core-api: new aport
parent
46e135c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
+59
-0
testing/py-core-api/APKBUILD
testing/py-core-api/APKBUILD
+59
-0
No files found.
testing/py-core-api/APKBUILD
0 → 100644
View file @
14f680b4
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname
=
py-core-api
_pkgname
=
python-client
pkgver
=
2.3.3
pkgrel
=
0
pkgdesc
=
"Python client library for Core API"
url
=
"https://github.com/core-api/python-client"
arch
=
"noarch"
license
=
"Custom"
depends
=
"py-coreschema py-itypes py-requests"
makedepends
=
"python2-dev python3-dev py-setuptools py3-setuptools
py-uritemplate"
checkdepends
=
"py-flake8 py-coverage pytest py-jinja2 py-pycodestyle
py-pyflakes py-enum34"
options
=
"!check"
#currently requires pyflakes-1.5.0
subpackages
=
"py2-
${
pkgname
#py-
}
:_py2 py3-
${
pkgname
#py-
}
:_py3"
source
=
"
$pkgname
-
$pkgver
.tar.gz::https://github.com/core-api/python-client/archive/
$pkgver
.tar.gz"
builddir
=
"
$srcdir
"
/
$_pkgname
-
$pkgver
build
()
{
cd
"
$builddir
"
python2 setup.py
--quiet
build
python3 setup.py
--quiet
build
}
package
()
{
cd
"
$builddir
"
mkdir
-p
"
$pkgdir
"
/usr/bin
}
check
()
{
cd
"
$builddir
"
python2 runtests
python3 runtests
}
_py2
()
{
depends
=
"
${
depends
//py-/py3-
}
py2-uritemplate.py"
_py python2
}
_py3
()
{
depends
=
"
${
depends
//py-/py3-
}
py3-uritemplate.py"
_py python3
}
_py
()
{
local
python
=
"
$1
"
local
pyver
=
"
${
1
:6:1
}
"
pkgdesc
=
"
$pkgdesc
(for
$python
)"
depends
=
"
$depends
$python
"
install_if
=
"
$pkgname
=
$pkgver
-r
$pkgrel
$python
"
cd
"
$builddir
"
$python
setup.py
--quiet
install
--prefix
=
/usr
--root
=
"
$subpkgdir
"
}
sha512sums
=
"aeae3ace84c0ce61552236b83db28e47492f5ac17a0e216e1a8eeddaf67270b94127f7a40f8a37cc5051abe097555adfd690a7e6c8801524ca77c916bd451ab8 py-core-api-2.3.3.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