From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 386F5459D0; Wed, 18 Sep 2024 22:19:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DEFBD4003C; Wed, 18 Sep 2024 22:19:14 +0200 (CEST) Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) by mails.dpdk.org (Postfix) with ESMTP id B3A7E4026F for ; Wed, 18 Sep 2024 22:19:13 +0200 (CEST) Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-710e489860bso66342a34.1 for ; Wed, 18 Sep 2024 13:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1726690753; x=1727295553; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rJv5mGqjTji35g8bPf+iWgHSTp00P3a+EGHsDxntdpE=; b=NVLKJWiKRNBq6bIFkMcaRUOHJqfWMVbxU90KxLuVN49+eCwdCO/6XpxL53+wOkHHTa XRJuobJ0hw49KvQUp+OpK5kEln2Xc3lPIFAPDI6RqKpuNF9lmdfwxjnvIegCe+XtT6yB YLi5xUuQiPxfNYeOdO0N6qH1ljVBnbdmu9GX0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726690753; x=1727295553; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rJv5mGqjTji35g8bPf+iWgHSTp00P3a+EGHsDxntdpE=; b=txEjf20wqSYjfck/j14eEqs5N5PqQkPVDmV89UHI46ywzacKNOIGHhYpkgKgerTGUx TltwVYbUjrjw1AEXCt4c9t3ZNe262xoeUVS45ExIQyO6HwXC8Boai1uUd+rofvaX2jBn V/fRD1Pko+DYuLxYejv/+D9Sa7w92z2TeTXxzSq/CXDZJQBuOuA9zYFBpoqb5Wi6kosq DDnXW2/CRatYD5JVyRB9Fore7Rxb1IYOwgknmrGm5n0jKia6esB1uyrhD+qDTigBHwHG CuoQEwXVGIr3iP8YyvGfcnWwVhoAgQUYyUasLSRIH9o45/2ZHQlmmQJd3wzlYt25Vhwr Le6w== X-Gm-Message-State: AOJu0Yy+cT5axWWEXnsf5347A+rP9FarnCXVIlSWgKn0Ea8+jr2He9JC OYQH1KGk01JoWLvF6C8dN9QaVY7CPrCSq4EPe3X1/tWooydJ6bBmks3hrFElvx8= X-Google-Smtp-Source: AGHT+IERHvr12SU5xG9bDn8kkjhFx4WIvvT5EjQpXddJrbaewR0VZ5kyKDF4YpH/XVfL2aejZLuYnQ== X-Received: by 2002:a05:6830:34a6:b0:703:676a:5bb0 with SMTP id 46e09a7af769-71109483836mr19820366a34.16.1726690752865; Wed, 18 Sep 2024 13:19:12 -0700 (PDT) Received: from dean-laptop.iol.unh.edu ([2606:4100:3880:1271:f9bd:24da:464d:6294]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-45b1791a445sm706081cf.87.2024.09.18.13.19.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2024 13:19:12 -0700 (PDT) From: Dean Marx To: probb@iol.unh.edu, npratte@iol.unh.edu, jspewock@iol.unh.edu, luca.vizzarro@arm.com, yoan.picchi@foss.arm.com, Honnappa.Nagarahalli@arm.com, paul.szczepanek@arm.com, juraj.linkes@pantheon.tech Cc: dev@dpdk.org, Dean Marx Subject: [PATCH v2] dts: add package mode config and updated docs Date: Wed, 18 Sep 2024 16:19:28 -0400 Message-ID: <20240918201928.26100-1-dmarx@iol.unh.edu> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240812163538.29904-1-dmarx@iol.unh.edu> References: <20240812163538.29904-1-dmarx@iol.unh.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org In the current DTS setup description, the user installs poetry with the --no-root option. However, adding 'package-mode = false' to the pyproject.toml sets the same configuration, and running poetry install --no-root will become an error in a future poetry version. Signed-off-by: Dean Marx Reviewed-by: Nicholas Pratte Reviewed-by: Luca Vizzarro --- doc/guides/tools/dts.rst | 6 +++--- dts/.devcontainer/devcontainer.json | 2 +- dts/README.md | 4 ++-- dts/pyproject.toml | 1 + 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/guides/tools/dts.rst b/doc/guides/tools/dts.rst index 8008c9f74d..65cce9e5ed 100644 --- a/doc/guides/tools/dts.rst +++ b/doc/guides/tools/dts.rst @@ -92,7 +92,7 @@ Setting up DTS environment .. code-block:: console - poetry install --no-root + poetry install poetry shell #. **SSH Connection** @@ -449,8 +449,8 @@ The :ref:`doc build dependencies ` may be installed with Poetr .. code-block:: console - poetry install --no-root --only docs - poetry install --no-root --with docs # an alternative that will also install DTS dependencies + poetry install --only docs + poetry install --with docs # an alternative that will also install DTS dependencies poetry shell After executing the meson command, build the documentation with: diff --git a/dts/.devcontainer/devcontainer.json b/dts/.devcontainer/devcontainer.json index 4d737f1b40..d96b4fdab2 100644 --- a/dts/.devcontainer/devcontainer.json +++ b/dts/.devcontainer/devcontainer.json @@ -13,7 +13,7 @@ // "forwardPorts": [], // The next line runs commands after the container is created - in our case, installing dependencies. - "postCreateCommand": "poetry install --no-root", + "postCreateCommand": "poetry install", "extensions": [ "ms-python.vscode-pylance", diff --git a/dts/README.md b/dts/README.md index ee3fa1c968..2b3a7f89c5 100644 --- a/dts/README.md +++ b/dts/README.md @@ -37,7 +37,7 @@ to allow you to connect to hosts without specifying a password. ```shell docker build --target dev -t dpdk-dts . docker run -v $(pwd)/..:/dpdk -v /home/dtsuser/.ssh:/root/.ssh:ro -it dpdk-dts bash -$ poetry install --no-root +$ poetry install $ poetry shell ``` @@ -46,7 +46,7 @@ $ poetry shell ```shell docker build --target dev -t dpdk-dts . docker run -v $(pwd)/..:/dpdk -it dpdk-dts bash -$ poetry install --no-root +$ poetry install $ poetry shell ``` diff --git a/dts/pyproject.toml b/dts/pyproject.toml index 38281f0e39..91d459f573 100644 --- a/dts/pyproject.toml +++ b/dts/pyproject.toml @@ -3,6 +3,7 @@ # Copyright(c) 2023 PANTHEON.tech s.r.o. [tool.poetry] +package-mode = false name = "dts" version = "0.1.0" description = "DPDK Test Suite." -- 2.44.0