[gentoo-commits] proj/sci:master commit in: dev-python/fscacher/

2023-05-02 Thread Horea Christian
commit: 9b99b3e8e353dc5225a67d170deeae827cb16171
Author: Horea Christian  chymera  eu>
AuthorDate: Tue May  2 22:57:05 2023 +
Commit: Horea Christian  gmail  com>
CommitDate: Tue May  2 22:57:05 2023 +
URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=9b99b3e8

dev-python/fscacher: update SRC_URI

Signed-off-by: Horea Christian  chymera.eu>

 dev-python/fscacher/fscacher-0.1.4.ebuild | 2 +-
 dev-python/fscacher/fscacher-0.2.0.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/fscacher/fscacher-0.1.4.ebuild 
b/dev-python/fscacher/fscacher-0.1.4.ebuild
index 476dcbf5b..50dcd6914 100644
--- a/dev-python/fscacher/fscacher-0.1.4.ebuild
+++ b/dev-python/fscacher/fscacher-0.1.4.ebuild
@@ -8,7 +8,7 @@ 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"
+SRC_URI="https://github.com/con/fscacher/archive/refs/tags/${PV}.tar.gz -> 
${P}.gh.tar.gz"
 
 SLOT="0"
 LICENSE="MIT"

diff --git a/dev-python/fscacher/fscacher-0.2.0.ebuild 
b/dev-python/fscacher/fscacher-0.2.0.ebuild
index 91887f218..f466d0675 100644
--- a/dev-python/fscacher/fscacher-0.2.0.ebuild
+++ b/dev-python/fscacher/fscacher-0.2.0.ebuild
@@ -8,7 +8,7 @@ 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"
+SRC_URI="https://github.com/con/fscacher/archive/refs/tags/${PV}.tar.gz -> 
${P}.gh.tar.gz"
 
 SLOT="0"
 LICENSE="MIT"



[gentoo-commits] proj/sci:master commit in: dev-python/fscacher/

2023-05-02 Thread Horea Christian
commit: 4758a9b049b463d8a4b8f9feb84d9fe925e71d95
Author: Horea Christian  chymera  eu>
AuthorDate: Tue May  2 22:56:14 2023 +
Commit: Horea Christian  gmail  com>
CommitDate: Tue May  2 22:56:14 2023 +
URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=4758a9b0

dev-python/fscacher: enable py3.11

Signed-off-by: Horea Christian  chymera.eu>

 dev-python/fscacher/fscacher-0.1.4.ebuild | 4 ++--
 dev-python/fscacher/fscacher-0.2.0.ebuild | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-python/fscacher/fscacher-0.1.4.ebuild 
b/dev-python/fscacher/fscacher-0.1.4.ebuild
index b15c37615..476dcbf5b 100644
--- a/dev-python/fscacher/fscacher-0.1.4.ebuild
+++ b/dev-python/fscacher/fscacher-0.1.4.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_10 )
+PYTHON_COMPAT=( python3_{10..11} )
 inherit distutils-r1
 
 DESCRIPTION="Cache results of operations on heavy file trees"

diff --git a/dev-python/fscacher/fscacher-0.2.0.ebuild 
b/dev-python/fscacher/fscacher-0.2.0.ebuild
index 8bb00f6f4..91887f218 100644
--- a/dev-python/fscacher/fscacher-0.2.0.ebuild
+++ b/dev-python/fscacher/fscacher-0.2.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_10 )
+PYTHON_COMPAT=( python3_{10..11} )
 inherit distutils-r1
 
 DESCRIPTION="Cache results of operations on heavy file trees"



[gentoo-commits] proj/sci:master commit in: dev-python/fscacher/files/, dev-python/fscacher/

2022-03-25 Thread Horea Christian
commit: 75c40a2ccaa0ab51b5d75c9a6ba9412b8e67ce76
Author: Horea Christian  chymera  eu>
AuthorDate: Fri Mar 25 15:40:14 2022 +
Commit: Horea Christian  gmail  com>
CommitDate: Fri Mar 25 15:40:14 2022 +
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  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 0..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 0..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 0..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 0..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 0..460ce9d09
--- /dev/null
+++ b/dev-python/fscacher/metadata.xml
@@ -0,0 +1,23 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   gen...@chymera.eu
+   Horea Christian
+   
+   
+   s...@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,
+   
+   
+   con/fscacher
+   fscacher
+   
+