From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 02 14:15:10 2021 Received: (at submit) by debbugs.gnu.org; 2 Aug 2021 18:15:10 +0000 Received: from localhost ([127.0.0.1]:39239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAcT0-0000DI-Iq for submit@debbugs.gnu.org; Mon, 02 Aug 2021 14:15:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:49990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAcSy-0000D3-NO for submit@debbugs.gnu.org; Mon, 02 Aug 2021 14:15:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAcSy-0005yF-HG for guix-patches@gnu.org; Mon, 02 Aug 2021 14:15:08 -0400 Received: from latitanza.investici.org ([82.94.249.234]:53611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAcSw-00076j-Jl for guix-patches@gnu.org; Mon, 02 Aug 2021 14:15:08 -0400 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4GdmPW74R5zGp6p; Mon, 2 Aug 2021 18:14:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1627928095; bh=CV5Y1F936x+tWcRElEnAZetgi0IeN5IWoMSGb2jQeYg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TYlDB9lQnDozOHZLn8XJYmtdLD3naweDD6If06HE0/EdlzmKn+JDnnz8vYhkNAzPH wWgyYk582+6X43elvpCOfmYDM9PGSQlwNvERQGIR87BmK0wKSttrIZgBWTZW57dUmD uTlXIhddwjQH9U+vcZmevlj/p5Q1zJSbVpRyoWK4= Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4GdmPW6LbJzGp4Q; Mon, 2 Aug 2021 18:14:55 +0000 (UTC) From: Giacomo Leidi To: guix-patches@gnu.org Subject: [PATCH 3/7] gnu: Add python-dotenv. Date: Mon, 2 Aug 2021 20:13:55 +0200 Message-Id: <20210802181359.10695-3-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802181359.10695-1-goodoldpaul@autistici.org> References: <20210802181359.10695-1-goodoldpaul@autistici.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=82.94.249.234; envelope-from=goodoldpaul@autistici.org; helo=latitanza.investici.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Giacomo Leidi 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: -2.4 (--) * gnu/packages/python-xyz.scm (python-dotenv): New variable. --- gnu/packages/python-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index cdfc78478c..f415d8b2c8 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26239,3 +26239,30 @@ enabling you to write CommonMark inside of Docutils & Sphinx projects.") Qhull} for the computation of the convex hull, Delaunay triangulation, and Voronoi diagram.") (license license:expat))) + +(define-public python-dotenv + (package + (name "python-dotenv") + (version "0.18.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-dotenv" version)) + (sha256 + (base32 + "0b90br3f48ykx5ddfpx2zmsh4vmdqw6s812drcy9pn2q3qyarypg")))) + (build-system python-build-system) + (propagated-inputs + `(("python-click" ,python-click-5))) + (native-inputs + `(("python-mock" ,python-mock) + ("python-pytest" ,python-pytest) + ("python-sh" ,python-sh))) + (home-page + "https://github.com/theskumar/python-dotenv") + (synopsis + "Setup environment variables according to .env files") + (description + "This package provides the @code{python-dotenv} Python module to +read key-value pairs from a .env file and set them as environment variables") + (license license:bsd-3))) -- 2.32.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 02 17:13:37 2021 Received: (at control) by debbugs.gnu.org; 2 Aug 2021 21:13:37 +0000 Received: from localhost ([127.0.0.1]:39377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAfFh-0004X4-IS for submit@debbugs.gnu.org; Mon, 02 Aug 2021 17:13:37 -0400 Received: from out2.migadu.com ([188.165.223.204]:60035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAfFe-0004Wt-1Z for control@debbugs.gnu.org; Mon, 02 Aug 2021 17:13:36 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1627938812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=GTuNxkZvpOytGCQVcYbHVl+AqIrojF0vMau1X2IB7JI=; b=LHAsz8V3kjTKRUtdRRG4XDuGfi4shg4p7eOiC8Fk6pKQD3Thl38QJrcsx/a7uHIcipU8PO ea9mGCuU4acTTnIL0v++dEuxVaYQWbiij2CUheuKsG/k2FA7rj4xpnzHVfyYgS41OQ6Geb WKEBy3GsSWsMe6cIFMsA3/VBzS4si/8= From: Sarah Morgensen To: control@debbugs.gnu.org Subject: control message for bug #49281 Date: Mon, 02 Aug 2021 14:13:29 -0700 Message-ID: <86pmuv4kjq.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: -0.0 (/) 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.0 (-) merge 49281 49835 49834 49833 49832 49831 49830 49829 thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 04 14:35:50 2021 Received: (at 49833) by debbugs.gnu.org; 4 Aug 2021 18:35:50 +0000 Received: from localhost ([127.0.0.1]:45113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBLk0-0004qc-Dn for submit@debbugs.gnu.org; Wed, 04 Aug 2021 14:35:50 -0400 Received: from out1.migadu.com ([91.121.223.63]:10700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBLjp-0004qF-HA; Wed, 04 Aug 2021 14:35:34 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1628102131; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TaT+XopdwN0R+R7kdsTUgPdd++9DzDoL8SBXyV8D2XA=; b=YBDSsmgnvq7fDjdrkx0jyABMwHpEorf3lT1kac3qNB4QXVcThgud5CDdquz3NsYCVsW0py IT+Vn57JSheIYz3fvRTiJUvJ+GbYKLATUKBODE1rB6G8u47aZkOUh3wv86+3IZx438plbc JaqCw82HGcGIIVxb+GOkkRzgi9exsQo= From: Sarah Morgensen To: Giacomo Leidi Subject: Re: bug#49281: Add dynaconf References: <20210802181359.10695-1-goodoldpaul@autistici.org> <20210802181359.10695-3-goodoldpaul@autistici.org> Date: Wed, 04 Aug 2021 11:35:30 -0700 In-Reply-To: <20210802181359.10695-3-goodoldpaul@autistici.org> (Giacomo Leidi's message of "Mon, 2 Aug 2021 20:13:55 +0200") Message-ID: <86fsvp2h3h.fsf_-_@mgsn.dev> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49833 Cc: 49281@debbugs.gnu.org, 49833@debbugs.gnu.org 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.0 (-) --=-=-= Content-Type: text/plain Hello, While we don't actually require doing this when pypi packages don't have tests, on a lark I went ahead and switched the source to upstream and enabled tests to make sure they passed. It looks like two are failing, but I'm not sure why. I've attached the patch to enable tests and the test output. Giacomo Leidi writes: > * gnu/packages/python-xyz.scm (python-dotenv): New variable. > --- > gnu/packages/python-xyz.scm | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm > index cdfc78478c..f415d8b2c8 100644 > --- a/gnu/packages/python-xyz.scm > +++ b/gnu/packages/python-xyz.scm > @@ -26239,3 +26239,30 @@ enabling you to write CommonMark inside of Docutils & Sphinx projects.") > Qhull} for the computation of the convex hull, Delaunay triangulation, and > Voronoi diagram.") > (license license:expat))) > + > +(define-public python-dotenv > + (package > + (name "python-dotenv") > + (version "0.18.0") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "python-dotenv" version)) > + (sha256 > + (base32 > + "0b90br3f48ykx5ddfpx2zmsh4vmdqw6s812drcy9pn2q3qyarypg")))) > + (build-system python-build-system) > + (propagated-inputs > + `(("python-click" ,python-click-5))) > + (native-inputs > + `(("python-mock" ,python-mock) > + ("python-pytest" ,python-pytest) > + ("python-sh" ,python-sh))) > + (home-page > + "https://github.com/theskumar/python-dotenv") ^ Nitpick: this can go on one line. > + (synopsis > + "Setup environment variables according to .env files") ^ Likewise. > + (description > + "This package provides the @code{python-dotenv} Python module to > +read key-value pairs from a .env file and set them as environment variables") > + (license license:bsd-3))) --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=python-dotenv-0.18.0.diff Content-Description: python-dotenv-0.18.0-enable-tests.patch diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f4f3b7fb3f..a5b700f2d3 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26282,16 +26282,31 @@ Voronoi diagram.") (version "0.18.0") (source (origin - (method url-fetch) - (uri (pypi-uri "python-dotenv" version)) + (method git-fetch) + (uri + (git-reference + (url "https://github.com/theskumar/python-dotenv") + (commit (string-append "v" version)))) (sha256 (base32 - "0b90br3f48ykx5ddfpx2zmsh4vmdqw6s812drcy9pn2q3qyarypg")))) + "1jdccd9s7ypsldafiv0mqgh616662fm5a5ppbhphnin44qv7mir1")))) (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (setenv "PATH" + (string-append (assoc-ref outputs "out") "/bin:" + (getenv "PATH"))) + (add-installed-pythonpath inputs outputs) + (invoke "py.test" "tests/"))))))) (propagated-inputs `(("python-click" ,python-click-5))) (native-inputs - `(("python-mock" ,python-mock) + `(("python-ipython" ,python-ipython) + ("python-mock" ,python-mock) ("python-pytest" ,python-pytest) ("python-sh" ,python-sh))) (home-page --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=python-dotenv-0.18.0-tests.log Content-Description: python-dotenv-0.18.0-tests.log starting phase `check' ============================= test session starts ============================== platform linux -- Python 3.8.2, pytest-5.3.5, py-1.8.1, pluggy-0.13.1 rootdir: /tmp/guix-build-python-dotenv-0.18.0.drv-0/source, inifile: setup.cfg plugins: hypothesis-5.4.1 collected 132 items tests/test_cli.py ..F............F.......... [ 19%] tests/test_ipython.py ... [ 21%] tests/test_main.py ..................................................... [ 62%] [ 62%] tests/test_parser.py ........................................... [ 94%] tests/test_utils.py . [ 95%] tests/test_variables.py ...... [100%] =================================== FAILURES =================================== ______________________________ test_list_no_file _______________________________ cli = def test_list_no_file(cli): result = cli.invoke(dotenv.cli.list, []) > assert (result.exit_code, result.output) == (1, "") E AssertionError: assert (-1, '') == (1, '') E At index 0 diff: -1 != 1 E Use -v to get the full diff tests/test_cli.py:31: AssertionError __________________________ test_set_non_existent_file __________________________ cli = def test_set_non_existent_file(cli): result = cli.invoke(dotenv.cli.set, ["a", "b"]) > assert (result.exit_code, result.output) == (1, "") E AssertionError: assert (-1, '') == (1, '') E At index 0 diff: -1 != 1 E Use -v to get the full diff tests/test_cli.py:113: AssertionError =============================== warnings summary =============================== tests/test_ipython.py::test_ipython_existing_variable_no_override tests/test_ipython.py::test_ipython_existing_variable_override tests/test_ipython.py::test_ipython_new_variable /gnu/store/m6wza0kv26bnpfaavw8xs1gw2cls6369-python-ipython-7.9.0/lib/python3.8/site-packages/IPython/paths.py:67: UserWarning: IPython parent '/' is not a writable location, using a temp directory. warn("IPython parent '{0}' is not a writable location," -- Docs: https://docs.pytest.org/en/latest/warnings.html ================== 2 failed, 130 passed, 3 warnings in 4.49s =================== --=-=-= Content-Type: text/plain -- Sarah --=-=-=-- From unknown Fri Aug 15 02:04:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 29 Dec 2021 12:24:06 +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