GNU bug report logs - #72783
[PATCH 0/2] Add emacs-plz-media-type and emacs-plz-event-source

Previous Next

Package: guix-patches;

Reported by: Roman Scherer <roman <at> burningswell.com>

Date: Sat, 24 Aug 2024 10:07:01 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72783 in the body.
You can then email your comments to 72783 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#72783; Package guix-patches. (Sat, 24 Aug 2024 10:07:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Roman Scherer <roman <at> burningswell.com>:
New bug report received and forwarded. Copy sent to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org. (Sat, 24 Aug 2024 10:07:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Roman Scherer <roman <at> burningswell.com>
To: guix-patches <at> gnu.org
Cc: Roman Scherer <roman <at> burningswell.com>
Subject: [PATCH 0/2] Add emacs-plz-media-type and emacs-plz-event-source
Date: Sat, 24 Aug 2024 12:05:08 +0200
Hello Guix,

this patch series adds two of my Emacs Lisp libraries:

- emacs-plz-media-type
- emacs-plz-event-source

Could you please review it?

Thanks, Roman.

Roman Scherer (2):
  gnu: Add emacs-plz-media-type.
  gnu: Add emacs-plz-event-source.

 gnu/packages/emacs-xyz.scm | 52 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)


base-commit: d48af5cca84914d44b032d0bf0820640ebbe7a4b
--
2.45.2




Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#72783; Package guix-patches. (Sat, 24 Aug 2024 10:11:02 GMT) Full text and rfc822 format available.

Message #8 received at 72783 <at> debbugs.gnu.org (full text, mbox):

From: Roman Scherer <roman <at> burningswell.com>
To: 72783 <at> debbugs.gnu.org
Cc: Roman Scherer <roman <at> burningswell.com>
Subject: [PATCH 1/2] gnu: Add emacs-plz-media-type.
Date: Sat, 24 Aug 2024 12:08:57 +0200
* gnu/packages/emacs-xyz.scm (emacs-plz-media-type): New variable.

Change-Id: Ib38d91e1cc642afd34b480967a34e0db0e28e4c6
---
 gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index cb7269d6b9..7ce112ea00 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21460,6 +21460,34 @@ (define-public emacs-plz
 which avoids some of the issues with using Emacs’s built-in Url library.")
     (license license:gpl3+)))
 
