From 6a5a2a365e4ea6fc5adfa96359418c437aa351c8 Mon Sep 17 00:00:00 2001 From: David Percy Date: Thu, 20 Sep 2018 19:15:23 -0400 Subject: [PATCH 01/27] Coerce result of tramp-tramp-file-p to boolean (#9) anaconda-mode assumes that pythonic-remote-p returns either nil or t. But before Emacs 26.1, tramp-tramp-file-p would return a number instead of t as the truthy value: https://github.com/emacs-mirror/emacs/commit/0b558b4acb8326c6f26fcde47ca85777716ae831 --- pythonic.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pythonic.el b/pythonic.el index cd5eb93..27f7bc0 100644 --- a/pythonic.el +++ b/pythonic.el @@ -41,7 +41,8 @@ (defun pythonic-remote-p () "Determine remote virtual environment." - (tramp-tramp-file-p (pythonic-aliased-path default-directory))) + (and (tramp-tramp-file-p (pythonic-aliased-path default-directory)) + t)) (defun pythonic-remote-docker-p () "Determine docker remote virtual environment." From eca5bbdec3fe4917e9b96d275894b5155bfc7188 Mon Sep 17 00:00:00 2001 From: Oliver Marks Date: Thu, 14 Feb 2019 17:56:16 +0000 Subject: [PATCH 02/27] Add ability to set default container via dir-locals. (#11) --- README.markdown | 10 ++++++++++ pythonic.el | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index fae13b8..8167291 100644 --- a/README.markdown +++ b/README.markdown @@ -120,3 +120,13 @@ Activate python virtual environment. Tramp paths are supported. ### pythonic-deactivate Deactivate python virtual environment. + + +## Project overrides with .dir-locals +You can change the default docker file and set a default +container to run the pythonic commands in with these dir-locals. + +```lisp +((python . ((pythonic-docker-compose-filename . "local.yml") + (pythonic-docker-compose-container-name . "footprint")))) +``` diff --git a/pythonic.el b/pythonic.el index 27f7bc0..6020080 100644 --- a/pythonic.el +++ b/pythonic.el @@ -154,6 +154,7 @@ format." ;;; Docker Compose. (defvar pythonic-docker-compose-filename "docker-compose.yml") +(defvar pythonic-docker-compose-container-name nil) (defvar pythonic-read-docker-compose-file-code " from __future__ import print_function @@ -208,6 +209,7 @@ print(json.dumps(yaml.safe_load(open(sys.argv[-1], 'r')))) (defun pythonic-set-docker-compose-alias () "Build alias string for current docker-compose project." + (hack-dir-local-variables-non-file-buffer) (unless (or (tramp-tramp-file-p default-directory) (pythonic-has-alias-p default-directory)) @@ -220,7 +222,9 @@ print(json.dumps(yaml.safe_load(open(sys.argv[-1], 'r')))) ;; should appears once in the selection and all volumes ;; should be added to the alias list. (volume (if (< 1 (length volumes)) - (assoc (completing-read "Service: " (mapcar 'car volumes) nil t) volumes) + (if pythonic-docker-compose-container-name + pythonic-docker-compose-container-name + (assoc (completing-read "Service: " (mapcar 'car volumes) nil t) volumes)) (car volumes))) (service (car volume)) (sub-project (f-join project (cadr volume))) From 16c16202b76d33edd6a95814b2a9c298437f9832 Mon Sep 17 00:00:00 2001 From: Artem Malyshev Date: Thu, 14 Feb 2019 21:16:39 +0300 Subject: [PATCH 03/27] Rename variable. --- README.markdown | 11 +++++++---- pythonic.el | 21 ++++++++++++++++----- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/README.markdown b/README.markdown index 8167291..c05a7e1 100644 --- a/README.markdown +++ b/README.markdown @@ -121,12 +121,15 @@ Activate python virtual environment. Tramp paths are supported. Deactivate python virtual environment. +## Project settings -## Project overrides with .dir-locals -You can change the default docker file and set a default -container to run the pythonic commands in with these dir-locals. +You can change the default docker-compose file name and set a default +service name to run the pythonic commands. + +Add these lines to the `.dir-locals.el` file in the project root +directory. ```lisp ((python . ((pythonic-docker-compose-filename . "local.yml") - (pythonic-docker-compose-container-name . "footprint")))) + (pythonic-docker-compose-service-name . "web")))) ``` diff --git a/pythonic.el b/pythonic.el index 6020080..9abca22 100644 --- a/pythonic.el +++ b/pythonic.el @@ -1,6 +1,6 @@ ;;; pythonic.el --- Utility functions for writing pythonic emacs package. -*- lexical-binding: t; -*- -;; Copyright (C) 2015-2018 by Artem Malyshev +;; Copyright (C) 2015-2019 by Artem Malyshev ;; Author: Artem Malyshev ;; URL: https://github.com/proofit404/pythonic @@ -32,6 +32,10 @@ (require 's) (require 'f) +(defgroup pythonic nil + "Utility functions for writing pythonic emacs package." + :group 'python) + ;;; Connection predicates. @@ -153,8 +157,15 @@ format." ;;; Docker Compose. -(defvar pythonic-docker-compose-filename "docker-compose.yml") -(defvar pythonic-docker-compose-container-name nil) +(defcustom pythonic-docker-compose-filename "docker-compose.yml" + "File name of the docker-compose project file." + :type 'string + :safe 'stringp) + +(defcustom pythonic-docker-compose-service-name nil + "Name of the default service to execute commands." + :type 'string + :safe 'stringp) (defvar pythonic-read-docker-compose-file-code " from __future__ import print_function @@ -222,8 +233,8 @@ print(json.dumps(yaml.safe_load(open(sys.argv[-1], 'r')))) ;; should appears once in the selection and all volumes ;; should be added to the alias list. (volume (if (< 1 (length volumes)) - (if pythonic-docker-compose-container-name - pythonic-docker-compose-container-name + (if pythonic-docker-compose-service-name + pythonic-docker-compose-service-name (assoc (completing-read "Service: " (mapcar 'car volumes) nil t) volumes)) (car volumes))) (service (car volume)) From 69b812c87236c4d86fed11a743867af4b91f0ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Fern=C3=A1ndez=20Giraldo?= Date: Sun, 14 Jul 2019 01:29:44 -0600 Subject: [PATCH 04/27] Allow using a different interpreter through `pythonic-interpreter` var (#13) --- README.markdown | 8 ++++++++ pythonic.el | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index c05a7e1..4a804eb 100644 --- a/README.markdown +++ b/README.markdown @@ -133,3 +133,11 @@ directory. ((python . ((pythonic-docker-compose-filename . "local.yml") (pythonic-docker-compose-service-name . "web")))) ``` + +You can change the interpreter that pythonic uses. This is especially useful when you have set your `python-shell-interpreter` to something like `jupyter-console`. By default, it'll use `python-shell-interpreter`. + +To change it: + +```lisp +(setq pythonic-interpreter "python") +``` diff --git a/pythonic.el b/pythonic.el index 9abca22..cc61f81 100644 --- a/pythonic.el +++ b/pythonic.el @@ -251,16 +251,20 @@ print(json.dumps(yaml.safe_load(open(sys.argv[-1], 'r')))) ;;; Processes. +(defvar pythonic-interpreter python-shell-interpreter + "Interpreter to use for pythonic process calls.") + (cl-defun pythonic-call-process (&key file buffer display args cwd) "Pythonic wrapper around `call-process'. FILE is the input file. BUFFER is the output destination. DISPLAY specifies to redisplay BUFFER on new output. ARGS is the list of + arguments passed to `call-process'. CWD will be working directory for running process." (let ((default-directory (pythonic-aliased-path (or cwd default-directory)))) (python-shell-with-environment - (apply 'process-file python-shell-interpreter file buffer display args)))) + (apply 'process-file pythonic-interpreter file buffer display args)))) (cl-defun pythonic-start-process (&key process buffer args cwd filter sentinel (query-on-exit t)) "Pythonic wrapper around `start-process'. @@ -274,7 +278,7 @@ function if necessary. QUERY-ON-EXIT will be corresponding process flag." (let ((default-directory (pythonic-aliased-path (or cwd default-directory)))) (python-shell-with-environment - (let ((process (apply 'start-file-process process buffer python-shell-interpreter args))) + (let ((process (apply 'start-file-process process buffer pythonic-interpreter args))) (when filter (set-process-filter process filter)) (when sentinel From 1ba07048cffa0f95d7d1c75eab2d2be175e67cb6 Mon Sep 17 00:00:00 2001 From: Oliver Marks Date: Thu, 25 Jul 2019 13:58:15 +0100 Subject: [PATCH 05/27] Fix docker service name returning string instead of list. (#14) now Assoc's out the value from the string --- pythonic.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pythonic.el b/pythonic.el index cc61f81..57e4b8d 100644 --- a/pythonic.el +++ b/pythonic.el @@ -233,9 +233,11 @@ print(json.dumps(yaml.safe_load(open(sys.argv[-1], 'r')))) ;; should appears once in the selection and all volumes ;; should be added to the alias list. (volume (if (< 1 (length volumes)) - (if pythonic-docker-compose-service-name - pythonic-docker-compose-service-name - (assoc (completing-read "Service: " (mapcar 'car volumes) nil t) volumes)) + (assoc + (if pythonic-docker-compose-service-name + pythonic-docker-compose-service-name + (completing-read "Service: " (mapcar 'car volumes) nil t)) + volumes) (car volumes))) (service (car volume)) (sub-project (f-join project (cadr volume))) From 97135d933db4567fd817c51b3c93c94b2864395e Mon Sep 17 00:00:00 2001 From: Artem Malyshev Date: Thu, 12 Sep 2019 21:15:52 +0300 Subject: [PATCH 06/27] MAINTAINER WANTED! --- README.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.markdown b/README.markdown index 4a804eb..98995c6 100644 --- a/README.markdown +++ b/README.markdown @@ -1,3 +1,8 @@ +# MAINTAINER WANTED + +* https://twitter.com/proofit404/status/1171919301789593601 +* https://www.reddit.com/r/emacs/comments/d34qk7/im_looking_for_maintainers_for_anacondamode/ + # Pythonic [![MELPA](http://www.melpa.org/packages/pythonic-badge.svg)](http://www.melpa.org/#/pythonic) [![MELPA Stable](https://stable.melpa.org/packages/pythonic-badge.svg)](https://stable.melpa.org/#/pythonic) Utility functions for writing pythonic emacs package. From 29f8049e56141805b0ee1a2c5fc62c3b027aa736 Mon Sep 17 00:00:00 2001 From: Troy Hinckley Date: Wed, 25 Sep 2019 11:02:14 -0700 Subject: [PATCH 07/27] Revert "MAINTAINER WANTED!" This reverts commit 97135d933db4567fd817c51b3c93c94b2864395e. --- README.markdown | 5 ----- 1 file changed, 5 deletions(-) diff --git a/README.markdown b/README.markdown index 98995c6..4a804eb 100644 --- a/README.markdown +++ b/README.markdown @@ -1,8 +1,3 @@ -# MAINTAINER WANTED - -* https://twitter.com/proofit404/status/1171919301789593601 -* https://www.reddit.com/r/emacs/comments/d34qk7/im_looking_for_maintainers_for_anacondamode/ - # Pythonic [![MELPA](http://www.melpa.org/packages/pythonic-badge.svg)](http://www.melpa.org/#/pythonic) [![MELPA Stable](https://stable.melpa.org/packages/pythonic-badge.svg)](https://stable.melpa.org/#/pythonic) Utility functions for writing pythonic emacs package. From 9ef443aa5bf00a19529b16cfe10091ac24178276 Mon Sep 17 00:00:00 2001 From: riscy Date: Sun, 20 Oct 2019 18:33:03 -0700 Subject: [PATCH 08/27] Update Package-Requires for `python-shell-with-environment` --- pythonic.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonic.el b/pythonic.el index 57e4b8d..16443cc 100644 --- a/pythonic.el +++ b/pythonic.el @@ -5,7 +5,7 @@ ;; Author: Artem Malyshev ;; URL: https://github.com/proofit404/pythonic ;; Version: 0.1.1 -;; Package-Requires: ((emacs "25") (s "1.9") (f "0.17.2")) +;; Package-Requires: ((emacs "25.1") (s "1.9") (f "0.17.2")) ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by From ba9af8ce302579a2b2097b867a35a9fc0bc4bceb Mon Sep 17 00:00:00 2001 From: riscy Date: Sun, 20 Oct 2019 18:34:02 -0700 Subject: [PATCH 09/27] Sharp-quote `apply` and `mapcar` functions --- pythonic.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pythonic.el b/pythonic.el index 16443cc..ce796b7 100644 --- a/pythonic.el +++ b/pythonic.el @@ -236,7 +236,7 @@ print(json.dumps(yaml.safe_load(open(sys.argv[-1], 'r')))) (assoc (if pythonic-docker-compose-service-name pythonic-docker-compose-service-name - (completing-read "Service: " (mapcar 'car volumes) nil t)) + (completing-read "Service: " (mapcar #'car volumes) nil t)) volumes) (car volumes))) (service (car volume)) @@ -266,7 +266,7 @@ arguments passed to `call-process'. CWD will be working directory for running process." (let ((default-directory (pythonic-aliased-path (or cwd default-directory)))) (python-shell-with-environment - (apply 'process-file pythonic-interpreter file buffer display args)))) + (apply #'process-file pythonic-interpreter file buffer display args)))) (cl-defun pythonic-start-process (&key process buffer args cwd filter sentinel (query-on-exit t)) "Pythonic wrapper around `start-process'. @@ -280,7 +280,7 @@ function if necessary. QUERY-ON-EXIT will be corresponding process flag." (let ((default-directory (pythonic-aliased-path (or cwd default-directory)))) (python-shell-with-environment - (let ((process (apply 'start-file-process process buffer pythonic-interpreter args))) + (let ((process (apply #'start-file-process process buffer pythonic-interpreter args))) (when filter (set-process-filter process filter)) (when sentinel From f577f155fb0c6e57b3ff82447ac25dcb3ca0080f Mon Sep 17 00:00:00 2001 From: Troy Hinckley Date: Wed, 4 Mar 2020 11:01:11 -0800 Subject: [PATCH 10/27] Fix Jedi not handling tilde in file paths Closes #383 --- pythonic.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonic.el b/pythonic.el index ce796b7..ff77bc6 100644 --- a/pythonic.el +++ b/pythonic.el @@ -132,7 +132,7 @@ Take FILENAME from the perspective of the localhost and translate it to the FILENAME Python process can read. Python can be running locally or remotely. FILENAME can have local or tramp format. Result will have local format." - (let ((alias (pythonic-aliased-path filename))) + (let ((alias (pythonic-aliased-path (expand-file-name filename)))) (if (tramp-tramp-file-p alias) (tramp-file-name-localname (tramp-dissect-file-name alias)) alias))) From 7d67c7acab01143ac27e87d74b481d176448ed2d Mon Sep 17 00:00:00 2001 From: John Collins Date: Thu, 30 Jul 2020 22:18:39 -0700 Subject: [PATCH 11/27] Support sshx as SSH remote method name --- pythonic.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonic.el b/pythonic.el index ff77bc6..b470bb7 100644 --- a/pythonic.el +++ b/pythonic.el @@ -56,7 +56,7 @@ (defun pythonic-remote-ssh-p () "Determine ssh remote virtual environment." (and (pythonic-remote-p) - (s-equals-p (pythonic-remote-method) "ssh"))) + (member (pythonic-remote-method) '("ssh" "sshx")))) (defun pythonic-remote-vagrant-p () "Determine vagrant remote virtual environment." From e0e5cc882f2f1316268ec461a34d4be8abc313b7 Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Fri, 22 Jan 2021 13:47:53 +0100 Subject: [PATCH 12/27] Release version 0.2 --- pythonic.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pythonic.el b/pythonic.el index b470bb7..1bfd1d9 100644 --- a/pythonic.el +++ b/pythonic.el @@ -1,10 +1,10 @@ ;;; pythonic.el --- Utility functions for writing pythonic emacs package. -*- lexical-binding: t; -*- -;; Copyright (C) 2015-2019 by Artem Malyshev +;; Copyright (C) 2015-2021 by Artem Malyshev ;; Author: Artem Malyshev ;; URL: https://github.com/proofit404/pythonic -;; Version: 0.1.1 +;; Version: 0.2 ;; Package-Requires: ((emacs "25.1") (s "1.9") (f "0.17.2")) ;; This program is free software; you can redistribute it and/or modify From fe75bc17baae314bf8f5e0b12aad3fccfc6c5397 Mon Sep 17 00:00:00 2001 From: Jen-Chieh Date: Wed, 24 Mar 2021 14:09:07 +0800 Subject: [PATCH 13/27] Fix badge link --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 4a804eb..7fa4c9b 100644 --- a/README.markdown +++ b/README.markdown @@ -1,4 +1,4 @@ -# Pythonic [![MELPA](http://www.melpa.org/packages/pythonic-badge.svg)](http://www.melpa.org/#/pythonic) [![MELPA Stable](https://stable.melpa.org/packages/pythonic-badge.svg)](https://stable.melpa.org/#/pythonic) +# Pythonic [![MELPA](https://melpa.org/packages/pythonic-badge.svg)](https://melpa.org/#/pythonic) [![MELPA Stable](https://stable.melpa.org/packages/pythonic-badge.svg)](https://stable.melpa.org/#/pythonic) Utility functions for writing pythonic emacs package. From c18a5bd8cb2ba59014b6b29b5bf1903bd2476a07 Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Sat, 23 Jul 2022 19:41:49 +0200 Subject: [PATCH 14/27] Deactivate virualenv when python-activate is calles with nil Fix #19 --- pythonic.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pythonic.el b/pythonic.el index 1bfd1d9..9a7f5cb 100644 --- a/pythonic.el +++ b/pythonic.el @@ -295,7 +295,8 @@ process flag." (defun pythonic-activate (virtualenv) "Activate python VIRTUALENV." (interactive "DEnv: ") - (setq python-shell-virtualenv-root (pythonic-python-readable-file-name virtualenv))) + (setq python-shell-virtualenv-root + (and virtualenv (pythonic-python-readable-file-name virtualenv)))) ;;;###autoload (defun pythonic-deactivate () From ad2ad0ce92e4d5e6ef698e4fb77ac89153eef301 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Mon, 21 Aug 2023 10:12:42 -0700 Subject: [PATCH 15/27] test: Add CI --- .github/dependabot.yml | 6 +++++ .github/workflows/test.yml | 52 ++++++++++++++++++++++++++++++++++++++ .gitignore | 3 +++ Eask | 19 ++++++++++++++ Makefile | 33 ++++++++++++++++++++++++ pythonic.el | 2 +- 6 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/test.yml create mode 100644 Eask create mode 100644 Makefile diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..253bcb7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: daily diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..bbc9581 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,52 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + emacs-version: + - 26.3 + - 27.2 + - 28.2 + - 29.1 + experimental: [false] + include: + - os: ubuntu-latest + emacs-version: snapshot + experimental: true + - os: macos-latest + emacs-version: snapshot + experimental: true + - os: windows-latest + emacs-version: snapshot + experimental: true + + steps: + - uses: actions/checkout@v3 + + - uses: jcs090218/setup-emacs@master + with: + version: ${{ matrix.emacs-version }} + + - uses: emacs-eask/setup-eask@master + with: + version: 'snapshot' + + - name: Run tests + run: + make ci diff --git a/.gitignore b/.gitignore index 0ef71f7..ac0a176 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ *~ .cask/ +.eask/ +/dist +*.elc .vagrant/ diff --git a/Eask b/Eask new file mode 100644 index 0000000..b9019ea --- /dev/null +++ b/Eask @@ -0,0 +1,19 @@ +(package "pythonic" + "0.2" + "Utility functions for writing pythonic emacs package") + +(website-url "https://github.com/proofit404/pythonic") +(keywords "convenience" "pythonic") + +(package-file "pythonic.el") + +(script "test" "echo \"Error: no test specified\" && exit 1") + +(source 'gnu) +(source 'melpa) + +(depends-on "emacs" "25.1") +(depends-on "s") +(depends-on "f") + +(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e92a368 --- /dev/null +++ b/Makefile @@ -0,0 +1,33 @@ +EMACS ?= emacs +EASK ?= eask + +.PHONY: clean checkdoc lint package install compile test + +ci: clean package install compile + +package: + @echo "Packaging..." + $(EASK) package + +install: + @echo "Installing..." + $(EASK) install + +compile: + @echo "Compiling..." + $(EASK) compile + +test: + @echo "Testing..." + $(EASK) test ert ./test/*.el + +checkdoc: + @echo "Run checkdoc..." + $(EASK) lint checkdoc + +lint: + @echo "Run package-lint..." + $(EASK) lint package + +clean: + $(EASK) clean all diff --git a/pythonic.el b/pythonic.el index 9a7f5cb..a24850b 100644 --- a/pythonic.el +++ b/pythonic.el @@ -1,4 +1,4 @@ -;;; pythonic.el --- Utility functions for writing pythonic emacs package. -*- lexical-binding: t; -*- +;;; pythonic.el --- Utility functions for writing pythonic emacs package -*- lexical-binding: t; -*- ;; Copyright (C) 2015-2021 by Artem Malyshev From 8968a2da42484dba25b104b358680f7f7ee0ceac Mon Sep 17 00:00:00 2001 From: JenChieh Date: Mon, 21 Aug 2023 10:22:56 -0700 Subject: [PATCH 16/27] fix: Add keywords --- pythonic.el | 1 + 1 file changed, 1 insertion(+) diff --git a/pythonic.el b/pythonic.el index a24850b..83611aa 100644 --- a/pythonic.el +++ b/pythonic.el @@ -6,6 +6,7 @@ ;; URL: https://github.com/proofit404/pythonic ;; Version: 0.2 ;; Package-Requires: ((emacs "25.1") (s "1.9") (f "0.17.2")) +;; Keywords: convenience pythonic ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by From 10634d3c156fc1c091230e1c0c5410cb0eda298a Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Mon, 21 Aug 2023 10:25:27 -0700 Subject: [PATCH 17/27] Add CI badge --- README.markdown | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 7fa4c9b..40c13b8 100644 --- a/README.markdown +++ b/README.markdown @@ -1,4 +1,9 @@ -# Pythonic [![MELPA](https://melpa.org/packages/pythonic-badge.svg)](https://melpa.org/#/pythonic) [![MELPA Stable](https://stable.melpa.org/packages/pythonic-badge.svg)](https://stable.melpa.org/#/pythonic) +[![MELPA](https://melpa.org/packages/pythonic-badge.svg)](https://melpa.org/#/pythonic) +[![MELPA Stable](https://stable.melpa.org/packages/pythonic-badge.svg)](https://stable.melpa.org/#/pythonic) + +# Pythonic + +[![CI](https://github.com/pythonic-emacs/pythonic/actions/workflows/test.yml/badge.svg)](https://github.com/pythonic-emacs/pythonic/actions/workflows/test.yml) Utility functions for writing pythonic emacs package. From 42df787123c3c2495837dc95f7738b8da5ed347c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 11:35:41 +0000 Subject: [PATCH 18/27] Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bbc9581..fe3a9da 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: experimental: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: jcs090218/setup-emacs@master with: From 8250de0c1bc27e46175d11cfc14e5dac308cc02e Mon Sep 17 00:00:00 2001 From: JenChieh Date: Fri, 19 Jan 2024 18:02:34 -0800 Subject: [PATCH 19/27] chore: Test 29.2 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fe3a9da..2f321ef 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: - 26.3 - 27.2 - 28.2 - - 29.1 + - 29.2 experimental: [false] include: - os: ubuntu-latest From 415cb10c6be935797e046cec751c6b9dbee3f63c Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Wed, 27 Mar 2024 00:11:49 -0700 Subject: [PATCH 20/27] ci: Bump Emacs 29.x to 3 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2f321ef..c533da9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: - 26.3 - 27.2 - 28.2 - - 29.2 + - 29.3 experimental: [false] include: - os: ubuntu-latest From 00f8cafe02bdac0f3e562ffe6881ce654c8eb588 Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Tue, 7 May 2024 22:51:57 -0700 Subject: [PATCH 21/27] ci: Exclude macos tests below 27.x --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c533da9..cffa08b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,6 +35,11 @@ jobs: - os: windows-latest emacs-version: snapshot experimental: true + exclude: + - os: macos-latest + emacs-version: 26.3 + - os: macos-latest + emacs-version: 27.2 steps: - uses: actions/checkout@v4 From c1e5643e044f1faaf6ecfadc719b981c048aeb79 Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Sun, 21 Jul 2024 03:59:05 -0700 Subject: [PATCH 22/27] ci: Test Emacs 29.4 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cffa08b..950269d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: - 26.3 - 27.2 - 28.2 - - 29.3 + - 29.4 experimental: [false] include: - os: ubuntu-latest From 29464023d3f82b676bd67c2d972dc4613165114f Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Wed, 12 Feb 2025 21:32:24 -0800 Subject: [PATCH 23/27] Update .gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index ac0a176..08dcc82 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ /dist *.elc .vagrant/ + +# OS generated +.DS_Store From 9eff417654c1fc3eca367c357b5b2cddb3fd8ce4 Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Mon, 24 Feb 2025 09:59:40 -0800 Subject: [PATCH 24/27] c --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 950269d..3acc1ba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,7 @@ jobs: - 27.2 - 28.2 - 29.4 + - 30.1 experimental: [false] include: - os: ubuntu-latest From 5daa1b9f589c2faf0ee8165dbb470a4dc752122f Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Tue, 22 Apr 2025 16:21:40 -0700 Subject: [PATCH 25/27] fix: Warning missing lexical-binding cookie --- Eask | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Eask b/Eask index b9019ea..6e09991 100644 --- a/Eask +++ b/Eask @@ -1,3 +1,5 @@ +;; -*- mode: eask; lexical-binding: t -*- + (package "pythonic" "0.2" "Utility functions for writing pythonic emacs package") From 44d8e661149392cbb3082657b0887ea05082148e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Aug 2025 12:17:07 -0700 Subject: [PATCH 26/27] Bump actions/checkout from 4 to 5 (#24) Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3acc1ba..6d8b2a5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,7 +43,7 @@ jobs: emacs-version: 27.2 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: jcs090218/setup-emacs@master with: From bf364a29e2f21828941ee3d11a27127bc260740f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 04:05:14 -0800 Subject: [PATCH 27/27] Bump actions/checkout from 5 to 6 (#25) Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6d8b2a5..6602f60 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,7 +43,7 @@ jobs: emacs-version: 27.2 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: jcs090218/setup-emacs@master with: