diff options
Diffstat (limited to 'dev-python/wraps')
-rw-r--r-- | dev-python/wraps/Manifest | 1 | ||||
-rw-r--r-- | dev-python/wraps/files/wraps-0.1.0-poetry_groups.patch | 63 | ||||
-rw-r--r-- | dev-python/wraps/metadata.xml | 16 | ||||
-rw-r--r-- | dev-python/wraps/wraps-0.2.0.ebuild | 28 |
4 files changed, 108 insertions, 0 deletions
diff --git a/dev-python/wraps/Manifest b/dev-python/wraps/Manifest new file mode 100644 index 000000000..44510a1dd --- /dev/null +++ b/dev-python/wraps/Manifest @@ -0,0 +1 @@ +DIST wraps-0.2.0.tar.gz 25308 BLAKE2B b68359d34995f7bc39535e97458807a5d55e3547124ccb8b34f9cd34fe1d3b38921a3a0c16df031410022f74d414aba97af9e9f60a20fb635428030bc400b130 SHA512 daf72785c3215db06f4bf06704f02c7ecfd1ef5c58dbf5c50b2dee14755d73b519f8a13be9658bf825c296689d9b3effd08aec4254779812583c1024522751f0 diff --git a/dev-python/wraps/files/wraps-0.1.0-poetry_groups.patch b/dev-python/wraps/files/wraps-0.1.0-poetry_groups.patch new file mode 100644 index 000000000..c1b2ccd3e --- /dev/null +++ b/dev-python/wraps/files/wraps-0.1.0-poetry_groups.patch @@ -0,0 +1,63 @@ +--- a/pyproject.toml 2022-06-28 11:08:09.624127900 -0400 ++++ b/pyproject.toml 2022-07-11 16:33:14.810411482 -0400 +@@ -36,31 +36,6 @@ + + typing-extensions = ">= 4.3.0" + +-[tool.poetry.group.format] +-optional = true +- +-[tool.poetry.group.format.dependencies] +-black = "22.8.0" +- +-[tool.poetry.group.format.dependencies.isort] +-version = "5.10.1" +-python = "^3.7" +- +-[tool.poetry.group.check] +-optional = true +- +-[tool.poetry.group.check.dependencies] +-mypy = "0.971" +- +-[tool.poetry.group.test] +-optional = true +- +-[tool.poetry.group.test.dependencies] +-pytest = "7.1.3" +-pytest-cov = "3.0.0" +-anyio = "3.6.1" +-trio = "0.21.0" +- + [tool.poetry.group.docs] + optional = true + +@@ -67,29 +44,6 @@ + line_length = 100 + profile = "black" + +-[tool.pytest.ini_options] +-addopts = "--cov wraps" +-testpaths = ["tests"] +- +-[tool.coverage.run] +-source = ["wraps"] +- +-[tool.coverage.report] +-ignore_errors = true +-exclude_lines = [ +- "pragma: never", +- "pragma: no cover", +- "if TYPE_CHECKING", +- "@overload", +- "@abstractmethod", +- "raise NotImplementedError", +- "raise AssertionError", +- "def __repr__", +-] +- +-[tool.coverage.html] +-directory = "coverage" +- + [tool.mypy] + show_column_numbers = true diff --git a/dev-python/wraps/metadata.xml b/dev-python/wraps/metadata.xml new file mode 100644 index 000000000..d94ee3bee --- /dev/null +++ b/dev-python/wraps/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>gentoo@chymera.eu</email> + <name>Horea Christian</name> + </maintainer> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <upstream> + <remote-id type="github">nekitdev/wraps</remote-id> + <remote-id type="pypi">wraps</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/wraps/wraps-0.2.0.ebuild b/dev-python/wraps/wraps-0.2.0.ebuild new file mode 100644 index 000000000..b06b511cd --- /dev/null +++ b/dev-python/wraps/wraps-0.2.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{10..11} ) +inherit distutils-r1 pypi + +DESCRIPTION=" Meaningful and safe wrapping types. " +HOMEPAGE="https://github.com/nekitdev/wraps" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RESTRICT="test" +# package does not have test suite (yet) + +RDEPEND=" + >=dev-python/attrs-21.4.0[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.2.0[${PYTHON_USEDEP}] + " + +PATCHES=( + "${FILESDIR}/${PN}-0.1.0-poetry_groups.patch" +) + +distutils_enable_tests pytest |