From e5419f526420ded5af0746e6103e004d19f4356e Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Tue, 5 Mar 2024 22:00:23 +0000 Subject: dev-python/construct-classes: new package, add 0.1.2 --- dev-python/construct-classes/Manifest | 1 + .../construct-classes-0.1.2.ebuild | 23 +++++++++++++++++++ ...clude-license-and-documentation-for-sdist.patch | 26 ++++++++++++++++++++++ dev-python/construct-classes/metadata.xml | 12 ++++++++++ 4 files changed, 62 insertions(+) create mode 100644 dev-python/construct-classes/Manifest create mode 100644 dev-python/construct-classes/construct-classes-0.1.2.ebuild create mode 100644 dev-python/construct-classes/files/0.1.2-Only-include-license-and-documentation-for-sdist.patch create mode 100644 dev-python/construct-classes/metadata.xml (limited to 'dev-python') diff --git a/dev-python/construct-classes/Manifest b/dev-python/construct-classes/Manifest new file mode 100644 index 00000000..1c3f0bd1 --- /dev/null +++ b/dev-python/construct-classes/Manifest @@ -0,0 +1 @@ +DIST construct-classes-0.1.2.tar.gz 5018 BLAKE2B 82518b0fe3a36a12fbd496011d4be3ea94ae413b4d2011dacc3bb533c0d5ff1f01fe1b52ccab72005c9604a848f3d0785be6cd522694a81133a5ec49abb37aed SHA512 325fc1114d672a679323f90893298078f6f9793806da072bacc264856cc97e53b78d94e51b5767fde059eec6a2f520ee0c21d9b508897de716a17a01ea37248f diff --git a/dev-python/construct-classes/construct-classes-0.1.2.ebuild b/dev-python/construct-classes/construct-classes-0.1.2.ebuild new file mode 100644 index 00000000..d0f23894 --- /dev/null +++ b/dev-python/construct-classes/construct-classes-0.1.2.ebuild @@ -0,0 +1,23 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..12} ) +DISTUTILS_USE_PEP517=poetry +PYPI_NO_NORMALIZE=1 + +inherit distutils-r1 pypi + +DESCRIPTION="Parse your binary structs into dataclasses" +HOMEPAGE="https://pypi.org/project/construct-classes" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +PATCHES=( + "${FILESDIR}/${PV}-Only-include-license-and-documentation-for-sdist.patch" +) + +distutils_enable_tests pytest diff --git a/dev-python/construct-classes/files/0.1.2-Only-include-license-and-documentation-for-sdist.patch b/dev-python/construct-classes/files/0.1.2-Only-include-license-and-documentation-for-sdist.patch new file mode 100644 index 00000000..f7f06631 --- /dev/null +++ b/dev-python/construct-classes/files/0.1.2-Only-include-license-and-documentation-for-sdist.patch @@ -0,0 +1,26 @@ +From 3bae92532a67c02ca99a81c6ff57f5c4e83ec218 Mon Sep 17 00:00:00 2001 +From: Jonny Heggheim +Date: Fri, 18 Nov 2022 15:32:20 +0100 +Subject: [PATCH] Only include license and documentation for sdist + +--- + pyproject.toml | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index fabeef1ae36d..02d846a5b23e 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -20,7 +20,11 @@ homepage = "https://github.com/matejcik/construct-classes" + license = "MIT" + repository = "https://github.com/matejcik/construct-classes" + readme = "README.rst" +-include = ["CHANGELOG.rst", "LICENSE", "README.rst"] ++include = [ ++ { path = "CHANGELOG.rst", format = "sdist" }, ++ { path = "LICENSE", format = "sdist" }, ++ { path = "README.rst", format = "sdist" } ++] + + [tool.poetry.dependencies] + python = ">=3.6.2,<4.0" diff --git a/dev-python/construct-classes/metadata.xml b/dev-python/construct-classes/metadata.xml new file mode 100644 index 00000000..0fcbbb77 --- /dev/null +++ b/dev-python/construct-classes/metadata.xml @@ -0,0 +1,12 @@ + + + + + bertrand@jacquin.bzh + Bertrand Jacquin + + + matejcik/construct-classes + construct-classes + + -- cgit v1.2.3