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
643
Issues
643
List
Boards
Labels
Service Desk
Milestones
Merge Requests
201
Merge Requests
201
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
0c6b4719
Unverified
Commit
0c6b4719
authored
Jun 19, 2019
by
prspkt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing/pytest-mock: drop python2
* Modernize. * Move to community.
parent
8faf6299
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
29 deletions
+8
-29
community/py3-pytest-mock/APKBUILD
community/py3-pytest-mock/APKBUILD
+8
-29
No files found.
testing/
pytest-mock/APKBUILD
→
community/py3-
pytest-mock/APKBUILD
View file @
0c6b4719
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname
=
pytest-mock
_pkgname
=
${
pkgname
#py-
}
pkgname
=
py
3-py
test-mock
_pkgname
=
pytest-mock
pkgver
=
1.10.0
pkgrel
=
1
pkgdesc
=
"Thin-wrapper around the mock package for easier use with py.test"
url
=
"https://github.com/pytest-dev/pytest-mock"
arch
=
"noarch"
license
=
"MIT"
depends
=
"pytest"
makedepends
=
"python2-dev python3-dev py-setuptools"
subpackages
=
"py3-
${
pkgname
/py-/
}
:_py3 py2-
${
pkgname
/py-/
}
:_py2"
depends
=
"py3-pytest"
makedepends
=
"py3-setuptools"
source
=
"https://files.pythonhosted.org/packages/source/
${
_pkgname
:0:1
}
/
$_pkgname
/
$_pkgname
-
$pkgver
.tar.gz"
builddir
=
"
$srcdir
/
$_pkgname
-
$pkgver
"
replaces
=
"pytest-mock"
# Backwards compatibility
provides
=
"pytest-mock=
$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
"
}
_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
()
{
depends
=
"py2-
${
depends
//py-/py2-
}
py2-mock"
_py python2
}
_py3
()
{
depends
=
"py3-
${
depends
//py-/py3-
}
"
_py python3
python3 setup.py
install
--prefix
=
/usr
--root
=
"
$pkgdir
"
}
sha512sums
=
"b8afba13da3e598b6493459298e395c0ecc06538733916659191bd5c5c22f40b0e296853ad940c16a6d492fcf46b2daf490ee589661d391e2c7cd1deb84da756 pytest-mock-1.10.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