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 D436345830; Wed, 21 Aug 2024 16:53:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 05EF94113C; Wed, 21 Aug 2024 16:53:23 +0200 (CEST) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by mails.dpdk.org (Postfix) with ESMTP id 7E4AC4003C for ; Wed, 21 Aug 2024 16:53:20 +0200 (CEST) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a7a9cf7d3f3so865986366b.1 for ; Wed, 21 Aug 2024 07:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantheon.tech; s=google; t=1724252000; x=1724856800; 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=S5VWo4Gx8OSxpZfUPX176vfPt0kJSf620dJ+bgadidc=; b=aWIKOCNTVyORyBHcRzQA55b2luwltFvUcEBYhc2uKjy7dYvGssd0NpTTgKAHBquE21 YDaSn+L9Imcy7EmW7+LUo/RlLuSGPjMQC1ma1oJ2zNYC9n2VxyorQ9fJm5vpUjEL1Fxx EG4kaAUmtvQ/O9Tfj8UH2T0e77F0B8G0tLupluv1bJMdvC6RmtYcxe6sCH90K2uopAi0 qxhibaDXZIecBSy0o+9EXQ8MrHQgudv6I3y3f7qF8lb5DdGsaZxR353ROM+k9CYJIiZN Hrt6Y8J9wMlQMx1Xy1x8Fn0EpxmCKZZJetvsM+wu8G55v2DRk8/D4znZQe1jOgu/XTA0 7gDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724252000; x=1724856800; 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=S5VWo4Gx8OSxpZfUPX176vfPt0kJSf620dJ+bgadidc=; b=Ir7cjndVoiB4y/854hajRwFKohjTAEC8TpZ6yFjDlCcky5CjQdQ8S7PBjy8hKShDnc c+yEsYvaP5ZDsWAjLiGOV+xk0SDHqd/WU+sOhVM2VKlyghEVpVWWqOAxjaCkBrY/50bl qVRH9RP2L+Hz4t/24QE0mmLL0zdVvk2fiBg7I8RMsfTsUTMQbcZbMaDXhnwemRQ6yqqE MI4R3RICYhx8PNGl9YqRZ195y0MpjBPaLvxwP6c33g+I7hDt5ObbHUn5X3dWBf8oT5lT HAmq/aUnQFQy2pQxj/NIVcjX0NQiXGHNqcqwAd9z12djTt0eyB2Df/2QIV3gAOLkP/yZ ozHg== X-Gm-Message-State: AOJu0YxyUxGxXgRzbJK7CLdSDRYJZuUXYKS9ybkpB5aErkOynLjiQNOq AF1F30R+pLwSYKimP++Qi+XpZGnNx1ijpMYX9RV1x3aJ3jxJ5mBxgoKcFptyB+k= X-Google-Smtp-Source: AGHT+IEJ/U9NbA6Vdq3oHJ+cUL98I8vby/L/lQnbersSGQhZMPfAOXnNbcKo1TmgWr4qzgjQWoEqIQ== X-Received: by 2002:a17:907:2d07:b0:a86:667a:8f95 with SMTP id a640c23a62f3a-a866f2aa0e9mr135786266b.22.1724251999904; Wed, 21 Aug 2024 07:53:19 -0700 (PDT) Received: from localhost.localdomain ([84.245.121.236]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8680c4725csm52434866b.91.2024.08.21.07.53.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 07:53:19 -0700 (PDT) From: =?UTF-8?q?Juraj=20Linke=C5=A1?= To: thomas@monjalon.net, Honnappa.Nagarahalli@arm.com, jspewock@iol.unh.edu, probb@iol.unh.edu, paul.szczepanek@arm.com, Luca.Vizzarro@arm.com, npratte@iol.unh.edu, dmarx@iol.unh.edu, alex.chapman@arm.com Cc: dev@dpdk.org, =?UTF-8?q?Juraj=20Linke=C5=A1?= Subject: [PATCH v3 02/12] dts: add the aenum dependency Date: Wed, 21 Aug 2024 16:53:05 +0200 Message-Id: <20240821145315.97974-3-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240821145315.97974-1-juraj.linkes@pantheon.tech> References: <20240301155416.96960-1-juraj.linkes@pantheon.tech> <20240821145315.97974-1-juraj.linkes@pantheon.tech> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 Regular Python enumerations create only one instance for members with the same value, such as: class MyEnum(Enum): foo = 1 bar = 1 MyEnum.foo and MyEnum.bar are aliases that return the same instance. DTS needs to return different instances in the above scenario so that we can map capabilities with different names to the same function that retrieves the capabilities. Signed-off-by: Juraj Linkeš --- dts/poetry.lock | 14 +++++++++++++- dts/pyproject.toml | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/dts/poetry.lock b/dts/poetry.lock index 2dd8bad498..cf5f6569c6 100644 --- a/dts/poetry.lock +++ b/dts/poetry.lock @@ -1,5 +1,17 @@ # This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. +[[package]] +name = "aenum" +version = "3.1.15" +description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants" +optional = false +python-versions = "*" +files = [ + {file = "aenum-3.1.15-py2-none-any.whl", hash = "sha256:27b1710b9d084de6e2e695dab78fe9f269de924b51ae2850170ee7e1ca6288a5"}, + {file = "aenum-3.1.15-py3-none-any.whl", hash = "sha256:e0dfaeea4c2bd362144b87377e2c61d91958c5ed0b4daf89cb6f45ae23af6288"}, + {file = "aenum-3.1.15.tar.gz", hash = "sha256:8cbd76cd18c4f870ff39b24284d3ea028fbe8731a58df3aa581e434c575b9559"}, +] + [[package]] name = "alabaster" version = "0.7.13" @@ -1350,4 +1362,4 @@ jsonschema = ">=4,<5" [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "6db17f96cb31fb463b0b0a31dff9c02aa72641e0bffd8a610033fe2324006c43" +content-hash = "6f20ce05310df93fed1d392160d1653ae5de5c6f260a5865eb3c6111a7c2b394" diff --git a/dts/pyproject.toml b/dts/pyproject.toml index 38281f0e39..6e347852cc 100644 --- a/dts/pyproject.toml +++ b/dts/pyproject.toml @@ -26,6 +26,7 @@ fabric = "^2.7.1" scapy = "^2.5.0" pydocstyle = "6.1.1" typing-extensions = "^4.11.0" +aenum = "^3.1.15" [tool.poetry.group.dev.dependencies] mypy = "^1.10.0" -- 2.34.1