commit: f373f8829169bcb92b7d80e2c8abfd36727b9622 Author: Horea Christian <chr <AT> chymera <DOT> eu> AuthorDate: Thu May 9 22:07:11 2024 +0000 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> CommitDate: Thu May 9 22:07:11 2024 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=f373f882
dev-python/methodtools: new package, add 0.4.7 Signed-off-by: Horea Christian <chr <AT> chymera.eu> .../files/methodtools-0.4.7-nocov.patch | 9 ++++++++ dev-python/methodtools/metadata.xml | 16 +++++++++++++++ dev-python/methodtools/methodtools-0.4.7.ebuild | 24 ++++++++++++++++++++++ 3 files changed, 49 insertions(+) diff --git a/dev-python/methodtools/files/methodtools-0.4.7-nocov.patch b/dev-python/methodtools/files/methodtools-0.4.7-nocov.patch new file mode 100644 index 000000000..e2ff8a4c1 --- /dev/null +++ b/dev-python/methodtools/files/methodtools-0.4.7-nocov.patch @@ -0,0 +1,9 @@ +--- a/setup.cfg 2023-02-05 08:15:17.000000000 -0500 ++++ b/setup.cfg 2024-05-06 11:19:57.822360100 -0400 +@@ -35,6 +35,5 @@ + [aliases] + test=pytest + [tool:pytest] +-addopts=--verbose --cov-config .coveragerc --cov methodtools + python_files = tests/test*.py + norecursedirs=.git py ci diff --git a/dev-python/methodtools/metadata.xml b/dev-python/methodtools/metadata.xml new file mode 100644 index 000000000..e85efd512 --- /dev/null +++ b/dev-python/methodtools/metadata.xml @@ -0,0 +1,16 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Horea Christian</name> + </maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Science Project</name> + </maintainer> + <upstream> + <remote-id type="github">youknowone/methodtools</remote-id> + <remote-id type="pypi">methodtools</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/methodtools/methodtools-0.4.7.ebuild b/dev-python/methodtools/methodtools-0.4.7.ebuild new file mode 100644 index 000000000..79e7739c5 --- /dev/null +++ b/dev-python/methodtools/methodtools-0.4.7.ebuild @@ -0,0 +1,24 @@ +# 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_{10..12} ) +inherit distutils-r1 + +DESCRIPTION="Expand functools features to methods, classmethods, staticmethods" +HOMEPAGE="https://github.com/youknowone/methodtools" +# Not using PyPI archive because it misses test files: +# https://github.com/youknowone/methodtools/issues/24 +SRC_URI="https://github.com/youknowone/methodtools/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-python/wirerope[${PYTHON_USEDEP}]" + +PATCHES=( "${FILESDIR}/${P}-nocov.patch" ) + +distutils_enable_tests pytest
