David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
python-cookiecutter


Commits:
e0115963 by David Runge at 2024-04-05T22:30:46+02:00
Disable tests downloading the internet with git

Signed-off-by: David Runge <[email protected]>

- - - - -
cc30bf31 by David Runge at 2024-04-05T22:31:18+02:00
upgpkg: 2.6.0-2: Rebuild against Python 3.12

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,11 +1,10 @@
 pkgbase = python-cookiecutter
        pkgdesc = A command-line utility that creates projects from project 
templates
        pkgver = 2.6.0
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/cookiecutter/cookiecutter
        arch = any
        license = BSD-3-Clause
-       checkdepends = git
        checkdepends = python-freezegun
        checkdepends = python-pytest
        checkdepends = python-pytest-mock


=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
 _name=cookiecutter
 pkgname=python-cookiecutter
 pkgver=2.6.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A command-line utility that creates projects from project templates"
 arch=(any)
 url="https://github.com/cookiecutter/cookiecutter";
@@ -26,7 +26,6 @@ makedepends=(
   python-wheel
 )
 checkdepends=(
-  git
   python-freezegun
   python-pytest
   python-pytest-mock
@@ -35,20 +34,24 @@ source=($url/archive/$pkgver/$_name-$pkgver.tar.gz)
 
sha512sums=('619be103bb831cbe9c50c4fa5114d6151a462a29a233f8999305403dda449f90a5900940a2b9d98433a8cdd3dbad421afe6feded42f4bcb6ee83523570ed2c1e')
 
b2sums=('967264bdf2b7f7ec7d2466d530e9ab6f689f88bb8537f833f76b952f4cbec07cfdf8c17c3f9690023f3687a8aab66ecb5dfe609e58ed933f1fcd2fc2174938f2')
 
-prepare() {
-  # we do not care about code coverage in pytest runs
-  sed -e '/addopts/d' -i $_name-$pkgver/setup.cfg
-}
-
 build() {
   cd $_name-$pkgver
   python -m build --wheel --no-isolation
 }
 
 check() {
+  local pytest_options=(
+    -vv
+    -o addopts=''  # we do not care about coverage
+    # ignore tests that download the internet with git
+    --deselect tests/vcs/test_clone.py::test_clone_handles_repo_typo
+    --deselect tests/vcs/test_clone.py::test_clone_handles_branch_typo
+    --deselect tests/vcs/test_clone.py::test_clone_unknown_subprocess_error
+  )
+
   cd $_name-$pkgver
   export PYTHONPATH="build:$PYTHONPATH"
-  pytest -vv
+  pytest "${pytest_options[@]}"
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-cookiecutter/-/compare/89e0536d693d3d6a30ff5337d7b3078d930cd901...cc30bf31e336975e7be4a01217153e7b7be98ccb

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-cookiecutter/-/compare/89e0536d693d3d6a30ff5337d7b3078d930cd901...cc30bf31e336975e7be4a01217153e7b7be98ccb
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to