commit:     bc7c1f1df1b8ac08fa992f065be3e6e7180fbff8
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Fri Oct 28 12:46:31 2022 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Fri Oct 28 12:46:31 2022 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=bc7c1f1d

dev-vcs/datalad: add 0.17.7

Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 dev-vcs/datalad/datalad-0.17.7.ebuild            | 80 ++++++++++++++++++++++++
 dev-vcs/datalad/files/datalad-0.16.1-input.patch | 37 +++++++++++
 dev-vcs/datalad/files/datalad-0.16.1-tests.patch | 10 +++
 3 files changed, 127 insertions(+)

diff --git a/dev-vcs/datalad/datalad-0.17.7.ebuild 
b/dev-vcs/datalad/datalad-0.17.7.ebuild
new file mode 100644
index 000000000..bbcd0c75a
--- /dev/null
+++ b/dev-vcs/datalad/datalad-0.17.7.ebuild
@@ -0,0 +1,80 @@
+# 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..10} )
+inherit distutils-r1
+
+DESCRIPTION="Keep code, data, containers under control with git and git-annex"
+HOMEPAGE="https://github.com/datalad/datalad";
+SRC_URI="https://github.com/datalad/datalad/archive/refs/tags/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test +downloaders +metadata +publish misc"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       app-arch/p7zip
+       app-arch/patool[${PYTHON_USEDEP}]
+       dev-vcs/git-annex
+       dev-python/annexremote[${PYTHON_USEDEP}]
+       >=dev-python/chardet-3.0.4[${PYTHON_USEDEP}]
+       dev-python/distro[${PYTHON_USEDEP}]
+       dev-python/fasteners[${PYTHON_USEDEP}]
+       dev-python/humanize[${PYTHON_USEDEP}]
+       dev-python/iso8601[${PYTHON_USEDEP}]
+       dev-python/platformdirs[${PYTHON_USEDEP}]
+       dev-python/tqdm[${PYTHON_USEDEP}]
+       dev-python/wraps[${PYTHON_USEDEP}]
+       downloaders? (
+               dev-python/boto[${PYTHON_USEDEP}]
+               dev-python/keyring[${PYTHON_USEDEP}]
+               dev-python/keyrings-alt[${PYTHON_USEDEP}]
+               dev-python/msgpack[${PYTHON_USEDEP}]
+               dev-python/requests[${PYTHON_USEDEP}]
+       )
+       metadata? (
+               dev-python/simplejson[${PYTHON_USEDEP}]
+               dev-python/whoosh[${PYTHON_USEDEP}]
+       )
+       misc? (
+               dev-python/argcomplete[${PYTHON_USEDEP}]
+               dev-python/pyperclip[${PYTHON_USEDEP}]
+               dev-python/python-dateutil[${PYTHON_USEDEP}]
+       )
+       publish? (
+               dev-vcs/python-gitlab[${PYTHON_USEDEP}]
+       )
+"
+BEPEND="
+       dev-python/packaging[${PYTHON_USEDEP}]
+       test? (
+               ${RDEPEND}
+               dev-python/beautifulsoup4[${PYTHON_USEDEP}]
+               dev-python/httpretty[${PYTHON_USEDEP}]
+               dev-python/mypy[${PYTHON_USEDEP}]
+               dev-python/vcrpy[${PYTHON_USEDEP}]
+       )
+"
+# also wants base RDEPEND:
+# looseversion
+# Also wants test dep:
+# dev-python/types-requests
+# dev-python/types-python-dateutil
+
+EPYTEST_DESELECT=(
+       # Reported upstream: https://github.com/datalad/datalad/issues/6870
+       
datalad/local/tests/test_gitcredential.py::test_datalad_credential_helper
+)
+
+distutils_enable_tests pytest
+
+python_test() {
+       local -x DATALAD_TESTS_NONETWORK=1
+       # see test groups in "tox.ini"
+       epytest -k "not turtle and not slow and not usecase"
+}

diff --git a/dev-vcs/datalad/files/datalad-0.16.1-input.patch 
b/dev-vcs/datalad/files/datalad-0.16.1-input.patch
index beb539b5d..97d16e70a 100644
--- a/dev-vcs/datalad/files/datalad-0.16.1-input.patch
+++ b/dev-vcs/datalad/files/datalad-0.16.1-input.patch
@@ -92,3 +92,40 @@ index 09387a70d..6dc0e0be4 100644
  @with_tempfile
  def test_credential_cycle(path):
  
+--- a/datalad/distribution/tests/test_siblings.py      2022-10-24 
16:06:18.740935265 -0400
++++ b/datalad/distribution/tests/test_siblings.py      2022-10-24 
16:08:43.054322297 -0400
+@@ -9,6 +9,8 @@
+
+ """
+
++from nose import SkipTest
++
+ from datalad.support.path import (
+     basename,
+     join as opj,
+@@ -504,6 +504,7 @@
+ @with_tempfile(mkdir=True)
+ @serve_path_via_http
+ def test_as_common_datasource(testbed, viapath, viaurl, remotepath, url):
++    raise SkipTest("Known to fail in Portage environment.")
+     ds = Dataset(remotepath).create()
+     (ds.pathobj / 'testfile').write_text('likemagic')
+     (ds.pathobj / 'testfile2').write_text('likemagic2')
+--- a/datalad/local/tests/test_add_archive_content.py
++++ b/datalad/local/tests/test_add_archive_content.py
+@@ -13,6 +13,7 @@
+ __docformat__ = 'restructuredtext'
+
+ import os
++from nose import SkipTest
+ from glob import glob
+ from os import unlink
+ from os.path import (
+@@ -514,6 +515,7 @@
+         assert_false(lexists(self.ds.pathobj / '1.tar'))
+
+     def test_add_archive_leading_dir(self):
++        raise SkipTest("Known to fail in Portage environment.")
+         import os
+         os.mkdir(self.ds.pathobj / 'sub')
+         f123 = Path('sub') / '123.tar'

diff --git a/dev-vcs/datalad/files/datalad-0.16.1-tests.patch 
b/dev-vcs/datalad/files/datalad-0.16.1-tests.patch
new file mode 100644
index 000000000..e6231b7f1
--- /dev/null
+++ b/dev-vcs/datalad/files/datalad-0.16.1-tests.patch
@@ -0,0 +1,10 @@
+--- a/datalad-0.16.1/datalad/distribution/tests/test_siblings.py       
2022-10-24 16:06:18.740935265 -0400
++++ b/datalad-0.16.1/datalad/distribution/tests/test_siblings.py       
2022-10-24 16:08:43.054322297 -0400
+@@ -504,6 +504,7 @@
+ @with_tempfile(mkdir=True)
+ @serve_path_via_http
+ def test_as_common_datasource(testbed, viapath, viaurl, remotepath, url):
++    raise SkipTest("Known to fail in Portage environment.")
+     ds = Dataset(remotepath).create()
+     (ds.pathobj / 'testfile').write_text('likemagic')
+     (ds.pathobj / 'testfile2').write_text('likemagic2')

Reply via email to