From unknown Thu Jun 19 14:03:47 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#26900 <26900@debbugs.gnu.org> To: bug#26900 <26900@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Enable python-parse-type tests. Reply-To: bug#26900 <26900@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:03:47 +0000 retitle 26900 [PATCH] gnu: Enable python-parse-type tests. reassign 26900 guix-patches submitter 26900 Danny Milosavljevic severity 26900 normal tag 26900 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri May 12 16:05:35 2017 Received: (at submit) by debbugs.gnu.org; 12 May 2017 20:05:35 +0000 Received: from localhost ([127.0.0.1]:41313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9Goh-00023P-6J for submit@debbugs.gnu.org; Fri, 12 May 2017 16:05:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9Gof-000239-UA for submit@debbugs.gnu.org; Fri, 12 May 2017 16:05:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9GoZ-0003JT-Sb for submit@debbugs.gnu.org; Fri, 12 May 2017 16:05:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55852) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d9GoZ-0003JP-PZ for submit@debbugs.gnu.org; Fri, 12 May 2017 16:05:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9GoY-0002XS-If for guix-patches@gnu.org; Fri, 12 May 2017 16:05:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9GoV-0003GO-9U for guix-patches@gnu.org; Fri, 12 May 2017 16:05:26 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:50848) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d9GoV-0003Fn-3I for guix-patches@gnu.org; Fri, 12 May 2017 16:05:23 -0400 Received: from dayas.3.home (178.113.190.188.wireless.dyn.drei.com [178.113.190.188]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 52CE11CA0632; Fri, 12 May 2017 22:05:21 +0200 (CEST) From: Danny Milosavljevic To: guix-patches@gnu.org Subject: [PATCH] gnu: Enable python-parse-type tests. Date: Fri, 12 May 2017 22:05:18 +0200 Message-Id: <20170512200518.29872-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.12.1 Tags: patch X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: Danny Milosavljevic X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) * gnu/packages/python.scm (python-parse-type)[arguments]: Enable tests. [native-inputs]: Add python-pytest, python-pytest-runner. [properties]: Add python2-variant. (python2-parse-type): New variable. --- gnu/packages/python.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index dc7adf24e..e32397b59 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1488,13 +1488,25 @@ backported for previous versions of Python from 2.4 to 3.3.") (propagated-inputs `(("python-six" ,python-six) ("python-parse" ,python-parse))) - (arguments '(#:tests? #f)) ;TODO: tests require pytest + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner))) (home-page "https://github.com/jenisys/parse_type") (synopsis "Extended parse module") (description "Parse_type extends the python parse module.") + (properties + `((python2-variant . ,(delay python2-parse-type)))) (license license:bsd-3))) +(define-public python2-parse-type + (let ((base (package-with-python2 + (strip-python2-variant python-parse-type)))) + (package (inherit base) + (propagated-inputs + `(("python2-enum34" ,python2-enum34) + ,@(package-propagated-inputs base)))))) + (define-public python-parse (package (name "python-parse") From debbugs-submit-bounces@debbugs.gnu.org Fri May 12 16:35:21 2017 Received: (at 26900) by debbugs.gnu.org; 12 May 2017 20:35:21 +0000 Received: from localhost ([127.0.0.1]:41329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9HHU-0002kZ-Tl for submit@debbugs.gnu.org; Fri, 12 May 2017 16:35:21 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:57786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9HHT-0002kR-7R for 26900@debbugs.gnu.org; Fri, 12 May 2017 16:35:19 -0400 Received: from dayas.3.home (178.113.190.188.wireless.dyn.drei.com [178.113.190.188]) by dd1012.kasserver.com (Postfix) with ESMTPSA id B4FDE1CA0632; Fri, 12 May 2017 22:35:16 +0200 (CEST) From: Danny Milosavljevic To: 26900@debbugs.gnu.org Subject: [PATCH v2] gnu: Enable python-parse-type tests. Date: Fri, 12 May 2017 22:35:11 +0200 Message-Id: <20170512203511.21356-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.12.1 In-Reply-To: <20170512200518.29872-1-dannym@scratchpost.org> References: <20170512200518.29872-1-dannym@scratchpost.org> Tags: patch X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 26900 Cc: Danny Milosavljevic X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) * gnu/packages/python.scm (python-parse-type)[arguments]: Enable tests. Add phase "patch-tests". [native-inputs]: Add python-pytest, python-pytest-runner. [properties]: Add python2-variant. (python2-parse-type): New variable. --- gnu/packages/python.scm | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index dc7adf24e..29e3458c6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1485,16 +1485,38 @@ backported for previous versions of Python from 2.4 to 3.3.") (base32 "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x")))) (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-tests + (lambda _ + (substitute* "tests/test_parse_type_parse.py" + ;; Newer Python versions don't have the problem this test tests. + (("self[.]assertRaises[(]parse.TooManyFields, p.parse, ''[)]") + "")) + #t))))) (propagated-inputs `(("python-six" ,python-six) ("python-parse" ,python-parse))) - (arguments '(#:tests? #f)) ;TODO: tests require pytest + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner))) (home-page "https://github.com/jenisys/parse_type") (synopsis "Extended parse module") (description "Parse_type extends the python parse module.") + (properties + `((python2-variant . ,(delay python2-parse-type)))) (license license:bsd-3))) +(define-public python2-parse-type + (let ((base (package-with-python2 + (strip-python2-variant python-parse-type)))) + (package (inherit base) + (propagated-inputs + `(("python2-enum34" ,python2-enum34) + ,@(package-propagated-inputs base)))))) + (define-public python-parse (package (name "python-parse") From debbugs-submit-bounces@debbugs.gnu.org Sat May 13 11:46:16 2017 Received: (at control) by debbugs.gnu.org; 13 May 2017 15:46:16 +0000 Received: from localhost ([127.0.0.1]:43123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9ZFI-0001Vl-Am for submit@debbugs.gnu.org; Sat, 13 May 2017 11:46:16 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:57920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9ZFH-0001Vd-4y for control@debbugs.gnu.org; Sat, 13 May 2017 11:46:15 -0400 Received: from localhost (178.113.190.188.wireless.dyn.drei.com [178.113.190.188]) by dd1012.kasserver.com (Postfix) with ESMTPSA id C5D171CA00C7 for ; Sat, 13 May 2017 17:46:12 +0200 (CEST) Date: Sat, 13 May 2017 17:46:07 +0200 From: Danny Milosavljevic To: Message-ID: <20170513174607.1d03b436@scratchpost.org> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: block 26906 by 26900 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.128.8 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: block 26906 by 26900 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.128.8 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject block 26906 by 26900 From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 07:04:38 2017 Received: (at control) by debbugs.gnu.org; 25 May 2017 11:04:39 +0000 Received: from localhost ([127.0.0.1]:36971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDqZK-0005kz-OO for submit@debbugs.gnu.org; Thu, 25 May 2017 07:04:38 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:52342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDqZJ-0005ks-DH for control@debbugs.gnu.org; Thu, 25 May 2017 07:04:37 -0400 Received: from localhost (178.113.188.144.wireless.dyn.drei.com [178.113.188.144]) by dd1012.kasserver.com (Postfix) with ESMTPSA id C00B71CA00C4 for ; Thu, 25 May 2017 13:04:35 +0200 (CEST) Date: Thu, 25 May 2017 13:04:29 +0200 From: Danny Milosavljevic To: Message-ID: <20170525130429.537a9197@scratchpost.org> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 26900 close 26906 close 26999 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.128.8 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 26900 close 26906 close 26999 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.128.8 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject close 26900 close 26906 close 26999 From unknown Thu Jun 19 14:03:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 22 Jun 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator