unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#31428] [PATCH 0/1] gnu: Add python-glob2
@ 2018-05-12  9:47 Fis Trivial
  2018-05-12  9:51 ` [bug#31428] [PATCH 1/1] " Fis Trivial
  0 siblings, 1 reply; 6+ messages in thread
From: Fis Trivial @ 2018-05-12  9:47 UTC (permalink / raw)
  To: 31428


Lint warns about "python-glob2@0.6: use @code or similar ornament instead
of quotes". But I don't know what to do, please add correction before
apply.

Thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#31428] [PATCH 1/1] gnu: Add python-glob2.
  2018-05-12  9:47 [bug#31428] [PATCH 0/1] gnu: Add python-glob2 Fis Trivial
@ 2018-05-12  9:51 ` Fis Trivial
  2018-05-12 10:14   ` Andreas Enge
  0 siblings, 1 reply; 6+ messages in thread
From: Fis Trivial @ 2018-05-12  9:51 UTC (permalink / raw)
  To: 31428@debbugs.gnu.org



* gnu/packages/python.scm (python-glob2, python2-glob2): New variables.
---
 gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f942a2be4..20cc5b20c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -13297,3 +13297,37 @@ generators and Python 3.7's context managers into Python 3.5.")
 manager compatible with @code{asyncio}.")
     (license license:asl2.0)))
 
+(define-public python-glob2
+  (package
+    (name "python-glob2")
+    (version "0.6")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/miracle2k/python-glob2/archive/"
+                    version
+                    ".tar.gz"))
+              (sha256
+               (base32
+                "0ja168f0dz4kbz4m06dm0rd3acaypk6hjx2km541pw22y9s40mag"))
+              (file-name (string-append name "-" version ".tar.gz"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/miracle2k/python-glob2/")
+    (synopsis "Extended Version of the python buildin glob module")
+    (description "This is an extended version of Python's builtin glob module
+@url{http://docs.python.org/library/glob.html} which adds:
+
+@itemize
+@item The ability to capture the text matched by glob patterns, and return
+those matches alongside the filenames.
+@item A recursive '**' globbing syntax, akin for example to the globstar
+option of the bash shell.
+@item The ability to replace the filesystem functions used, in order to glob
+on virtual filesystems.
+@item Compatible with Python 2 and Python 3 (tested with 3.3).
+@end itemize
+It's currently based on the glob code from Python 3.3.1.")
+    (license license:bsd-2)))
+
+(define-public python2-glob2
+  (package-with-python2 python-glob2))
-- 
2.14.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#31428] [PATCH 1/1] gnu: Add python-glob2.
  2018-05-12  9:51 ` [bug#31428] [PATCH 1/1] " Fis Trivial
@ 2018-05-12 10:14   ` Andreas Enge
  2018-05-12 10:41     ` Fis Trivial
  2018-05-12 10:44     ` [bug#31428] [PATCH] " Fis Trivial
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Enge @ 2018-05-12 10:14 UTC (permalink / raw)
  To: Fis Trivial; +Cc: 31428@debbugs.gnu.org

Hello,

I think the error message applies to the following line in the description
field:

On Sat, May 12, 2018 at 09:51:10AM +0000, Fis Trivial wrote:
> +@item A recursive '**' globbing syntax, akin for example to the globstar

It looks like replacing
  '**'
by
  @code{**}
could solve the problem.

Andreas

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#31428] [PATCH 1/1] gnu: Add python-glob2.
  2018-05-12 10:14   ` Andreas Enge
@ 2018-05-12 10:41     ` Fis Trivial
  2018-05-12 10:44     ` [bug#31428] [PATCH] " Fis Trivial
  1 sibling, 0 replies; 6+ messages in thread
From: Fis Trivial @ 2018-05-12 10:41 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 31428@debbugs.gnu.org


Andreas Enge writes:

> Hello,
>
> I think the error message applies to the following line in the description
> field:
>
> On Sat, May 12, 2018 at 09:51:10AM +0000, Fis Trivial wrote:
>> +@item A recursive '**' globbing syntax, akin for example to the globstar
>
> It looks like replacing
>   '**'
> by
>   @code{**}
> could solve the problem.
>
> Andreas

It turns out, its the quote in "Python's"(first line) and the quote in
last line before "currently" that recognized as double quotes. A new
patch will be sent.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#31428] [PATCH] gnu: Add python-glob2.
  2018-05-12 10:14   ` Andreas Enge
  2018-05-12 10:41     ` Fis Trivial
@ 2018-05-12 10:44     ` Fis Trivial
  2018-05-20 21:19       ` bug#31428: " Ludovic Courtès
  1 sibling, 1 reply; 6+ messages in thread
From: Fis Trivial @ 2018-05-12 10:44 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 31428@debbugs.gnu.org


* gnu/packages/python.scm (python-glob2, python2-glob2): New variables.
---
 gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f942a2be4..ab634d182 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -13297,3 +13297,37 @@ generators and Python 3.7's context managers into Python 3.5.")
 manager compatible with @code{asyncio}.")
     (license license:asl2.0)))

