commit:     2b3de3333c9be2fbef574a49ea0e61c00974b102
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 30 19:12:46 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon Dec 30 19:12:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b3de333

dev-python/pythonnet: bump to 3.0.5

Closes: https://bugs.gentoo.org/947193
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-python/pythonnet/Manifest               |   1 +
 dev-python/pythonnet/pythonnet-3.0.5.ebuild | 286 ++++++++++++++++++++++++++++
 2 files changed, 287 insertions(+)

diff --git a/dev-python/pythonnet/Manifest b/dev-python/pythonnet/Manifest
index e177b6b01e9c..c660a11dd3e5 100644
--- a/dev-python/pythonnet/Manifest
+++ b/dev-python/pythonnet/Manifest
@@ -49,6 +49,7 @@ DIST nunit3testadapter.3.17.0.nupkg 520006 BLAKE2B 
a8cd4eddd4a0dda614f17591b33e2
 DIST nunit3testadapter.4.6.0.nupkg 512620 BLAKE2B 
ab251ac7d56407d35cfb352956ae153f4052a4e6c014a50becdc31ed9b2c325d0b6fcb61752e3b11e435b61c86b1f7ea51415e72f1ae894dd35acb17410fb23b
 SHA512 
4e489dea089cbf32e01b74105003eaf64a11e11a488aefba50553f856afde2940a2659d0017055b8a86a7aa79247d5572bee41b497ceb0efe7074e8b9c86294a
 DIST perfolizer.0.2.1.nupkg 51987 BLAKE2B 
2e01e7673ae420136e6194d89c406fca31af85b7f90b460a53ebbe0fef82c38ba3be3821d9e1a7b9b2bf5d117bb9f2f4f91767796bffb51ac14e5cb9f472d873
 SHA512 
9db50cdcf13a85737c275a0aa3dc4a98b97e7d23e7aca1c9b27df28e454b0d4587315bd62f7181dc03e0257a83d79c7af2e90733eafda70afe5a956c92c20a9a
 DIST pythonnet-3.0.4.gh.tar.gz 421787 BLAKE2B 
2e73192c21810878f7eb9da209dadb41604815f6f1d57bb1585a83e87f522f34ad92aae9dfc26f90e36926aba8bbc1686943d4c5f4928c64ceceaf1a339249a4
 SHA512 
82a15fd4cd239bd79fb20c406571e91bc419e4b4d7e888fcee89e322213c86af64543f6910ac71c171a9bf1a6cfedd27c5c71997978c8327fc81a532f4328afb
+DIST pythonnet-3.0.5.gh.tar.gz 370060 BLAKE2B 
2f095e8e97cdb70ce31f76918c6bdd99e84a8b20108faa54188c2891104dc6a9882eba3d4192d9fc356c435ddfd81d15b5ea0a638b5cebace5bbcd50c8d73998
 SHA512 
235ca48e4375d880a7b38142fa90e9a84b5711565b45fa806bcd23c4b730d314f2e4b166c6fd5752f394832187285498b8c3c226706b4e7c87135c87fbe19eb4
 DIST runtime.any.system.collections.4.3.0.nupkg 107990 BLAKE2B 
802e2ae919a4834150d825ac086d8f47e2185e31b60b45f3dbe5f63b1d714953d9faaa7d8fe4cc25a1ea8495c4f8fd925bb198eea0b67e594a8558238b18196c
 SHA512 
9f8833176c139b71a58694ae401c5aec209a63227be07c7ab559bef772082bd1f6cc38ba2949cb1c8e5c5514ad9f4ff51859838dc2f28191f8bb7ae611a50239
 DIST runtime.any.system.diagnostics.tools.4.3.0.nupkg 43707 BLAKE2B 
33d1c57eb4e50c06488da02ab2bb1b8dba9948026053e662986af05b74045c014e76815edbb588f10d6a904de22e4c50177f31f3fac36d159b9af361a4cb2b62
 SHA512 
