Bump version

This commit is contained in:
Nathaniel Nicandro 2020-04-07 15:13:51 -05:00
parent 4c9e616690
commit 403c70c83c
38 changed files with 137 additions and 78 deletions

View file

@ -1,4 +1,23 @@
* master
* v0.8.2
- Fix recursive loading error caused by =jupyter-tramp.el= autoloads.
- Consider kernelspecs with spaces and uppercase characters in the kernel's
language name.
- In =org-mode=, fixed a bug where inline results where being displayed
differently from what they would have been when the results are not inline.
- When =jupyter-repl-echo-eval-p= is non-nil, ensure that any cell code not sent
to a kernel yet is preserved.
- In =org-mode=, fix a bug where if the =:session= header argument of Jupyter
source blocks is a relative file name with a =.json= suffix
and =default-directory= is a remote directory, a file on the local machine
would be read.
- Use =org-babel-jupyter-async-inline-results-pending-indicator= as a placeholder
when evaluating asynchronous inline source blocks in =org-mode=.
- Integrate better with packages like =polymode= when evaluating source blocks
in =org-mode= by considering indirect buffers. Thanks to =@dvzubarev= for
@ -421,42 +440,3 @@
background of a traceback in the REPL buffer to distinguish it from other
output. In addition to this face, there is also =jupyter-repl-input-prompt=
and =jupyter-repl-output-prompt=.
* How to update this file
Examine the output of
#+NAME: changelog
#+HEADER: :var PREV_VERSION="afbb9b513410ee6f36a1f2fa1ff8a505862de1ca" VERSION="master"
#+BEGIN_SRC shell :results output
git log --pretty=format:"%s" ${PREV_VERSION}...${VERSION}
#+END_SRC
and filter down to the most notable changes, summarize each one. Be sure to
update the =VERSION= variables first.
#+RESULTS: changelog
* Update Version header
Update the =Version= in the header of all source files.
#+BEGIN_SRC elisp :results silent :var version="0.8.1"
(let ((re "^;; Version: \\(\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)\\)" ))
(dolist (file (append (directory-files default-directory nil ".el$")
(directory-files (expand-file-name "test" default-directory) t ".el$")))
(let* ((buf (find-buffer-visiting file))
(kill (null buf)))
(unless buf
(setq buf (find-file-noselect file)))
(with-current-buffer buf
(save-excursion
(save-restriction
(widen)
(goto-char (point-min))
(when (re-search-forward re nil t)
(replace-match version nil nil nil 1))
(save-buffer)
(when kill
(kill-buffer))))))))
#+END_SRC

79
MAINTAINERS.org Normal file
View file

@ -0,0 +1,79 @@
* Reviewing changes to add to =CHANGELOG.org=
Examine the output of =git log= since the last time the Change Log was updated
and narrow it down to notable commits, e.g. new variables, bug fixes, breaking
changes, etc. Write a few sentences describing the change and how it affects
users going forward.
#+NAME: changelog
#+HEADER: :var PREV_VERSION="afbb9b513410ee6f36a1f2fa1ff8a505862de1ca" VERSION="master"
#+BEGIN_SRC shell :results output
git log --pretty=format:"%s" ${PREV_VERSION}...${VERSION}
#+END_SRC
#+RESULTS: changelog
* Updating project metadata
- Increment copyright years, if needed
- Set the Version header
- Set =jupyter-version= in file:jupyter-base.el
#+CALL: update-project-metadata(version="0.8.2")
#+NAME: source-files
#+begin_src shell
git ls-files | grep -E '.el$'
#+end_src
#+NAME: eval-in-file
#+begin_src elisp
(lambda (file fun)
(let* ((buf (find-buffer-visiting file))
(kill (null buf)))
(unless buf
(setq buf (find-file-noselect file)))
(with-current-buffer buf
(save-excursion
(save-restriction
(widen)
(goto-char (point-min))
(funcall fun)
(save-buffer)
(when kill
(kill-buffer)))))))
#+end_src
#+NAME: update-project-metadata
#+HEADERS: :var version="0.8.2"
#+begin_src elisp :results silent :var files=source-files eval-in-file=eval-in-file
(let ((lexical-binding t)
(copyright-re "^;; Copyright (C) \\([0-9]+\\)\\(?:-\\([0-9]+\\)\\)?")
(version-re "^;; Version: \\(\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)\\)")
(this-year (string-to-number (format-time-string "%Y"))))
(dolist (file files)
(funcall
eval-in-file (car file)
(lambda ()
(when (re-search-forward copyright-re nil t)
(let* ((end-group (if (match-string 2) 2 1))
(new-span (= end-group 1))
(year (string-to-number (match-string end-group)))
(new-year (and (<= (1+ year) this-year)
(number-to-string (1+ year)))))
(when new-year
(if (not new-span) (replace-match new-year nil nil nil end-group)
(goto-char (match-end end-group))
(insert "-" new-year)))))
(when (re-search-forward version-re nil t)
(replace-match version nil nil nil 1)))))
(funcall eval-in-file "jupyter-base.el"
(lambda ()
(when (re-search-forward "^(defconst jupyter-version \"\\(.+\\)\"")
(replace-match version nil nil nil 1)))))
#+end_src
* TODO Makefile =release= target
- Updates project metadata
- Creates tagged (and signed) commit