+(define-public python-glob2
+  (package
+    (name "python-glob2")
+    (version "0.6")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/miracle2k/python-glob2/archive/"
+                    version
+                    ".tar.gz"))
+              (sha256
+               (base32
+                "0ja168f0dz4kbz4m06dm0rd3acaypk6hjx2km541pw22y9s40mag"))
+              (file-name (string-append name "-" version ".tar.gz"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/miracle2k/python-glob2/")
+    (synopsis "Extended Version of the python buildin glob module")
+    (description "This is an extended version of Python's builtin glob module
+@url{http://docs.python.org/library/glob.html} which adds:
+
+@itemize
+@item The ability to capture the text matched by glob patterns, and return
+those matches alongside the filenames.
+@item A recursive @code{**} globbing syntax, akin for example to the globstar
+option of the bash shell.
+@item The ability to replace the filesystem functions used, in order to glob
+on virtual filesystems.
+@item Compatible with Python 2 and Python 3 (tested with 3.3).
+@end itemize
+Glob2 currently based on the glob code from Python 3.3.1.")
+    (license license:bsd-2)))
+
+(define-public python2-glob2
+  (package-with-python2 python-glob2))
--
2.14.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* bug#31428: [PATCH] gnu: Add python-glob2.
  2018-05-12 10:44     ` [bug#31428] [PATCH] " Fis Trivial
@ 2018-05-20 21:19       ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2018-05-20 21:19 UTC (permalink / raw)
  To: Fis Trivial; +Cc: 31428-done

[-- Attachment #1: Type: text/plain, Size: 171 bytes --]

Fis Trivial <ybbs.daans@hotmail.com> skribis:

> * gnu/packages/python.scm (python-glob2, python2-glob2): New variables.

Applied with the changes below, thanks!

Ludo'.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1439 bytes --]

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 8e8a0d788..31310ce75 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -13320,18 +13320,20 @@ manager compatible with @code{asyncio}.")
     (build-system python-build-system)
     (home-page "https://github.com/miracle2k/python-glob2/")
     (synopsis "Extended Version of the python buildin glob module")
-    (description "This is an extended version of Python's builtin glob module
-@url{http://docs.python.org/library/glob.html} which adds:
+    (description "This is an extended version of the Python
+@url{http://docs.python.org/library/glob.html, built-in glob module} which
+adds:
 
 @itemize
 @item The ability to capture the text matched by glob patterns, and return
-those matches alongside the filenames.
-@item A recursive @code{**} globbing syntax, akin for example to the globstar
-option of the bash shell.
-@item The ability to replace the filesystem functions used, in order to glob
-on virtual filesystems.
+those matches alongside the file names.
+@item A recursive @code{**} globbing syntax, akin for example to the
+@code{globstar} option of Bash.
+@item The ability to replace the file system functions used, in order to glob
+on virtual file systems.
 @item Compatible with Python 2 and Python 3 (tested with 3.3).
 @end itemize
+
 Glob2 currently based on the glob code from Python 3.3.1.")
     (license license:bsd-2)))
 

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-05-20 21:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-12  9:47 [bug#31428] [PATCH 0/1] gnu: Add python-glob2 Fis Trivial
2018-05-12  9:51 ` [bug#31428] [PATCH 1/1] " Fis Trivial
2018-05-12 10:14   ` Andreas Enge
2018-05-12 10:41     ` Fis Trivial
2018-05-12 10:44     ` [bug#31428] [PATCH] " Fis Trivial
2018-05-20 21:19       ` bug#31428: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).