[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: gnu: emacs-elpy: Update to 1.32.0.
From: |
guix-commits |
Subject: |
08/08: gnu: emacs-elpy: Update to 1.32.0. |
Date: |
Sun, 22 Mar 2020 21:45:18 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 4ef89d884db8dae3aa300e36a3ad89def374e012
Author: Maxim Cournoyer <address@hidden>
AuthorDate: Sun Mar 22 07:23:15 2020 -0400
gnu: emacs-elpy: Update to 1.32.0.
* gnu/packages/emacs-xyz.scm (emacs-elpy): Update to 1.32.0.
[phases]{fake-virtualenv}: Rename to 'do-not-use-virtualenv. Use the new
ELPY_TEST_DONT_USE_VIRTUALENV environment variable to skip tests using
virtualenv, and set the elpy-rpc-virtualenv-path default value to 'system so
that a virtualenv is not needed.
[native-inputs]: Move the Python dependencies to...
[propagated] ...here. This is so that Elpy doesn't nag users with fetching
those from PyPI. Add python-rope.
Fixes <https://bugs.gnu.org/40079>.
Reported-by: sirgazil <address@hidden>
---
gnu/packages/emacs-xyz.scm | 34 +++++++++++++++++++---------------
1 file changed, 19 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 1ea3155..fe2210a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -6690,7 +6690,7 @@ indentation guides in Emacs:
(define-public emacs-elpy
(package
(name "emacs-elpy")
- (version "1.31.0")
+ (version "1.32.0")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -6699,20 +6699,20 @@ indentation guides in Emacs:
(file-name (git-file-name name version))
(sha256
(base32
- "0bvmgqs3c80bhs9v5ymgadv7vk4iamha10y7rl09pixmjm4mzagk"))))
+ "0f00mdnzx6xqwni86rgvaa6sfkwyh62xfbwz8qsar15j0j6vc2dj"))))
(build-system emacs-build-system)
(arguments
`(#:include (cons* "^elpy/[^/]+\\.py$" "^snippets\\/" %default-include)
#:phases
- ;; TODO: Make `elpy-config' display Guix commands :)
(modify-phases %standard-phases
- ;; One elpy test depends on being run inside a Python virtual
- ;; environment to pass. We have nothing to gain from doing so here,
- ;; so we just trick Elpy into thinking we are (see:
- ;; https://github.com/jorgenschaefer/elpy/pull/1293).
- (add-before 'check 'fake-virtualenv
+ ;; The default environment of the RPC uses Virtualenv to install
+ ;; Python dependencies from PyPI. We don't want/need this in Guix.
+ (add-before 'check 'do-not-use-virtualenv
(lambda _
- (setenv "VIRTUAL_ENV" "/tmp")
+ (setenv "ELPY_TEST_DONT_USE_VIRTUALENV" "1")
+ (substitute* "elpy-rpc.el"
+ (("defcustom elpy-rpc-virtualenv-path 'default")
+ "defcustom elpy-rpc-virtualenv-path 'system"))
#t))
(add-before 'check 'build-doc
(lambda _
@@ -6738,16 +6738,20 @@ indentation guides in Emacs:
("emacs-highlight-indentation" ,emacs-highlight-indentation)
("emacs-yasnippet" ,emacs-yasnippet)
("pyvenv" ,emacs-pyvenv)
- ("s" ,emacs-s)))
- (native-inputs
- `(("ert-runner" ,emacs-ert-runner)
- ("emacs-f" ,emacs-f)
- ("python" ,python-wrapper)
+ ("s" ,emacs-s)
+ ;; The following are recommended Python dependencies that make Elpy
+ ;; much more useful. Installing these avoids Elpy prompting to install
them
+ ;; from PyPI using pip.
("python-autopep8" ,python-autopep8)
("python-black" ,python-black)
("python-flake8" ,python-flake8)
("python-jedi" ,python-jedi)
- ("python-yapf" ,python-yapf)
+ ("python-rope" ,python-rope)
+ ("python-yapf" ,python-yapf)))
+ (native-inputs
+ `(("ert-runner" ,emacs-ert-runner)
+ ("emacs-f" ,emacs-f)
+ ("python" ,python-wrapper)
;; For documentation.
("python-sphinx" ,python-sphinx)
("texinfo" ,texinfo)))
- branch master updated (6607aad -> 4ef89d8), guix-commits, 2020/03/22
- 02/08: gnu: emacs: Remove obsolete FIXME comment., guix-commits, 2020/03/22
- 03/08: Revert "gnu: emacs: Byte compile the site-lisp directory.", guix-commits, 2020/03/22
- 01/08: build: emacs-utils: Add an option to select scoping for batch eval., guix-commits, 2020/03/22
- 04/08: gnu: emacs: Byte compile the site-lisp directory, without coupling., guix-commits, 2020/03/22
- 05/08: gnu: emacs: Re-indent., guix-commits, 2020/03/22
- 06/08: gnu: emacs-minimal: Install the custom site-start file., guix-commits, 2020/03/22
- 07/08: gnu: emacs: Patch references to /bin/sh., guix-commits, 2020/03/22
- 08/08: gnu: emacs-elpy: Update to 1.32.0.,
guix-commits <=