commit: 75c40a2ccaa0ab51b5d75c9a6ba9412b8e67ce76 Author: Horea Christian <chr <AT> chymera <DOT> eu> AuthorDate: Fri Mar 25 15:40:14 2022 +0000 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> CommitDate: Fri Mar 25 15:40:14 2022 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=75c40a2c
dev-python/fscacher: new package (DANDI stack) Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Horea Christian <chr <AT> chymera.eu> .../fscacher/files/fscacher-0.1.4-coverage.patch | 9 ++++++ .../fscacher/files/fscacher-0.2.0-coverage.patch | 10 +++++++ dev-python/fscacher/fscacher-0.1.4.ebuild | 32 ++++++++++++++++++++++ dev-python/fscacher/fscacher-0.2.0.ebuild | 31 +++++++++++++++++++++ dev-python/fscacher/metadata.xml | 23 ++++++++++++++++ 5 files changed, 105 insertions(+) diff --git a/dev-python/fscacher/files/fscacher-0.1.4-coverage.patch b/dev-python/fscacher/files/fscacher-0.1.4-coverage.patch new file mode 100644 index 000000000..ce87d33b3 --- /dev/null +++ b/dev-python/fscacher/files/fscacher-0.1.4-coverage.patch @@ -0,0 +1,9 @@ +--- a/tox.ini 2021-09-27 01:00:33.935464308 -0400 ++++ b/tox.ini 2021-09-27 02:48:34.349729243 -0400 +@@ -27,7 +27,6 @@ + asv run {posargs} + + [pytest] +-addopts = --cov=fscacher --no-cov-on-fail + filterwarnings = error + norecursedirs = test/data diff --git a/dev-python/fscacher/files/fscacher-0.2.0-coverage.patch b/dev-python/fscacher/files/fscacher-0.2.0-coverage.patch new file mode 100644 index 000000000..c5c7f85e2 --- /dev/null +++ b/dev-python/fscacher/files/fscacher-0.2.0-coverage.patch @@ -0,0 +1,10 @@ +--- a/tox.ini 2021-09-27 01:00:33.935464308 -0400 ++++ b/tox.ini 2021-09-27 02:48:34.349729243 -0400 +@@ -31,7 +31,6 @@ + asv run --strict {posargs} HEAD^1..HEAD + + [pytest] +-addopts = --cov=fscacher --no-cov-on-fail + filterwarnings = + error + ignore:The distutils package is deprecated:DeprecationWarning:joblib diff --git a/dev-python/fscacher/fscacher-0.1.4.ebuild b/dev-python/fscacher/fscacher-0.1.4.ebuild new file mode 100644 index 000000000..3f55c8604 --- /dev/null +++ b/dev-python/fscacher/fscacher-0.1.4.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="Cache results of operations on heavy file trees" +HOMEPAGE="https://github.com/con/fscacher" +SRC_URI="https://github.com/con/fscacher/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +RESTRICT="test" + +RDEPEND=" + dev-python/appdirs[${PYTHON_USEDEP}] + dev-python/joblib[${PYTHON_USEDEP}] +" +DEPEND=" + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-0.1.4-coverage.patch" +) + +distutils_enable_tests pytest diff --git a/dev-python/fscacher/fscacher-0.2.0.ebuild b/dev-python/fscacher/fscacher-0.2.0.ebuild new file mode 100644 index 000000000..bb632800e --- /dev/null +++ b/dev-python/fscacher/fscacher-0.2.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="Cache results of operations on heavy file trees" +HOMEPAGE="https://github.com/con/fscacher" +SRC_URI="https://github.com/con/fscacher/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/appdirs[${PYTHON_USEDEP}] + dev-python/joblib[${PYTHON_USEDEP}] +" +DEPEND=" + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-0.2.0-coverage.patch" +) + +distutils_enable_tests pytest diff --git a/dev-python/fscacher/metadata.xml b/dev-python/fscacher/metadata.xml new file mode 100644 index 000000000..460ce9d09 --- /dev/null +++ b/dev-python/fscacher/metadata.xml @@ -0,0 +1,23 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>gen...@chymera.eu</email> + <name>Horea Christian</name> + </maintainer> + <maintainer type="project"> + <email>s...@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription lang="en"> + fscacher provides a cache and decorator for memoizing functions whose + outputs depend upon the contents of a file argument. If you have a + function `foo()` that takes a file path as its first argument, and if + the behavior of `foo()` is pure in the contents of the path and the + values of its other arguments, fscacher can help cache that function, + </longdescription> + <upstream> + <remote-id type="github">con/fscacher</remote-id> + <remote-id type="pypi">fscacher</remote-id> + </upstream> +</pkgmetadata>