Merge updates from master

This commit is contained in:
Repository mirror & CI 2021-08-03 07:22:04 +00:00
commit 9073b6431f
No known key found for this signature in database
GPG Key ID: 7C2AC09CD98F2EDF
6 changed files with 210 additions and 6 deletions

View File

@ -0,0 +1,95 @@
diff --git a/pipenv/installers.py b/pipenv/installers.py
index 1e81047d..ccfd639c 100644
--- a/pipenv/installers.py
+++ b/pipenv/installers.py
@@ -6,8 +6,11 @@ from abc import ABCMeta, abstractmethod
from .environments import PIPENV_INSTALL_TIMEOUT
-from .vendor import attr, delegator
from .utils import find_windows_executable
+# future version of pipenv drops this
+# hence, this stays here for a while
+from .vendor import delegator
+import attr
@attr.s
diff --git a/pipenv/vendor/passa/models/projects.py b/pipenv/vendor/passa/models/projects.py
index c7807c05..f6e037d6 100644
--- a/pipenv/vendor/passa/models/projects.py
+++ b/pipenv/vendor/passa/models/projects.py
@@ -6,7 +6,7 @@ import collections
import io
import os
-from pipenv.vendor import attr
+import attr
import packaging.markers
import packaging.utils
import plette
diff --git a/pipenv/vendor/pythonfinder/models/mixins.py b/pipenv/vendor/pythonfinder/models/mixins.py
index aeba0443..76327115 100644
--- a/pipenv/vendor/pythonfinder/models/mixins.py
+++ b/pipenv/vendor/pythonfinder/models/mixins.py
@@ -5,7 +5,7 @@ import abc
import operator
from collections import defaultdict
-from pipenv.vendor import attr
+import attr
import six
from ..compat import fs_str
diff --git a/pipenv/vendor/pythonfinder/models/path.py b/pipenv/vendor/pythonfinder/models/path.py
index e8c13429..7a197181 100644
--- a/pipenv/vendor/pythonfinder/models/path.py
+++ b/pipenv/vendor/pythonfinder/models/path.py
@@ -7,7 +7,7 @@ import sys
from collections import defaultdict
from itertools import chain
-from pipenv.vendor import attr
+import attr
import six
from cached_property import cached_property
from ..compat import Path, fs_str
diff --git a/pipenv/vendor/pythonfinder/models/python.py b/pipenv/vendor/pythonfinder/models/python.py
index 4f7e5563..d001a1e5 100644
--- a/pipenv/vendor/pythonfinder/models/python.py
+++ b/pipenv/vendor/pythonfinder/models/python.py
@@ -7,7 +7,7 @@ import platform
import sys
from collections import defaultdict
-from pipenv.vendor import attr
+import attr
import six
from packaging.version import Version
diff --git a/pipenv/vendor/pythonfinder/models/windows.py b/pipenv/vendor/pythonfinder/models/windows.py
index c69b9484..fb36a272 100644
--- a/pipenv/vendor/pythonfinder/models/windows.py
+++ b/pipenv/vendor/pythonfinder/models/windows.py
@@ -4,7 +4,7 @@ from __future__ import absolute_import, print_function
import operator
from collections import defaultdict
-from pipenv.vendor import attr
+import attr
from ..environment import MYPY_RUNNING
from ..exceptions import InvalidPythonVersion
diff --git a/pipenv/vendor/pythonfinder/utils.py b/pipenv/vendor/pythonfinder/utils.py
index bcea7f3e..41d2d59a 100644
--- a/pipenv/vendor/pythonfinder/utils.py
+++ b/pipenv/vendor/pythonfinder/utils.py
@@ -10,7 +10,7 @@ from collections import OrderedDict
from fnmatch import fnmatch
from threading import Timer
-from pipenv.vendor import attr
+import attr
import six
from packaging.version import LegacyVersion, Version

View File

