mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
dev-python/gitdb: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST gitdb-4.0.10.tar.gz 394284 BLAKE2B f5a00dd3a27a17781df4c53c268c92101838ce53efcb3796a72a79f8109540912f86d746cad169ef34af2575cfb242e90cb450b658699512d37956f6902e14ed SHA512 6cfb58db322f1b18fd25d0c6537e5b24b2eb2f7a7222c1511cdee8dff39fb1249bf12691b9cb1a5d653131b8c3c57c1de2bb42139a2c8da6014332b4f1c6c03b
|
||||
DIST gitdb-4.0.9.tar.gz 394670 BLAKE2B 7882c2757f7c6ff9fa6518504b46ff987fa69f38ba28713a6d140614944e2ccb1c371321402faae835455659a8b33c12523cb781e9c62c79132a724c7ad4d86d SHA512 174b90e09b65ba38d3404fd79a8963987ab49a5e2b96ce82057b519861e8312342c425ff10849c865f66e6e88c27d651d8902a6f8abea88f9f33161f44974109
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
From a61910fde100fa1112ec57dd3e456719724997ef Mon Sep 17 00:00:00 2001
|
||||
From: Carl George <carl@george.computer>
|
||||
Date: Wed, 9 Feb 2022 17:15:39 -0600
|
||||
Subject: [PATCH] Switch from nose to pytest
|
||||
|
||||
This is not a full rewrite to pytest style tests, it just changes the
|
||||
minimum to allow pytest to run the existing tests.
|
||||
|
||||
Resolves #72
|
||||
---
|
||||
.github/workflows/pythonpackage.yml | 6 +++---
|
||||
Makefile | 3 +--
|
||||
README.rst | 4 ++--
|
||||
gitdb.pro.user | 3 +--
|
||||
gitdb/test/db/test_pack.py | 4 ++--
|
||||
gitdb/test/lib.py | 4 ++--
|
||||
gitdb/test/test_pack.py | 4 ++--
|
||||
7 files changed, 13 insertions(+), 15 deletions(-)
|
||||
|
||||
diff --git a/gitdb/test/db/test_pack.py b/gitdb/test/db/test_pack.py
|
||||
index ff96a58..4539f42 100644
|
||||
--- a/gitdb/test/db/test_pack.py
|
||||
+++ b/gitdb/test/db/test_pack.py
|
||||
@@ -16,7 +16,7 @@
|
||||
import random
|
||||
import sys
|
||||
|
||||
-from nose.plugins.skip import SkipTest
|
||||
+import pytest
|
||||
|
||||
class TestPackDB(TestDBBase):
|
||||
|
||||
@@ -24,7 +24,7 @@ class TestPackDB(TestDBBase):
|
||||
@with_packs_rw
|
||||
def test_writing(self, path):
|
||||
if sys.platform == "win32":
|
||||
- raise SkipTest("FIXME: Currently fail on windows")
|
||||
+ pytest.skip("FIXME: Currently fail on windows")
|
||||
|
||||
pdb = PackedDB(path)
|
||||
|
||||
diff --git a/gitdb/test/lib.py b/gitdb/test/lib.py
|
||||
index a04084f..abd4ad5 100644
|
||||
--- a/gitdb/test/lib.py
|
||||
+++ b/gitdb/test/lib.py
|
||||
@@ -65,8 +65,8 @@ def skip_on_travis_ci(func):
|
||||
@wraps(func)
|
||||
def wrapper(self, *args, **kwargs):
|
||||
if 'TRAVIS' in os.environ:
|
||||
- import nose
|
||||
- raise nose.SkipTest("Cannot run on travis-ci")
|
||||
+ import pytest
|
||||
+ pytest.skip("Cannot run on travis-ci")
|
||||
# end check for travis ci
|
||||
return func(self, *args, **kwargs)
|
||||
# end wrapper
|
||||
diff --git a/gitdb/test/test_pack.py b/gitdb/test/test_pack.py
|
||||
index 4b01741..f946197 100644
|
||||
--- a/gitdb/test/test_pack.py
|
||||
+++ b/gitdb/test/test_pack.py
|
||||
@@ -26,7 +26,7 @@
|
||||
from gitdb.exc import UnsupportedOperation
|
||||
from gitdb.util import to_bin_sha
|
||||
|
||||
-from nose import SkipTest
|
||||
+import pytest
|
||||
|
||||
import os
|
||||
import tempfile
|
||||
@@ -246,4 +246,4 @@ def rewind_streams():
|
||||
def test_pack_64(self):
|
||||
# TODO: hex-edit a pack helping us to verify that we can handle 64 byte offsets
|
||||
# of course without really needing such a huge pack
|
||||
- raise SkipTest()
|
||||
+ pytest.skip('not implemented')
|
||||
@@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="GitDB is a pure-Python git object database"
|
||||
HOMEPAGE="
|
||||
https://github.com/gitpython-developers/gitdb/
|
||||
https://pypi.org/project/gitdb/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/smmap-3.0.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-vcs/git
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-nose-to-pytest.patch"
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_test() {
|
||||
local i
|
||||
|
||||
mkdir "${T}"/repo || die
|
||||
cd "${T}"/repo || die
|
||||
|
||||
for (( i = 0; i < 2500; ++i )); do
|
||||
echo "${i}" > file"${i}" || die
|
||||
done
|
||||
|
||||
git init || die
|
||||
git config user.email "you@example.com" || die
|
||||
git config user.name "Your Name" || die
|
||||
git add -A || die
|
||||
git commit -q -m ".." || die
|
||||
git clone --bare "${T}"/repo "${T}"/repo.git || die
|
||||
cd "${S}" || die
|
||||
|
||||
distutils-r1_src_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
#TRAVIS=1 disables performance tests which rely on the gitdb repo
|
||||
local -x TRAVIS=1
|
||||
local -x GITDB_TEST_GIT_REPO_BASE="${T}"/repo.git
|
||||
epytest
|
||||
}
|
||||
Reference in New Issue
Block a user