sci-biology/bids-schemacode: treeclean
Signed-off-by: Horea Christian <chr@chymera.eu>
This commit is contained in:
parent
529f16db81
commit
d8221f4093
@ -1,36 +0,0 @@
|
||||
# Copyright 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 git-r3
|
||||
|
||||
DESCRIPTION="A Python library for working with the BIDS schema"
|
||||
HOMEPAGE="https://github.com/bids-standard/bids-specification"
|
||||
EGIT_REPO_URI="https://github.com/bids-standard/bids-specification.git"
|
||||
EGIT_COMMIT="3537e9edbc81545614d3ee605c398361099b6977"
|
||||
|
||||
LICENSE="CC-BY-SA-4.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="dev-python/tabulate"
|
||||
DEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}/${P}-nonetwork.patch"
|
||||
cp -rfL tools/schemacode ..
|
||||
rm * -rf
|
||||
mv ../schemacode/* .
|
||||
default
|
||||
}
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
export SCHEMACODE_TESTS_NONETWORK=1
|
||||
epytest
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
--- a/tools/schemacode/schemacode/tests/test_validator.py
|
||||
+++ b/tools/schemacode/schemacode/tests/test_validator.py
|
||||
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
+import pytest
|
||||
|
||||
|
||||
def test__add_entity():
|
||||
@@ -295,6 +296,10 @@ def test_write_report(tmp_path):
|
||||
assert report_text == expected_report_text
|
||||
|
||||
|
||||
+@pytest.mark.skipif(
|
||||
+ os.environ.get("SCHEMACODE_TESTS_NONETWORK") is not None,
|
||||
+ reason="no network",
|
||||
+)
|
||||
def test_bids_datasets(bids_examples, tmp_path):
|
||||
from schemacode.validator import validate_bids
|
||||
|
@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>chr@chymera.eu</email>
|
||||
<name>Horea Christian</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>sci@gentoo.org</email>
|
||||
<name>Gentoo Science Project</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -4,14 +4,15 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit distutils-r1 git-r3
|
||||
MY_HASH="54e7990387166fd206cb1f4ec4eb2187b42c08b3"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A Python library for working with the BIDS schema"
|
||||
HOMEPAGE="https://github.com/bids-standard/bids-specification"
|
||||
EGIT_REPO_URI="https://github.com/bids-standard/bids-specification.git"
|
||||
EGIT_COMMIT="54e7990387166fd206cb1f4ec4eb2187b42c08b3"
|
||||
SRC_URI="https://github.com/bids-standard/bids-specification/archive/${MY_HASH}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="CC-BY-SA-4.0"
|
||||
SLOT="0"
|
||||
@ -20,7 +21,7 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
RDEPEND="dev-python/tabulate"
|
||||
DEPEND=""
|
||||
|
||||
S="${S}/tools/schemacode"
|
||||
S="${WORKDIR}/bids-specification-${MY_HASH}/tools/schemacode"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user