Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
e4bf8d0a
Commit
e4bf8d0a
authored
1 year ago
by
Bart Ribbers
Browse files
Options
Downloads
Patches
Plain Diff
community/py3-pytest-socket: upgrade to 0.6.0
parent
7221c9ad
Loading
Loading
1 merge request
!48418
community/py3-pytest-socket: upgrade to 0.6.0
Pipeline
#169142
canceled
1 year ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
community/py3-pytest-socket/APKBUILD
+22
-13
22 additions, 13 deletions
community/py3-pytest-socket/APKBUILD
with
22 additions
and
13 deletions
community/py3-pytest-socket/APKBUILD
+
22
−
13
View file @
e4bf8d0a
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname
=
py3-pytest-socket
pkgver
=
0.
5.1
pkgrel
=
2
pkgver
=
0.
6.0
pkgrel
=
0
pkgdesc
=
"Pytest Plugin to disable socket calls during tests"
url
=
"https://
pypi.org/project
/pytest-socket
/
"
url
=
"https://
github.com/miketheman
/pytest-socket"
arch
=
"noarch"
license
=
"MIT"
depends
=
"
py3-pytest
python3
depends
=
"py3-pytest"
makedepends
=
"
poetry
py3-gpep517
py3-wheel
"
make
depends
=
"py3-
setuptools
"
check
depends
=
"py3-
pytest-httpbin
"
subpackages
=
"
$pkgname
-pyc"
source
=
"
https://pypi.python.org/packages/source/p/pytest-socket/pytest-socket-
$pkgver
.tar.gz"
options
=
"
!check"
# No tests in pypi package and Github tarball unusable for distro
s
source
=
"
$pkgname
-
$pkgver
.tar.gz::https://github.com/miketheman/pytest-socket/archive/refs/tags/
$pkgver
.tar.gz"
options
=
"
net"
# Required for test
s
builddir
=
"
$srcdir
/pytest-socket-
$pkgver
"
build
()
{
python3 setup.py build
gpep517 build-wheel
\
--wheel-dir
.dist
\
--output-fd
3 3>&1
>
&2
}
check
()
{
pytest
python3
-m
venv
--clear
--without-pip
--system-site-packages
.testenv
.testenv/bin/python3
-m
installer .dist/
*
.whl
# tests/test_async.py requires py3-httpx which is not available on ppc64le
.testenv/bin/python3
-m
pytest
-k
'not test_starlette and not test_asynctest'
\
--ignore
tests/test_async.py
}
package
()
{
python3 setup.py
install
--skip-build
--root
=
"
$pkgdir
"
python3
-m
installer
-d
"
$pkgdir
"
\
.dist/
*
.whl
}
sha512sums
=
"
e87f3350fb4db621f40c7f9061955a613fc11959789e5165717b656c78bc38f67e6323b028d900ce798b9fa48f8f9c8c37779972e8cb2b98d07548aed5edcdf8
pytest-socket-0.
5.1
.tar.gz
b70ab9fe3c41a707f16b6ae23d45e07238d03a731b3f99b794a6707303cd0301b75360ea164b7de48e9f2d56b5544e2da39373ba14a3b0fc20ef03afce03ab03 py3-
pytest-socket-0.
6.0
.tar.gz
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment