[arch-commits] Commit in python-jedi/repos/community-any (3 files)

Jan Steffens heftig at archlinux.org
Fri Nov 23 15:15:53 UTC 2018


    Date: Friday, November 23, 2018 @ 15:15:52
  Author: heftig
Revision: 409567

archrelease: copy trunk to community-any

Added:
  python-jedi/repos/community-any/PKGBUILD
    (from rev 409566, python-jedi/trunk/PKGBUILD)
  python-jedi/repos/community-any/fix-environment-cache.patch
    (from rev 409566, python-jedi/trunk/fix-environment-cache.patch)
Deleted:
  python-jedi/repos/community-any/PKGBUILD

-----------------------------+
 PKGBUILD                    |   93 +++++++++++++++++++++++-------------------
 fix-environment-cache.patch |   21 +++++++++
 2 files changed, 72 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-23 15:15:39 UTC (rev 409566)
+++ PKGBUILD	2018-11-23 15:15:52 UTC (rev 409567)
@@ -1,42 +0,0 @@
-# Submitter: Simon Conseil <contact+aur at saimon dot org>
-# Submitter: Jesus Alvarez
-# Maintainer: Danilo Bargen <gezuru at gmail.com>
-
-pkgbase=python-jedi
-pkgname=('python2-jedi' 'python-jedi')
-pkgver=0.13.1
-pkgrel=1
-arch=('any')
-url="https://github.com/davidhalter/jedi"
-license=('MIT')
-makedepends=('python2-setuptools' 'python-setuptools')
-checkdepends=('python-pytest' 'python2-pytest' 'python-parso' 'python2-parso')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/davidhalter/jedi/archive/v$pkgver.tar.gz")
-sha256sums=('e650be5ac603537ebcf31009c3c574909f7fd51a47298406f22f07baa7bdf686')
-
-check() {
-    cd "$srcdir/jedi-${pkgver}"
-    pytest test || warning 'Ignoring test_pyc failure'
-}
-
-package_python-jedi() {
-    pkgdesc="Awesome autocompletion for python"
-    depends=('python' 'python-parso')
-    conflicts=('python3-jedi-git')
-    cd "$srcdir/jedi-${pkgver}"
-    python3 setup.py install --root="$pkgdir/" --optimize=1
-
-    install -D -m644 "$srcdir/jedi-${pkgver}/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-package_python2-jedi() {
-    pkgdesc="Awesome autocompletion for python2"
-    depends=('python2' 'python2-parso')
-    conflicts=('jedi-git' 'python2-jedi-git')
-    cd "$srcdir/jedi-${pkgver}"
-    python2 setup.py install --root="$pkgdir/" --optimize=1
-
-    install -D -m644 "$srcdir/jedi-${pkgver}/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et

Copied: python-jedi/repos/community-any/PKGBUILD (from rev 409566, python-jedi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-11-23 15:15:52 UTC (rev 409567)
@@ -0,0 +1,51 @@
+# Contributor: Danilo Bargen <gezuru at gmail.com>
+# Contributor: Simon Conseil <contact+aur at saimon dot org>
+# Contributor: Jesus Alvarez
+
+pkgbase=python-jedi
+pkgname=('python2-jedi' 'python-jedi')
+pkgver=0.13.1
+pkgrel=2
+arch=('any')
+url="https://github.com/davidhalter/jedi"
+license=('MIT')
+makedepends=('python2-setuptools' 'python-setuptools')
+checkdepends=('python-pytest' 'python2-pytest' 'python-parso' 'python2-parso')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/davidhalter/jedi/archive/v$pkgver.tar.gz"
+        fix-environment-cache.patch)
+sha256sums=('e650be5ac603537ebcf31009c3c574909f7fd51a47298406f22f07baa7bdf686'
+            '60a051084ffac5cfd411fa0d4e3f4b5ce0da544042d78c8594332f0bc41d394f')
+
+prepare() {
+    cd "$srcdir/jedi-${pkgver}"
+
+    # https://github.com/davidhalter/jedi/pull/1238
+    patch -Np1 -i ../fix-environment-cache.patch
+}
+
+check() {
+    cd "$srcdir/jedi-${pkgver}"
+    pytest test || warning 'Ignoring test_pyc failure'
+}
+
+package_python-jedi() {
+    pkgdesc="Awesome autocompletion for python"
+    depends=('python' 'python-parso')
+    conflicts=('python3-jedi-git')
+    cd "$srcdir/jedi-${pkgver}"
+    python3 setup.py install --root="$pkgdir/" --optimize=1
+
+    install -D -m644 "$srcdir/jedi-${pkgver}/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-jedi() {
+    pkgdesc="Awesome autocompletion for python2"
+    depends=('python2' 'python2-parso')
+    conflicts=('jedi-git' 'python2-jedi-git')
+    cd "$srcdir/jedi-${pkgver}"
+    python2 setup.py install --root="$pkgdir/" --optimize=1
+
+    install -D -m644 "$srcdir/jedi-${pkgver}/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et

Copied: python-jedi/repos/community-any/fix-environment-cache.patch (from rev 409566, python-jedi/trunk/fix-environment-cache.patch)
===================================================================
--- fix-environment-cache.patch	                        (rev 0)
+++ fix-environment-cache.patch	2018-11-23 15:15:52 UTC (rev 409567)
@@ -0,0 +1,21 @@
+diff -u -r jedi-0.13.1/jedi/api/environment.py jedi-0.13.1-fix/jedi/api/environment.py
+--- jedi-0.13.1/jedi/api/environment.py	2018-10-02 17:07:35.000000000 +0000
++++ jedi-0.13.1-fix/jedi/api/environment.py	2018-11-23 15:03:25.989461415 +0000
+@@ -190,15 +190,11 @@
+ 
+ 
+ def get_cached_default_environment():
+-    environment = _get_cached_default_environment()
+-    if environment.path != os.environ.get('VIRTUAL_ENV'):
+-        _get_cached_default_environment.clear_cache()
+-        return _get_cached_default_environment()
+-    return environment
++    return _get_cached_default_environment(os.environ.get('VIRTUAL_ENV'))
+ 
+ 
+ @time_cache(seconds=10 * 60)  # 10 Minutes
+-def _get_cached_default_environment():
++def _get_cached_default_environment(_venv):
+     return get_default_environment()
+ 
+ 



More information about the arch-commits mailing list