+(define-public emacs-plz-media-type
+  (package
+    (name "emacs-plz-media-type")
+    (version "0.2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/r0man/plz-media-type")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1bxrinp276rzz1jwnqrs5xginm96vzxr0b1k5q3y56lnin8sp18x"))))
+    (build-system emacs-build-system)
+    (propagated-inputs (list emacs-plz))
+    (arguments (list #:tests? #f))
+    (home-page "https://github.com/r0man/plz-media-type")
+    (synopsis "HTTP media type extension for plz.el")
+    (description "The plz-media-type library enhances MIME type
+handling for HTTP requests within Emacs.  It leverages the plz.el HTTP
+library for networking calls and introduces a mechanism to process
+responses based on the content type header.  This library defines
+various classes and methods for parsing and processing standard MIME
+types, including JSON, XML, HTML, and binary data.  It is used in the
+Emacs LLM library to handle decoding of various streaming and
+non-streaming media type formats.")
+    (license license:gpl3+)))
+
 (define-public emacs-ement
   (package
     (name "emacs-ement")
-- 
2.45.2





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#72783; Package guix-patches. (Sat, 24 Aug 2024 10:12:01 GMT) Full text and rfc822 format available.

Message #11 received at 72783 <at> debbugs.gnu.org (full text, mbox):

From: Roman Scherer <roman <at> burningswell.com>
To: 72783 <at> debbugs.gnu.org
Cc: Roman Scherer <roman <at> burningswell.com>
Subject: [PATCH 2/2] gnu: Add emacs-plz-event-source.
Date: Sat, 24 Aug 2024 12:08:58 +0200
* gnu/packages/emacs-xyz.scm (emacs-plz-event-source): New variable.

Change-Id: I66fc237fb191c0406fcf2d08c2938264e2dd9b95
---
 gnu/packages/emacs-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 7ce112ea00..a3340f1a36 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21488,6 +21488,30 @@ (define-public emacs-plz-media-type
 non-streaming media type formats.")
     (license license:gpl3+)))
 
+(define-public emacs-plz-event-source
+  (package
+    (name "emacs-plz-event-source")
+    (version "0.1.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/r0man/plz-event-source")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1rg3dmaqnhzvzqsyfnk3y77s88jrjpwpzkj1fyz40j8b184q3qcs"))))
+    (build-system emacs-build-system)
+    (propagated-inputs (list emacs-plz-media-type))
+    (arguments (list #:tests? #f))
+    (home-page "https://github.com/r0man/plz-event-source")
+    (synopsis "Server-Sent Events extension for plz.el")
+    (description "The plz-event-source library provides a @code{plz-media-type}, a
+parser and an event source implementation for the @acronym{SSE, Server
+Sent Event} protocol.  It is used in the Emacs LLM library to handle
+server sent events.")
+    (license license:gpl3+)))
+
 (define-public emacs-ement
   (package
     (name "emacs-ement")
-- 
2.45.2





Information forwarded to guix-patches <at> gnu.org:
bug#72783; Package guix-patches. (Sat, 24 Aug 2024 10:35:03 GMT) Full text and rfc822 format available.

Message #14 received at 72783 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Roman Scherer <roman <at> burningswell.com>, 72783 <at> debbugs.gnu.org
Cc: Katherine Cox-Buday <cox.katherine.e+guix <at> gmail.com>,
 Andrew Tropin <andrew <at> trop.in>
Subject: Re: [bug#72783] [PATCH 1/2] gnu: Add emacs-plz-media-type.
Date: Sat, 24 Aug 2024 12:32:44 +0200
Am Samstag, dem 24.08.2024 um 12:08 +0200 schrieb Roman Scherer:
> * gnu/packages/emacs-xyz.scm (emacs-plz-media-type): New variable.
> 
> Change-Id: Ib38d91e1cc642afd34b480967a34e0db0e28e4c6
> ---
>  gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)
> 
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index cb7269d6b9..7ce112ea00 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -21460,6 +21460,34 @@ (define-public emacs-plz
>  which avoids some of the issues with using Emacs’s built-in Url
> library.")
>      (license license:gpl3+)))
>  
> +(define-public emacs-plz-media-type
> +  (package
> +    (name "emacs-plz-media-type")
> +    (version "0.2.1")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/r0man/plz-media-type")
> +             (commit (string-append "v" version))))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32
> "1bxrinp276rzz1jwnqrs5xginm96vzxr0b1k5q3y56lnin8sp18x"))))
> +    (build-system emacs-build-system)
> +    (propagated-inputs (list emacs-plz))
> +    (arguments (list #:tests? #f))
> +    (home-page "https://github.com/r0man/plz-media-type")
> +    (synopsis "HTTP media type extension for plz.el")
> +    (description "The plz-media-type library enhances MIME type
> +handling for HTTP requests within Emacs.  It leverages the plz.el
> HTTP
> +library for networking calls and introduces a mechanism to process
> +responses based on the content type header.  This library defines
> +various classes and methods for parsing and processing standard MIME
> +types, including JSON, XML, HTML, and binary data."
SGTM.
> It is used in the
> +Emacs LLM library to handle decoding of various streaming and
> +non-streaming media type formats.")
I'm not sure whether this bit is necessary.  There are hopefully useful
technologies out there that also benefit from plz.

Cheers




Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#72783; Package guix-patches. (Sat, 24 Aug 2024 11:20:01 GMT) Full text and rfc822 format available.

Message #17 received at 72783 <at> debbugs.gnu.org (full text, mbox):

From: Roman Scherer <roman <at> burningswell.com>
To: 72783 <at> debbugs.gnu.org
Cc: Roman Scherer <roman <at> burningswell.com>
Subject: [PATCH v2 1/2] gnu: Add emacs-plz-media-type.
Date: Sat, 24 Aug 2024 13:17:25 +0200
* gnu/packages/emacs-xyz.scm (emacs-plz-media-type): New variable.

Change-Id: Ib38d91e1cc642afd34b480967a34e0db0e28e4c6
---
 gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index cb7269d6b9..8f78926393 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21460,6 +21460,32 @@ (define-public emacs-plz
 which avoids some of the issues with using Emacs’s built-in Url library.")
     (license license:gpl3+)))
 
+(define-public emacs-plz-media-type
+  (package
+    (name "emacs-plz-media-type")
+    (version "0.2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/r0man/plz-media-type")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1bxrinp276rzz1jwnqrs5xginm96vzxr0b1k5q3y56lnin8sp18x"))))
+    (build-system emacs-build-system)
+    (propagated-inputs (list emacs-plz))
+    (arguments (list #:tests? #f))
+    (home-page "https://github.com/r0man/plz-media-type")
+    (synopsis "HTTP media type extension for plz.el")
+    (description "The plz-media-type library enhances MIME type handling for
+HTTP requests within Emacs.  It leverages the plz.el HTTP library for
+networking calls and introduces a mechanism to process responses based on the
+content type header.  This library defines various classes and methods for
+parsing and processing standard MIME types, including JSON, XML, HTML, and
+binary data, in a streaming and non-streaming way.")
+    (license license:gpl3+)))
+
 (define-public emacs-ement
   (package
     (name "emacs-ement")

base-commit: d48af5cca84914d44b032d0bf0820640ebbe7a4b
-- 
2.45.2





Information forwarded to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#72783; Package guix-patches. (Sat, 24 Aug 2024 11:20:02 GMT) Full text and rfc822 format available.

Message #20 received at 72783 <at> debbugs.gnu.org (full text, mbox):

From: Roman Scherer <roman <at> burningswell.com>
To: 72783 <at> debbugs.gnu.org
Cc: Roman Scherer <roman <at> burningswell.com>
Subject: [PATCH v2 2/2] gnu: Add emacs-plz-event-source.
Date: Sat, 24 Aug 2024 13:17:26 +0200
* gnu/packages/emacs-xyz.scm (emacs-plz-event-source): New variable.

Change-Id: I66fc237fb191c0406fcf2d08c2938264e2dd9b95
---
 gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 8f78926393..cc845588f1 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21486,6 +21486,29 @@ (define-public emacs-plz-media-type
 binary data, in a streaming and non-streaming way.")
     (license license:gpl3+)))
 
+(define-public emacs-plz-event-source
+  (package
+    (name "emacs-plz-event-source")
+    (version "0.1.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/r0man/plz-event-source")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1rg3dmaqnhzvzqsyfnk3y77s88jrjpwpzkj1fyz40j8b184q3qcs"))))
+    (build-system emacs-build-system)
+    (propagated-inputs (list emacs-plz-media-type))
+    (arguments (list #:tests? #f))
+    (home-page "https://github.com/r0man/plz-event-source")
+    (synopsis "Server-Sent Events extension for plz.el")
+    (description "The plz-event-source library provides a @code{plz-media-type}, a
+parser and an event source implementation for the @acronym{SSE, Server
+Sent Event} protocol.")
+    (license license:gpl3+)))
+
 (define-public emacs-ement
   (package
     (name "emacs-ement")
-- 
2.45.2





Information forwarded to guix-patches <at> gnu.org:
bug#72783; Package guix-patches. (Sat, 24 Aug 2024 11:21:02 GMT) Full text and rfc822 format available.

Message #23 received at 72783 <at> debbugs.gnu.org (full text, mbox):

From: Roman Scherer <roman.scherer <at> burningswell.com>
To: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Cc: Roman Scherer <roman <at> burningswell.com>,
 Katherine Cox-Buday <cox.katherine.e+guix <at> gmail.com>, 72783 <at> debbugs.gnu.org,
 Andrew Tropin <andrew <at> trop.in>
Subject: Re: [bug#72783] [PATCH 1/2] gnu: Add emacs-plz-media-type.
Date: Sat, 24 Aug 2024 13:19:01 +0200
[Message part 1 (text/plain, inline)]
Liliana Marie Prikler <liliana.prikler <at> gmail.com> writes:

Hi Liliana,

thanks for the review. I removed that bit and sent v2 of the series.

Thanks, Roman.

> Am Samstag, dem 24.08.2024 um 12:08 +0200 schrieb Roman Scherer:
>> * gnu/packages/emacs-xyz.scm (emacs-plz-media-type): New variable.
>> 
>> Change-Id: Ib38d91e1cc642afd34b480967a34e0db0e28e4c6
>> ---
>>  gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
>>  1 file changed, 28 insertions(+)
>> 
>> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
>> index cb7269d6b9..7ce112ea00 100644
>> --- a/gnu/packages/emacs-xyz.scm
>> +++ b/gnu/packages/emacs-xyz.scm
>> @@ -21460,6 +21460,34 @@ (define-public emacs-plz
>>  which avoids some of the issues with using Emacs’s built-in Url
>> library.")
>>      (license license:gpl3+)))
>>  
>> +(define-public emacs-plz-media-type
>> +  (package
>> +    (name "emacs-plz-media-type")
>> +    (version "0.2.1")
>> +    (source
>> +     (origin
>> +       (method git-fetch)
>> +       (uri (git-reference
>> +             (url "https://github.com/r0man/plz-media-type")
>> +             (commit (string-append "v" version))))
>> +       (file-name (git-file-name name version))
>> +       (sha256
>> +        (base32
>> "1bxrinp276rzz1jwnqrs5xginm96vzxr0b1k5q3y56lnin8sp18x"))))
>> +    (build-system emacs-build-system)
>> +    (propagated-inputs (list emacs-plz))
>> +    (arguments (list #:tests? #f))
>> +    (home-page "https://github.com/r0man/plz-media-type")
>> +    (synopsis "HTTP media type extension for plz.el")
>> +    (description "The plz-media-type library enhances MIME type
>> +handling for HTTP requests within Emacs.  It leverages the plz.el
>> HTTP
>> +library for networking calls and introduces a mechanism to process
>> +responses based on the content type header.  This library defines
>> +various classes and methods for parsing and processing standard MIME
>> +types, including JSON, XML, HTML, and binary data."
> SGTM.
>> It is used in the
>> +Emacs LLM library to handle decoding of various streaming and
>> +non-streaming media type formats.")
> I'm not sure whether this bit is necessary.  There are hopefully useful
> technologies out there that also benefit from plz.
>
> Cheers
[signature.asc (application/pgp-signature, inline)]

Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Mon, 26 Aug 2024 20:38:01 GMT) Full text and rfc822 format available.

Notification sent to Roman Scherer <roman <at> burningswell.com>:
bug acknowledged by developer. (Mon, 26 Aug 2024 20:38:02 GMT) Full text and rfc822 format available.

Message #28 received at 72783-done <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Roman Scherer <roman <at> burningswell.com>
Cc: 72783-done <at> debbugs.gnu.org
Subject: Re: [bug#72783] [PATCH 0/2] Add emacs-plz-media-type and
 emacs-plz-event-source
Date: Mon, 26 Aug 2024 22:36:00 +0200
Hello,

Roman Scherer <roman <at> burningswell.com> writes:

> this patch series adds two of my Emacs Lisp libraries:
>
> - emacs-plz-media-type
> - emacs-plz-event-source

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou






bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 24 Sep 2024 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 264 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.