diff --git a/dev-python/fscacher/ChangeLog b/dev-python/fscacher/ChangeLog new file mode 100644 index 0000000..4ee9d90 --- /dev/null +++ b/dev-python/fscacher/ChangeLog @@ -0,0 +1,5 @@ +*fscacher-0.1.4 (27 Sep 2021) + + 27 Sep 2021; +files/fscacher-0.1.4-coverage.patch, + +fscacher-0.1.4.ebuild, +metadata.xml: + dev-python/fscacher: new package (DANDI stack) diff --git a/dev-python/fscacher/Manifest b/dev-python/fscacher/Manifest new file mode 100644 index 0000000..2488e2f --- /dev/null +++ b/dev-python/fscacher/Manifest @@ -0,0 +1 @@ +DIST fscacher-0.1.4.tar.gz 35097 SHA256 d3ecd4cdc9cad2ee84a3f37f74b6ef3f87279cd28d2ccf8025893fc581269aca SHA512 e3e85cee4c446552215b6d7092bdc72c31709e05dee7efb52fc6fc985992a3ece338c5a0dee54ed7e6aec797d4b7e2bd77b00f634112134c61f402b604103b5c WHIRLPOOL 177afbe8e616c081e71aff1bdd2ed7081fcc4d648ff4f8549832d513392ea53b61f172753d6ea401d74186f01928ad4710f7c30ca974e6f4024f37818cf23eaa 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 0000000..ce87d33 --- /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/fscacher-0.1.4.ebuild b/dev-python/fscacher/fscacher-0.1.4.ebuild new file mode 100644 index 0000000..4483ea8 --- /dev/null +++ b/dev-python/fscacher/fscacher-0.1.4.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2021 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.1.4-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 0000000..f1ef4bb --- /dev/null +++ b/dev-python/fscacher/metadata.xml @@ -0,0 +1,19 @@ + + + + + gentoo@chymera.eu + Horea Christian + + + sci@gentoo.org + Gentoo Science Project + + + 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, + +