Package Details: python2-jedi-git 1:v0.17.0.r148.2d672d2f-1

Git Clone URL: https://aur.archlinux.org/python2-jedi-git.git (read-only, click to copy)
Package Base: python2-jedi-git
Description: An awesome autocompletion, static analysis and refactoring library for Python
Upstream URL: https://github.com/davidhalter/jedi
Licenses: MIT
Conflicts: python2-jedi
Provides: python2-jedi
Submitter: guibou
Maintainer: None
Last Packager: xiretza
Votes: 8
Popularity: 0.000000
First Submitted: 2013-01-17 12:28 (UTC)
Last Updated: 2020-05-24 19:28 (UTC)

Latest Comments

davidovitch commented on 2020-05-24 21:54 (UTC)

Great, thanks. I wasn't aware of the epoch option, now I do :-)

xiretza commented on 2020-05-24 19:30 (UTC)

No problem at all, two days is an absolutely fine response time :) Co-maintainership is much appreciated, thanks.

Because the new versioning scheme always counts as "older" than the old one (vercmp 3964.7b50bb0 v0.17.0.r148.2d672d2f is >0), the epoch PKGBUILD variable needs to be increased to make sure any upgrades will count as such in the future (vercmp 3964.7b50bb0 1:v0.17.0.r148.2d672d2f is <0). Just did that in the latest commit.

davidovitch commented on 2020-05-24 17:53 (UTC) (edited on 2020-05-24 17:53 (UTC) by davidovitch)

@xiretza, sorry for late reply. I've applied your patch and made you a co-maintainer (I can also hand it over to you if you prefer that). I am not sure I know what you mean with epoch that requires a bump.

xiretza commented on 2020-05-23 20:01 (UTC)

Ah, sorry, epoch needs to be bumped too, forgot that in the patch.

xiretza commented on 2020-05-22 14:38 (UTC)

Package is broken in a lot of ways, here's a patch (partly based on python-jedi):

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,50 @@
+# Maintainer: David Verelst <david dott verelst hat gmail com>
+# Contributor: xiretza <xiretza+aur@gmail.com>
+
 pkgname=python2-jedi-git
 _gitname=jedi
-pkgver=3964.7b50bb0
+pkgver=v0.17.0.r146.860d5e88
 pkgrel=1
-pkgdesc="Jedi is an autocompletion tool for Python that can be used in IDEs/editors"
+pkgdesc="An awesome autocompletion, static analysis and refactoring library for Python"
 arch=(any)
 url="https://github.com/davidhalter/jedi"
 license=('MIT')
 depends=('python2')
-makedepends=('git' 'python2-distribute')
-provides=()
-conflicts=()
-replaces=()
-backup=()
+makedepends=('git' 'python2-setuptools')
+provides=('python2-jedi')
+conflicts=('python2-jedi')
 options=(!emptydirs)
-source=('git://github.com/davidhalter/jedi.git')
-# Because the sources are not static, skip Git checksum:
-md5sums=('SKIP')
+source=(git+https://github.com/davidhalter/jedi.git
+        git+https://github.com/davidhalter/typeshed
+        git+https://github.com/typeddjango/django-stubs)
+md5sums=('SKIP'
+         'SKIP'
+         'SKIP')

 pkgver() {
-  cd $_gitname
-  # Use the tag of the last commit
-  #git describe --always | sed 's|-|.|g'
-  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+  cd "$srcdir/$_gitname"
+
+  printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+prepare() {
+  cd "$srcdir/$_gitname"
+
+  git submodule init
+  git config submodule."jedi/third_party/typeshed".url "${srcdir}/typeshed"
+  git config submodule."jedi/third_party/django-stubs".url "${srcdir}/django-stubs"
+  git submodule update --recursive
+}
+
+build() {
+  cd "$srcdir/$_gitname"
+
+  python2 setup.py build
 }

 package() {
-   cd $_gitname
-   python2 setup.py install --root="${pkgdir}" --optimize=1 || exit 1
-}
\ No newline at end of file
+  cd "$srcdir/$_gitname"
+
+  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
+}

davidovitch commented on 2015-02-25 07:43 (UTC)

@guibou: do you have any plans updating this package? If not, I am willing to take the package over from you.

davidovitch commented on 2014-05-16 11:20 (UTC)

This package needs an update (no package() function, no automatic versioning, license changed from LGPL to MIT), and I have proposed an improved version here: https://gist.github.com/davidovitch/c37e36b8af28ecd8f607

<deleted-account> commented on 2013-01-20 20:52 (UTC)

There is a small error in the makedepends section of the PKGBUILD file. Each package needs to be enclosed by single quotes: makedepends=('git' 'python2-distribute')