@ -0,0 +1,54 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_{7,8,9} )
inherit distutils-r1
MY_PV=${PV/_beta/b}
DESCRIPTION="Python Development Workflow for Humans"
HOMEPAGE="https://github.com/pypa/pipenv https://pypi.org/project/pipenv/"
SRC_URI="https://github.com/pypa/pipenv/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/${PN}-${MY_PV}
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RESTRICT="!test? ( test )"
PATCHES="${FILESDIR}/${PN}-${PV//./-}-${PR}-remove-attr-vendor-import.patch"
RDEPEND="
${PYTHON_DEPS}
dev-python/certifi[${PYTHON_USEDEP}]
dev-python/pip[${PYTHON_USEDEP}]
>=dev-python/virtualenv-20.0.35[${PYTHON_USEDEP}]
dev-python/virtualenv-clone[${PYTHON_USEDEP}]
"
BDEPEND="
${RDEPEND}
test? (
dev-python/flaky[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
)
"
src_prepare() {
# remove vendored version of PyYAML that is backported to Python2
rm -vR "${S}/${PN}/patched/yaml2/" || die
# remove vendored versions
# see https://bugs.gentoo.org/717666
rm -vR "${S}/${PN}/vendor/attr/" || die
rm -vR "${S}/${PN}/vendor/jinja2/" || die
distutils-r1_src_prepare
}
python_test() {
pytest -vvv -x -m "not cli and not needs_internet" tests/unit/ || die
}

View File

@ -17,8 +17,8 @@ IUSE="debug profile"
# Don't strip to prevent some tests from failing.
RESTRICT="strip"
DEPEND=">=dev-libs/rocclr-$(ver_cut 1-2)
>=dev-util/rocminfo-$(ver_cut 1-2)
DEPEND="dev-libs/rocclr:${SLOT}
dev-util/rocminfo:${SLOT}
=sys-devel/llvm-roc-${PV}*[runtime]"
RDEPEND="${DEPEND}"
@ -35,8 +35,8 @@ src_prepare() {
cmake_src_prepare
eapply_user
# Use Gentoo version number, otherwise git hash is attempted in vain.
sed -e "/set (HIP_LIB_VERSION_STRING/cset (HIP_LIB_VERSION_STRING ${PVR})" -i CMakeLists.txt || die
# Use Gentoo slot number, otherwise git hash is attempted in vain.
sed -e "/set (HIP_LIB_VERSION_STRING/cset (HIP_LIB_VERSION_STRING ${SLOT#*/})" -i CMakeLists.txt || die
# disable PCH, because it results in a build error in ROCm 4.0.0
sed -e "s:option(__HIP_ENABLE_PCH:#option(__HIP_ENABLE_PCH:" -i CMakeLists.txt || die
@ -58,7 +58,7 @@ src_prepare() {
einfo "prefixing hipcc and its utils..."
hprefixify $(grep -rl --exclude-dir=build/ "/usr" "${S}")
cp "${FILESDIR}"/hipvars.pm bin/ || die "failed to replace hipvars.pm"
cp "$(prefixify_ro "${FILESDIR}"/hipvars.pm)" bin/ || die "failed to replace hipvars.pm"
}
src_configure() {

View File

@ -3,7 +3,7 @@
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
PYTHON_COMPAT=( python3_{7..10} )
inherit distutils-r1 optfeature

View File

@ -1,2 +1,3 @@
DIST NetworkManager-fortisslvpn-1.2.10.tar.xz 366700 BLAKE2B 5160d5947fe391b53a0293db4727baa0e6c453da0985abb999503a8f4c67a03c3159652c216e9982414d5db718af6c8a2aa6ac00aa627801949d4f96403f0ade SHA512 8b4d100403f3bdd557394a6cadd94e24afffd97a584f8c58cb4008be2834bd8c12c3f293c03c0f111ede54fe18058e3ef41218fd33d2dd564147f255d76e4252
DIST NetworkManager-fortisslvpn-1.2.8.tar.xz 325100 BLAKE2B 9449bbec99ee50c2c0b9cc1a74d8714e71995c17d2c1fa206134b71a1ea448be8fd86711ce0743f38e86ccd330eb7bc7e4cb57c2093001ac1b301b00e5c8f25e SHA512 5a602b872b1efbd8d9ed2f32d05ec8560f0a923dfdf58e7a775010ee2182790b8cbe7c2a6c8d1198eba47c66fddecf178e1c454d1ac74c10a63c75c603eeafc8
DIST NetworkManager-fortisslvpn-1.3.90.tar.xz 375416 BLAKE2B d2e07a2f79685cb600b6c0abca52a54911ff41534c152e9c5befe25d436757ba517d84cc474ff5c200ae62ca019296871fc29dc8342788295b3e59be55fa8198 SHA512 98b3e524cbb33c8dcdb325b10d227f88534948d98ca8009f770e48b87d42637762ba5343f081ac583b77c3387cb47f2660be0f60430ede237f812a2af8d9a7aa

View File

@ -0,0 +1,54 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
GNOME_ORG_MODULE="NetworkManager-${PN##*-}"
GNOME2_LA_PUNT="yes"
GNOME2_EAUTORECONF="yes"
inherit gnome2
DESCRIPTION="NetworkManager Fortinet SSLVPN compatible plugin"
HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="gtk"
DEPEND="
>=dev-libs/glib-2.32:2
>=net-misc/networkmanager-1.2:=
gtk? (
>=app-crypt/libsecret-0.18
media-libs/harfbuzz
>=net-libs/libnma-1.2.0
x11-libs/cairo
x11-libs/gdk-pixbuf
>=x11-libs/gtk+-3.4:3
x11-libs/pango
)
"
RDEPEND="${RDEPEND}
net-dialup/ppp
>=net-vpn/openfortivpn-1.2.0"
BDEPEND="dev-util/gdbus-codegen
>=sys-devel/gettext-0.19
virtual/pkgconfig"
src_prepare() {
default
# Fix deprecated location, #709450
sed -i 's|/appdata|/metainfo|g' Makefile.{in,am} || die
}
src_configure() {
gnome2_src_configure \
--disable-static \
--with-dist-version=Gentoo \
--localstatedir=/var \
$(use_with gtk gnome) \
--without-libnm-glib
}