View file

@ -1,6 +1,6 @@
;;; jupyter-R.el --- Jupyter support for R -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Jack Kamm <jackkamm@gmail.com>
;; Nathaniel Nicandro <nathanielnicandro@gmail.com>

View file

@ -1,6 +1,6 @@
;;; jupyter-base.el --- Core definitions for Jupyter -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 06 Jan 2018
@ -127,7 +127,7 @@ from the kernel.")
A longer timeout is needed, for example, when retrieving the
`jupyter-kernel-info' to allow for the kernel to startup.")
(defconst jupyter-version "0.8.1-dev"
(defconst jupyter-version "0.8.2"
"Current version of Jupyter.")
;;; Macros

View file

@ -1,6 +1,6 @@
;;; jupyter-c++.el --- Jupyter support for C++ -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 12 April 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-channel-ioloop-comm.el --- Communication layer using jupyter-channel-ioloop -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 27 Jun 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-channel-ioloop.el --- Abstract class to communicate with a jupyter-channel in a subprocess -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 27 Jun 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-channel.el --- Jupyter channel interface -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 27 Jun 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-client.el --- A Jupyter kernel client -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 06 Jan 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-comm-layer.el --- Kernel communication layer -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 06 Apr 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-env.el --- Query the jupyter shell command for information -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 27 Jun 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-ioloop-comm.el --- Communication layer using jupyter-ioloop -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 27 Jun 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-ioloop.el --- Jupyter channel subprocess -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 03 Nov 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-javascript.el --- Jupyter support for Javascript -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 23 Oct 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-julia.el --- Jupyter support for Julia -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 23 Oct 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-kernel-manager.el --- Jupyter kernel manager -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 08 Jan 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-kernel-process-manager.el --- Manage kernel processes directly -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 08 Aug 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-kernelspec.el --- Jupyter kernelspecs -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 17 Jan 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-messages.el --- Jupyter messages -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 08 Jan 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-mime.el --- Insert mime types -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 09 Nov 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-org-client.el --- Org integration -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 02 Jun 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-org-extensions.el --- Jupyter Org Extensions -*- lexical-binding: t; -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Carlos Garcia C. <carlos@binarycharly.com>
;; Created: 01 March 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-python.el --- Jupyter support for python -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 23 Oct 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-repl-client.el --- A Jupyter REPL client -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 08 Jan 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-rest-api.el --- Jupyter REST API -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 03 Apr 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-server-ioloop.el --- Kernel server communication -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 03 Apr 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-server.el --- Support for the Jupyter kernel servers -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 02 Apr 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-tramp.el --- TRAMP interface to the Jupyter REST API -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 25 May 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-widget-client.el --- Widget support -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 21 May 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-zmq-channel-comm.el --- Communication layer using ZMQ sockets -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 27 Jun 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-zmq-channel-ioloop.el --- IOLoop functions for Jupyter channels -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 08 Nov 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-zmq-channel.el --- A Jupyter channel implementation using ZMQ sockets -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 27 Jun 2019

View file

@ -1,10 +1,10 @@
;;; jupyter.el --- Jupyter -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 11 Jan 2018
;; Version: 0.8.1
;; Version: 0.8.2
;; Package-Requires: ((emacs "26") (zmq "0.10.3") (cl-lib "0.5") (simple-httpd "1.5.0") (websocket "1.9"))
;; URL: https://github.com/dzop/emacs-jupyter

View file

@ -1,6 +1,6 @@
;;; ob-jupyter.el --- Jupyter integration with org-mode -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 21 Jan 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-server-test.el --- Test communication with a notebook server -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 31 May 2019

View file

@ -1,6 +1,6 @@
;;; jupyter-test.el --- Jupyter tests -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 08 Jan 2018

View file

@ -1,6 +1,6 @@
;;; jupyter-tramp-test.el --- Tests for the contents REST API integration with TRAMP -*- lexical-binding: t -*-
;; Copyright (C) 2019 Nathaniel Nicandro
;; Copyright (C) 2019-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 28 May 2019

View file

@ -1,6 +1,6 @@
;;; test-helper.el --- Helpers for jupyter-test.el -*- lexical-binding: t -*-
;; Copyright (C) 2018 Nathaniel Nicandro
;; Copyright (C) 2018-2020 Nathaniel Nicandro
;; Author: Nathaniel Nicandro <nathanielnicandro@gmail.com>
;; Created: 15 Nov 2018