bd257401e179d4b836a4a2f7236a0e303ae997d2453c946bf272036620a0b14e85e5f42c229332930a954655ab4cae359d191a3e3d9746df09535a651367764c
 DIST runtime.any.system.diagnostics.tracing.4.3.0.nupkg 49844 BLAKE2B 
e35998e1369bacc9fa90f74825e021c62b9c671ac9b7cfad4e9b455656bd40e968f348ba8943ed670c74c22bddb1c94ccf5058885233607e3c73a5c7d2a56688
 SHA512 
0b480d21e23c38965222be7fa1e1a0c7e444cebdf400d1db8d3ac609f893b82d78c5d8b271da61808b7b179dd6466a0090bd807fc2d35020f93a00f0213bb436

diff --git a/dev-python/pythonnet/pythonnet-3.0.5.ebuild 
b/dev-python/pythonnet/pythonnet-3.0.5.ebuild
new file mode 100644
index 000000000000..2b48e8b70a53
--- /dev/null
+++ b/dev-python/pythonnet/pythonnet-3.0.5.ebuild
@@ -0,0 +1,286 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517="setuptools"
+PYTHON_COMPAT=( python3_{11..13} )
+
+DOTNET_PKG_COMPAT="9.0"
+NUGETS="
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl@4.3.0
[email protected]
[email protected]
+runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl@4.3.0
+runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl@4.3.0
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
+"
+
+inherit check-reqs dotnet-pkg distutils-r1 readme.gentoo-r1
+
+DESCRIPTION="Nearly seamless integration with the .NET Common Language Runtime"
+HOMEPAGE="https://pythonnet.github.io/
+       https://github.com/pythonnet/pythonnet/";
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/pythonnet/${PN}.git";
+else
+       
SRC_URI="https://github.com/pythonnet/${PN}/archive/refs/tags/v${PV}.tar.gz
+               -> ${P}.gh.tar.gz"
+
+       KEYWORDS="~amd64"
+fi
+
+SRC_URI+=" ${NUGET_URIS} "
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="
+       dev-python/clr-loader[${PYTHON_USEDEP}]
+       dev-python/pycparser[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       ${RDEPEND}
+       test? (
+               dev-python/psutil[${PYTHON_USEDEP}]
+       )
+"
+
+CHECKREQS_DISK_BUILD="1500M"
+EPYTEST_DESELECT=(
+       'tests/test_codec.py::test_sequence'
+       'tests/test_engine.py::test_import_module'
+       'tests/test_engine.py::test_run_string'
+       
'tests/test_method.py::test_getting_method_overloads_binding_does_not_leak_memory'
+       'tests/test_method.py::test_params_array_overloaded_failing'
+       'tests/test_module.py::test_assembly_load_recursion_bug'
+       'tests/test_module.py::test_implicit_assembly_load'
+)
+PATCHES=(
+       "${FILESDIR}/${PN}-3.0.3-no-sourcelink.patch"
+)
+
+DOCS=( AUTHORS.md CHANGELOG.md README.rst )
+DOC_CONTENTS="Python.NET defaults to the mono runtime, not .NET SDK's coreclr.
+You can workaround this either by exporting PYTHONNET_RUNTIME=coreclr or some
+Python code. Please read the documentation on
+https://pythonnet.github.io/pythonnet/python.html";
+
+distutils_enable_tests pytest
+
+pkg_setup() {
+       check-reqs_pkg_setup
+       dotnet-pkg_pkg_setup
+}
+
+src_prepare() {
+       nuget_writeconfig "$(pwd)/"
+
+       distutils-r1_src_prepare
+}
+
+src_configure() {
+       dotnet-pkg_src_configure
+       distutils-r1_src_configure
+}
+
+src_install() {
+       distutils-r1_src_install
+
+       readme.gentoo_create_doc
+}
+
+python_test() {
+       local -x PYTHONNET_RUNTIME="coreclr"
+
+       epytest --runtime coreclr
+}
+
+pkg_postinst() {
+       readme.gentoo_print_elog
+}

Reply via email to