From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YH/BCcdFKGEj+wAAgWs5BA (envelope-from ) for ; Fri, 27 Aug 2021 03:54:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IPpsBcdFKGF7cgAA1q6Kng (envelope-from ) for ; Fri, 27 Aug 2021 01:54:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7C5075B56 for ; Fri, 27 Aug 2021 03:54:14 +0200 (CEST) Received: from localhost ([::1]:49424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJR4P-0000u7-JO for larch@yhetil.org; Thu, 26 Aug 2021 21:54:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJR4G-0000ty-ER for help-guix@gnu.org; Thu, 26 Aug 2021 21:54:04 -0400 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]:35646) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJR4E-0001TN-Me for help-guix@gnu.org; Thu, 26 Aug 2021 21:54:04 -0400 Received: by mail-ej1-x635.google.com with SMTP id i21so10486753ejd.2 for ; Thu, 26 Aug 2021 18:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=4vOQSbupjDk9gHkMRWSXLtMl7LKlKqySrAqNxEc5lhE=; b=eF6214fwyFXyPOnqRxtofItOqdPMy9itncXinHzagmPxJn4E1HitAM2MEqfcZKlzWo acmMm4/NIXq4wPK2e1xRa+UYBNK0I3NiNezjq8hsLTwz8KooggcVLtKgJ/0V40oOUcVw v5On1UrvbLFC28TDFD4m+m6CKBXYSL9/8HciaMMLEdJ1+mK2Hr1SZdM7V1vK8Y8TfkmW IMuQ5ayiFr5oBm7RWONj8hEnlIwctiBRgiWBX6Q8kU3iKoB8rz+BLukzy703UoGYNb64 jBzXB6TpGAbojqQxGMfPtRi+Wo0FNQub6DzV5yCqXH/kBJE7jWDMxQdSr2hWbqAYlpF9 M3Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=4vOQSbupjDk9gHkMRWSXLtMl7LKlKqySrAqNxEc5lhE=; b=JT7LqvmDVdkE7sjDz2KfwtYLdCvgCBCh7/rot02sQc4+gm/SDMarofdhuRVtTDZ7WO pTLtuN2jZJwVDz/Ki/x8WB443eQEJgwG8bWscl9/0W491Layns/a5MUTvKilY19kX5yg uO9107z+c15Kprg2s6bHbWbxHgBt+OdtQ75Pw/V93CrEeo3tAzYCvpQRmz7rnJaNr8SA ZhYcwCC9bs0mX7i0Ziaes9Kt/EUz5zjWYWKs7ujlfWDmHNzZuymU8g0jIYey602T8jGk zmdEHSOKK7wmT4+ZbhkHxZTZdc26jx+HcMoIR+FD2jY/8GzV7dF6tPLINoYkpSV45bhT rfXw== X-Gm-Message-State: AOAM532rsBIi2x5JUtPhYGIKiq967zpsPsIF30Vj2FBbyB+NoX3pTGQr NR44tPvru+B69qUcV0oBSNlcy/ZeGgu/1qLhqvizzEJbmcWm1g== X-Google-Smtp-Source: ABdhPJxTGWbTuapkcrz+3HEkrpZ6mxwRlTAJ0UBrFA848tiFvv7pOgzmchnIOZj5YFoOoOJwxpCSrxAprluEpR2pKyg= X-Received: by 2002:a17:906:802:: with SMTP id e2mr7315786ejd.133.1630029240118; Thu, 26 Aug 2021 18:54:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Antwane Mason Date: Thu, 26 Aug 2021 21:53:49 -0400 Message-ID: Subject: Re: Python Tox Dependencies Invisible to Pip To: help-guix@gnu.org Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=ad.mason1413@gmail.com; helo=mail-ej1-x635.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630029254; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=FCYRgRHEMC7nqFG0NnvDr5hKrj3FA3DwALrgMG6e5F8=; b=Gt3ff+ho2NFlePQ5yO4UBY+TE/jg8g0m6BZgzHc/drEikJqGBvQZ9XHwOqpjWB6ndcqioa mfj217NLmUx9yK4R+LIbAEJy0fi+kg+4DMP+sAFILd1xHbCHqYha/2wETH913NTygeGr2k ho1LGizBKx/0dsqOmWlZB3DVEGwCBirOGs1FhEpvq4fL/0BUJ9lGVtRIy7wN2QrnoTx4UR F1HVCwo1Bp6zjBo9nA8xlA8TFoGupqaEbLo3DwAo8TYlnPm+0qHdIt4PB7tiVc+CKyA3zy P3gBHedqEF8BXI8Qaff6zDluX9XHJCOZPdr0FJnL4cyyLrcxy5odYy7Jo8kMsg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630029254; a=rsa-sha256; cv=none; b=A6tZ1+cixLf0C2FRjDwhpGkZMmT7NLHrRWsryHFKj7rprP6OCbWw8oDi88nuXBjL91yZPf l1ZLjKla8NK+kPEDLJDIR/qeDT9qqjbUJHbkIoe/R+U/tB5s9YQEaLeX7GUHb6iUqyVyKO 4FEV5Amrnb6rGTaNACwTkdN7YN5rVt3ysPhzcXEZKrGvA3vS6ujOMmglwZtAA33C5xaPdI Zg9uVoClyZjDlyHyhOJZ1G+rYChaO5iwkt+WDimwwZ/KogegQavsIATUnUprBhFxkkFJdF VSHo6Qfm09VRkzxDrXXmj049b3a4Iwf9QefD9aLAo0hqpY7VZOzhJ2QgF1hAWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=eF6214fw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=eF6214fw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 7C5075B56 X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: MCARJdkckURg It turns out my intuition was right and I needed to prevent tox from unsetting PYTHONPATH environment variable. The solution was to add a build phase prior to testing that passes the PYTHONPATH environment variable to the virtual environments. Unrelated to the problem, I also needed to tell tox to skip interpreters that are not present on my system and I needed to adjust the test command to point to the "tests" folder where the unit tests were stored. Below is the resulting package definition. I'm one step closer to building python-onlykey package but now having to fight with test failures while building python-verspec, another transitive dependency of python-onlykey. ------------------------------------------------ (define-public python-virtualenv-clone (package (name "python-virtualenv-clone") (version "0.5.6") (source (origin (method git-fetch) (uri (git-reference (url " https://github.com/edwardgeorge/virtualenv-clone") (commit version))) (sha256 (base32 "0xb20fhl99dw5vnyb43sjpj9628nbdnwp5g7m8f2id7w8kpwzvfw")))) (native-inputs `(("python-pytest" ,python-pytest) ("python-tox" ,python-tox) ("python-virtualenv" ,python-virtualenv))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (add-before 'check 'configure-tox (lambda _ (substitute* "tox.ini" (("(\\[testenv\\])" section-header) (string-append section-header "\npassenv = PYTHONPATH")) (("(\\[tox\\])" section-header) (string-append section-header "\nskip_missing_interpreters = true")) (("(commands = py.test -v) \\[\\]" _ cmd) (string-append cmd " tests"))) #t))))) (home-page "https://github.com/edwardgeorge/virtualenv-clone") (synopsis "script to clone virtualenvs.") (description "script to clone virtualenvs.") (license license:expat))) ------------------------------------------------ Regards, Antwane