public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pythonfinder/files/, dev-python/pythonfinder/
@ 2023-10-27  3:25 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-10-27  3:25 UTC (permalink / raw
  To: gentoo-commits

commit:     263602cf4bcce73ca6b0b02aa3ba4904274f9fd0
Author:     Oz Tiram <oz.tiram <AT> gmail <DOT> com>
AuthorDate: Sun Sep 24 07:46:51 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 27 03:23:49 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=263602cf

dev-python/pythonfinder: new package, add 2.0.5

Bug: https://bugs.gentoo.org/717666
Signed-off-by: Oz Tiram <oz.tiram <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/pythonfinder/Manifest                   |  1 +
 .../files/2.0.5-fix-import-cached-property.patch   | 13 ++++++++++
 dev-python/pythonfinder/metadata.xml               | 17 +++++++++++++
 dev-python/pythonfinder/pythonfinder-2.0.5.ebuild  | 29 ++++++++++++++++++++++
 4 files changed, 60 insertions(+)

diff --git a/dev-python/pythonfinder/Manifest b/dev-python/pythonfinder/Manifest
new file mode 100644
index 000000000000..6c59aafc1289
--- /dev/null
+++ b/dev-python/pythonfinder/Manifest
@@ -0,0 +1 @@
+DIST pythonfinder-2.0.5.tar.gz 718776 BLAKE2B 32a49dbff143042554d5328b61b612e3bde7a870d53a229303b6bdd2c2ce76457bf6aadcdb215efa332407003c1319215292f3278a2808b669b5b7819af08902 SHA512 4d205c66d7ae36f4f2b8ddab9cce00f4efd5548a41d251470a515b88f8be2dcede75372b9301223822031ae663c6ccf77156531b0dd5d8972424f90641255c5b

diff --git a/dev-python/pythonfinder/files/2.0.5-fix-import-cached-property.patch b/dev-python/pythonfinder/files/2.0.5-fix-import-cached-property.patch
new file mode 100644
index 000000000000..ce1af3244fbd
--- /dev/null
+++ b/dev-python/pythonfinder/files/2.0.5-fix-import-cached-property.patch
@@ -0,0 +1,13 @@
+diff --git a/src/pythonfinder/models/path.py b/src/pythonfinder/models/path.py
+index a8fb807..a933a91 100644
+--- a/src/pythonfinder/models/path.py
++++ b/src/pythonfinder/models/path.py
+@@ -19,7 +19,7 @@ from typing import (
+     Union,
+ )
+ 
+-from cached_property import cached_property
++from functools import cached_property
+ from pydantic import Field, root_validator
+ 
+ from ..environment import (

diff --git a/dev-python/pythonfinder/metadata.xml b/dev-python/pythonfinder/metadata.xml
new file mode 100644
index 000000000000..a9367d2f4b85
--- /dev/null
+++ b/dev-python/pythonfinder/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person" proxied="yes">
+		<email>oz.tiram@gmail.com</email>
+		<name>Oz Tiram</name>
+	</maintainer>
+	<maintainer type="project" proxied="proxy">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<stabilize-allarches/>
+	<upstream>
+		<remote-id type="github">sarugaku/pythonfinder</remote-id>
+		<remote-id type="pypi">pythonfinder</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/dev-python/pythonfinder/pythonfinder-2.0.5.ebuild b/dev-python/pythonfinder/pythonfinder-2.0.5.ebuild
new file mode 100644
index 000000000000..9c74fb3a81be
--- /dev/null
+++ b/dev-python/pythonfinder/pythonfinder-2.0.5.ebuild
@@ -0,0 +1,29 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="PythonFinder: Cross Platform Search Tool for Finding Pythons"
+HOMEPAGE="
+	https://github.com/sarugaku/pythonfinder
+	https://pypi.org/project/pythonfinder/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+PATCHES=(
+	"${FILESDIR}/2.0.5-fix-import-cached-property.patch"
+)
+
+RDEPEND="
+	<dev-python/pydantic-2[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/pythonfinder/files/, dev-python/pythonfinder/
@ 2023-11-14 15:10 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2023-11-14 15:10 UTC (permalink / raw
  To: gentoo-commits

commit:     f2c599fbe9cb961e7cb1acb5e1ed3a8bcd12e1f8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 14 15:07:27 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Nov 14 15:10:18 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2c599fb

dev-python/pythonfinder: Bump to 2.0.6

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pythonfinder/Manifest                   |  1 +
 .../files/pythonfinder-2.0.6-pydantic-2.patch      | 38 ++++++++++++++++++++++
 dev-python/pythonfinder/pythonfinder-2.0.6.ebuild  | 35 ++++++++++++++++++++
 3 files changed, 74 insertions(+)

diff --git a/dev-python/pythonfinder/Manifest b/dev-python/pythonfinder/Manifest
index 6c59aafc1289..d57d6a8849bd 100644
--- a/dev-python/pythonfinder/Manifest
+++ b/dev-python/pythonfinder/Manifest
@@ -1 +1,2 @@
 DIST pythonfinder-2.0.5.tar.gz 718776 BLAKE2B 32a49dbff143042554d5328b61b612e3bde7a870d53a229303b6bdd2c2ce76457bf6aadcdb215efa332407003c1319215292f3278a2808b669b5b7819af08902 SHA512 4d205c66d7ae36f4f2b8ddab9cce00f4efd5548a41d251470a515b88f8be2dcede75372b9301223822031ae663c6ccf77156531b0dd5d8972424f90641255c5b
+DIST pythonfinder-2.0.6.tar.gz 718821 BLAKE2B bc45c8ebffd4b8a21084c3b5f4d9cba71383613e6b25ec01ba53b0abf5d01cf78d1636b19c6c32f80eec401c56c25eedded793fabc46e2bbd389074a45ae14f5 SHA512 2aad884101d1a9fc1340fb63b11811aa7bd1c1f6d2945f9d133bb473099c7e11da21a4348ca742cae03a23fc8b12b85dcae4e9b3a2d29ec98530b6d8d2567d1c

diff --git a/dev-python/pythonfinder/files/pythonfinder-2.0.6-pydantic-2.patch b/dev-python/pythonfinder/files/pythonfinder-2.0.6-pydantic-2.patch
new file mode 100644
index 000000000000..6b3840361bed
--- /dev/null
+++ b/dev-python/pythonfinder/files/pythonfinder-2.0.6-pydantic-2.patch
@@ -0,0 +1,38 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index 73a3c85..27c9a7e 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -39 +39 @@ dependencies = [
+-    "pydantic>=1.10.7,<2",
++    "pydantic>=2",
+@@ -140 +140 @@ runtime-evaluated-base-classes = [
+-  "pydantic.BaseModel",
++  "pydantic.v1.BaseModel",
+diff --git a/src/pythonfinder/models/common.py b/src/pythonfinder/models/common.py
+index 4c439c9..0ef3d77 100644
+--- a/src/pythonfinder/models/common.py
++++ b/src/pythonfinder/models/common.py
+@@ -3 +3 @@ from __future__ import annotations
+-from pydantic import BaseModel, Extra
++from pydantic.v1 import BaseModel, Extra
+diff --git a/src/pythonfinder/models/mixins.py b/src/pythonfinder/models/mixins.py
+index 58ce99a..e68020f 100644
+--- a/src/pythonfinder/models/mixins.py
++++ b/src/pythonfinder/models/mixins.py
+@@ -15 +15 @@ from typing import (
+-from pydantic import BaseModel, Field, validator
++from pydantic.v1 import BaseModel, Field, validator
+diff --git a/src/pythonfinder/models/path.py b/src/pythonfinder/models/path.py
+index fe98054..beb88be 100644
+--- a/src/pythonfinder/models/path.py
++++ b/src/pythonfinder/models/path.py
+@@ -26 +26 @@ else:
+-from pydantic import Field, root_validator
++from pydantic.v1 import Field, root_validator
+diff --git a/src/pythonfinder/models/python.py b/src/pythonfinder/models/python.py
+index c5e0345..32c82a8 100644
+--- a/src/pythonfinder/models/python.py
++++ b/src/pythonfinder/models/python.py
+@@ -22 +22 @@ from packaging.version import Version
+-from pydantic import Field, validator
++from pydantic.v1 import Field, validator

diff --git a/dev-python/pythonfinder/pythonfinder-2.0.6.ebuild b/dev-python/pythonfinder/pythonfinder-2.0.6.ebuild
new file mode 100644
index 000000000000..344edd8900eb
--- /dev/null
+++ b/dev-python/pythonfinder/pythonfinder-2.0.6.ebuild
@@ -0,0 +1,35 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="PythonFinder: Cross Platform Search Tool for Finding Pythons"
+HOMEPAGE="
+	https://github.com/sarugaku/pythonfinder/
+	https://pypi.org/project/pythonfinder/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+	>=dev-python/pydantic-2[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+	# based on the patch from Arch
+	# https://gitlab.archlinux.org/archlinux/packaging/packages/python-pythonfinder/-/blob/main/python-pythonfinder-2.0.5-pydantic2.patch
+	"${FILESDIR}"/pythonfinder-2.0.6-pydantic-2.patch
+)
+
+python_test() {
+	epytest -o addopts=
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-14 15:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-27  3:25 [gentoo-commits] repo/gentoo:master commit in: dev-python/pythonfinder/files/, dev-python/pythonfinder/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2023-11-14 15:10 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox