* [bug#53190] [PATCH 0/5] Add python-zeep.
@ 2022-01-11 16:22 Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 1/5] gnu: Add python-flake8-blind-except Vinicius Monego
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Vinicius Monego @ 2022-01-11 16:22 UTC (permalink / raw)
To: 53190; +Cc: Vinicius Monego
This patchset depends on 53179 which in turn depends on 52696.
Vinicius Monego (5):
gnu: Add python-flake8-blind-except.
gnu: Add python-flake8-debugger.
gnu: Add python-flake8-imports.
gnu: python-requests-file: Update to 1.5.1.
gnu: Add python-zeep.
gnu/packages/python-web.scm | 69 ++++++++++++++++++++++++++++
gnu/packages/python-xyz.scm | 89 ++++++++++++++++++++++++++++++++++---
2 files changed, 152 insertions(+), 6 deletions(-)
base-commit: 9d613c36de1ea52e745d30bad841b6cdeaca65f4
prerequisite-patch-id: 267789c5685caf6a0bf7ff2cd3053da1f7ce27c1
prerequisite-patch-id: 034f8f4ee8a63f6f519a85077842c54e16b7ad3c
prerequisite-patch-id: 1e1587ab624f2c9f111a016241e61d18633bb24d
--
2.30.2
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#53190] [PATCH 1/5] gnu: Add python-flake8-blind-except.
2022-01-11 16:22 [bug#53190] [PATCH 0/5] Add python-zeep Vinicius Monego
@ 2022-01-11 16:25 ` Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 2/5] gnu: Add python-flake8-debugger Vinicius Monego
` (3 more replies)
2022-06-15 12:49 ` [bug#53190] [PATCH 0/5] " Hartmut Goebel
2022-06-16 7:33 ` bug#53190: close Hartmut Goebel
2 siblings, 4 replies; 8+ messages in thread
From: Vinicius Monego @ 2022-01-11 16:25 UTC (permalink / raw)
To: 53190; +Cc: Vinicius Monego
* gnu/packages/python-xyz.scm (python-flake8-blind-except): New variable.
---
gnu/packages/python-xyz.scm | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 302a81b4f5..7d65699c09 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -80,7 +80,7 @@
;;; Copyright © 2020 Josh Holland <josh@inv.alid.pw>
;;; Copyright © 2020 Yuval Kogman <nothingmuch@woobling.org>
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
-;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2020, 2021, 2022 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury@disroot.org>
;;; Copyright © 2020 Hendursaga <hendursaga@yahoo.com>
;;; Copyright © 2020 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
@@ -10028,6 +10028,29 @@ cyclomatic complexity of Python source code.")
(list python-pycodestyle-2.6 python-entrypoints python-pyflakes-2.2
python-mccabe))))
+(define-public python-flake8-blind-except
+ (package
+ (name "python-flake8-blind-except")
+ (version "0.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "flake8-blind-except" version))
+ (sha256
+ (base32 "1r84ya26czdwk2vv8abryp9i83av0dw0gzm30v005dlwl6hn1a02"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f)) ; no tests
+ (native-inputs
+ (list python-pep8))
+ (propagated-inputs
+ (list python-setuptools)) ; listed in install_requires
+ (home-page "https://github.com/elijahandrews/flake8-blind-except")
+ (synopsis "Check for blind @code{except:} statements")
+ (description "This package provides a flake8 extension that checks for
+blind @code{except:} statements.")
+ (license license:expat)))
+
(define-public python-flake8-bugbear
(package
(name "python-flake8-bugbear")
--
2.30.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#53190] [PATCH 2/5] gnu: Add python-flake8-debugger.
2022-01-11 16:25 ` [bug#53190] [PATCH 1/5] gnu: Add python-flake8-blind-except Vinicius Monego
@ 2022-01-11 16:25 ` Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 3/5] gnu: Add python-flake8-imports Vinicius Monego
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Vinicius Monego @ 2022-01-11 16:25 UTC (permalink / raw)
To: 53190; +Cc: Vinicius Monego
* gnu/packages/python-xyz.scm (python-flake8-debugger): New variable.
---
gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7d65699c09..ded88efc88 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10111,6 +10111,29 @@ These should be used in preference to using a backslash for line continuation.
@end quotation")
(license license:asl2.0)))
+(define-public python-flake8-debugger
+ (package
+ (name "python-flake8-debugger")
+ (version "4.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "flake8-debugger" version))
+ (sha256
+ (base32 "19pdfx0rb3k1i8hxfjdi8ndd6ayzq8g1041j8zdq256vyxvwfgg4"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f)) ; no tests in PyPI and no setup.py in GitHub
+ (propagated-inputs
+ (list python-flake8 python-pycodestyle python-six))
+ (home-page "https://github.com/jbkahn/flake8-debugger")
+ (synopsis "@code{ipdb} and @code{pdb} statement checker plugin for flake8")
+ (description "This package provides a Flake8 plugin that checks for
+@code{ipdb} and @code{pdb} imports and set traces, as well as
+@code{from IPython.terminal.embed}, @code{import InteractiveShellEmbed}
+and @code{InteractiveShellEmbed()()}.")
+ (license license:expat)))
+
(define-public python-flake8-implicit-str-concat
(package
(name "python-flake8-implicit-str-concat")
--
2.30.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#53190] [PATCH 3/5] gnu: Add python-flake8-imports.
2022-01-11 16:25 ` [bug#53190] [PATCH 1/5] gnu: Add python-flake8-blind-except Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 2/5] gnu: Add python-flake8-debugger Vinicius Monego
@ 2022-01-11 16:25 ` Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 4/5] gnu: python-requests-file: Update to 1.5.1 Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 5/5] gnu: Add python-zeep Vinicius Monego
3 siblings, 0 replies; 8+ messages in thread
From: Vinicius Monego @ 2022-01-11 16:25 UTC (permalink / raw)
To: 53190; +Cc: Vinicius Monego
* gnu/packages/python-xyz.scm (python-flake8-imports): New variable.
---
gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ded88efc88..d1127a072d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10158,6 +10158,32 @@ the same line (which can be introduced by the code formatting tool Black), or
unnecessary plus operators for explicit string literal concatenation.")
(license license:expat)))
+(define-public python-flake8-imports
+ (package
+ (name "python-flake8-imports")
+ (version "0.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "flake8_imports" version))
+ (sha256
+ (base32 "1m3b7j7fp3zbx2ayq318003dbx549b1fa4shas6g1bv566yz246k"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f ; no tests
+ #:phases
+ (modify-phases %standard-phases
+ ;; This package is technically compatible with isort < 5, but we only
+ ;; have isort >= 5.
+ (delete 'sanity-check))))
+ (propagated-inputs
+ (list python-flake8 python-isort))
+ ;; Homepage in PyPI doesn't exist, the package is abandoned.
+ (home-page "https://pypi.org/project/flake8-imports/")
+ (synopsis "Isort extension for Flake8")
+ (description "This package provides an Isort extension for Flake8.")
+ (license license:expat)))
+
(define-public python-flake8-polyfill
(package
(name "python-flake8-polyfill")
--
2.30.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#53190] [PATCH 4/5] gnu: python-requests-file: Update to 1.5.1.
2022-01-11 16:25 ` [bug#53190] [PATCH 1/5] gnu: Add python-flake8-blind-except Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 2/5] gnu: Add python-flake8-debugger Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 3/5] gnu: Add python-flake8-imports Vinicius Monego
@ 2022-01-11 16:25 ` Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 5/5] gnu: Add python-zeep Vinicius Monego
3 siblings, 0 replies; 8+ messages in thread
From: Vinicius Monego @ 2022-01-11 16:25 UTC (permalink / raw)
To: 53190; +Cc: Vinicius Monego
* gnu/packages/python-xyz.scm (python-requests-file): Update to 1.5.1.
[source]: Make some cosmetic changes.
[arguments]<#:phases>: Override 'check phase.
[home-page]: Don't break line.
---
gnu/packages/python-xyz.scm | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d1127a072d..887b2f8579 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21713,19 +21713,24 @@ and corruption checks.")
(define-public python-requests-file
(package
(name "python-requests-file")
- (version "1.4.3")
+ (version "1.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "requests-file" version))
(sha256
- (base32
- "1yp2jaxg3v86pia0q512dg3hz6s9y5vzdivsgrba1kds05ial14g"))))
+ (base32 "13kx4k83i9zcv20h0fnmawwwdzhcmw1z97mqib1h379qsc445mq7"))))
(build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "tests/test_requests_file.py")))))))
(propagated-inputs
(list python-requests python-six))
- (home-page
- "https://github.com/dashea/requests-file")
+ (home-page "https://github.com/dashea/requests-file")
(synopsis "File transport adapter for Requests")
(description
"Requests-File is a transport adapter for use with the Requests Python
--
2.30.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#53190] [PATCH 5/5] gnu: Add python-zeep.
2022-01-11 16:25 ` [bug#53190] [PATCH 1/5] gnu: Add python-flake8-blind-except Vinicius Monego
` (2 preceding siblings ...)
2022-01-11 16:25 ` [bug#53190] [PATCH 4/5] gnu: python-requests-file: Update to 1.5.1 Vinicius Monego
@ 2022-01-11 16:25 ` Vinicius Monego
3 siblings, 0 replies; 8+ messages in thread
From: Vinicius Monego @ 2022-01-11 16:25 UTC (permalink / raw)
To: 53190; +Cc: Vinicius Monego
* gnu/packages/python-web.scm (python-zeep): New variable.
---
gnu/packages/python-web.scm | 69 +++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index c41860f4c9..98826d5e1f 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5176,6 +5176,75 @@ Plus all the standard features of requests:
@end itemize")
(license license:bsd-3)))
+(define-public python-zeep
+ (package
+ (name "python-zeep")
+ (version "4.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "zeep" version))
+ (sha256
+ (base32 "1ranr4hkjd2kbbhxa3is1qlgkankj3sml5gla6bqs0kbvpmg4rsq"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; There is a bug somewhere that makes platformdirs appear as verison
+ ;; 0.0.0 to setup.py. Remove it from the requirements.
+ (add-after 'unpack 'remove-requirement
+ (lambda _
+ (substitute* "setup.py"
+ ((".*platformdirs.*") ""))))
+ (add-before 'check 'set-home
+ (lambda _
+ (setenv "HOME" (getcwd)))) ; one test requires write access
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "-m" "pytest")))))))
+ (propagated-inputs
+ (list python-attrs
+ python-cached-property
+ python-isodate
+ python-lxml
+ python-platformdirs
+ python-pytz
+ python-requests
+ python-requests-file
+ python-requests-toolbelt))
+ (native-inputs
+ (list python-aiohttp
+ python-aioresponses
+ python-coverage
+ python-flake8
+ python-flake8-blind-except
+ python-flake8-debugger
+ python-flake8-imports
+ python-freezegun
+ python-isort
+ python-mock
+ python-pretend
+ python-pytest
+ python-pytest-asyncio
+ python-pytest-cov
+ python-pytest-httpx
+ python-requests-mock))
+ (home-page "https://docs.python-zeep.org/en/stable/")
+ (synopsis "Python SOAP client based on lxml / requests")
+ (description "Zeep is a Python SOAP client. Highlights:
+
+@itemize
+@item Build on top of @code{lxml} and @code{requests}.
+@item Support for Soap 1.1, Soap 1.2 and HTTP bindings.
+@item Support for WS-Addressing headers.
+@item Support for WSSE (UserNameToken / x.509 signing).
+@item Support for @code{asyncio} via @code{httpx}.
+@item Experimental support for XOP messages.
+@end itemize")
+ (license license:expat)))
+
(define-public python-wsgiprox
(package
(name "python-wsgiprox")
--
2.30.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#53190] [PATCH 0/5] Add python-zeep.
2022-01-11 16:22 [bug#53190] [PATCH 0/5] Add python-zeep Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 1/5] gnu: Add python-flake8-blind-except Vinicius Monego
@ 2022-06-15 12:49 ` Hartmut Goebel
2022-06-16 7:33 ` bug#53190: close Hartmut Goebel
2 siblings, 0 replies; 8+ messages in thread
From: Hartmut Goebel @ 2022-06-15 12:49 UTC (permalink / raw)
To: 53190
I'm currently working on reviewing and finishing this patch, will push
if done.
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#53190: close
2022-01-11 16:22 [bug#53190] [PATCH 0/5] Add python-zeep Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 1/5] gnu: Add python-flake8-blind-except Vinicius Monego
2022-06-15 12:49 ` [bug#53190] [PATCH 0/5] " Hartmut Goebel
@ 2022-06-16 7:33 ` Hartmut Goebel
2 siblings, 0 replies; 8+ messages in thread
From: Hartmut Goebel @ 2022-06-16 7:33 UTC (permalink / raw)
To: 53190-close
I pushed this as bee9247f57212ffa07ce17eb05278172e3147254 after applying
some
smaller changes:
* Added python-pytest-httpx, reuqire by python-zeep.
* python-zeep: Removed python-coverage python-flake8 (and sibblings) and
python-isort from native inputs to reduce number of dependencies. These
packages are not required for building nor for testing.
* python-zeep: Removed remove-requirement phase, since no longer
required with
newer version of platformdirs, merged the other two.
* Removed package python-flake8-import, since abondonded and now unused.
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-06-16 7:35 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 16:22 [bug#53190] [PATCH 0/5] Add python-zeep Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 1/5] gnu: Add python-flake8-blind-except Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 2/5] gnu: Add python-flake8-debugger Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 3/5] gnu: Add python-flake8-imports Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 4/5] gnu: python-requests-file: Update to 1.5.1 Vinicius Monego
2022-01-11 16:25 ` [bug#53190] [PATCH 5/5] gnu: Add python-zeep Vinicius Monego
2022-06-15 12:49 ` [bug#53190] [PATCH 0/5] " Hartmut Goebel
2022-06-16 7:33 ` bug#53190: close Hartmut Goebel
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).