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 0B55B45A11; Mon, 23 Sep 2024 17:02:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 83D6B4027C; Mon, 23 Sep 2024 17:02:14 +0200 (CEST) Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) by mails.dpdk.org (Postfix) with ESMTP id E414740274 for ; Mon, 23 Sep 2024 17:02:13 +0200 (CEST) Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a8d6d0fe021so724249566b.1 for ; Mon, 23 Sep 2024 08:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantheon.tech; s=google; t=1727103733; x=1727708533; 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=Twjt3Nn8xRkbkWyjTivxNHB2Q055bAABGPn3ad0On6Q=; b=MZOhAYAq8YIA7cKARIjAPBCzaDsz7ncp1xyIZoftlVWANSJAIHoB+Pd4oZTvvzE1P4 8qS0fpdt4ISsJLVM2ecmvFFhpHrN/XCnTl3Ug9KwKkIQAjzUztDqbos8VDeQUqXXiVV1 qDYg+3nGmR0sruI9mL00xXnVK/PhlcCcUQPTIU+pRWPE8O+m+u65iOZ3RoxrketNiTAP vvY23F8ZjqHDQ/uFbnaV2D0nZfBExMBgjT7FOcYrH3SCABt1Z/Hdir4hZSr62pxXWXy6 FW3QrULM9HXzRqAZjGDGLeLpz/AskSuXfPM590IBFfBbeMYAHO6fnXUV6hKVsbBdgqPl qmcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727103733; x=1727708533; 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=Twjt3Nn8xRkbkWyjTivxNHB2Q055bAABGPn3ad0On6Q=; b=D3Sqz3FbWLLaKOCzFt1aLN9c27s8I2AVwoRoiXNfpPmF4uRSmk+l9hvzC9vdiQRxbX 4zxvw8sHXBYj5utG3Perr8HelDhq5M7Jm8pXiIlD2MxdZIN3/iicVqoqBv0RnawziLPy OMWLWr+p05VIQ1bxvZxGTbv3OI9tV2+VfMv1pRrYRdob7G+JWSufDgQqfTF2AHSkMkWg ISmVTFI16NwuxDtDjT+CBQVpdPXQZP8ZrUIQEBg/6NIsvz0qHgZd6JrfJg6SMCmYjpd4 /2d7n+7UO22tuhADT0NNSDEg3retaqWWQFwfL/wJ+vH3hM3i/tITJhh1e1ZTLQAXKZVl hyAw== X-Gm-Message-State: AOJu0YzKcfEnlSMob0OVZD1Z1oz0WDXnB8k59U8/s552zHzkjDvHCCSo QWMalGlCr+3xCul9aK3JE8S/Ro7IimEq0Vp6KBMLJZ1FplhlboBpRktaGkAGlAc= X-Google-Smtp-Source: AGHT+IFwGNu6iDjrAhW6ngctw/PHzWiOtGeRI5kVaSIiecwybhf/uhOyf0XUQW1+t2WLhBaZQMCvoQ== X-Received: by 2002:a17:907:7f8b:b0:a8d:5d28:8e0d with SMTP id a640c23a62f3a-a90d5127024mr1405711666b.45.1727103732394; Mon, 23 Sep 2024 08:02:12 -0700 (PDT) Received: from jlinkes-PT-Latitude-5530.. ([84.245.121.62]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90612b3ba7sm1235318866b.119.2024.09.23.08.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Sep 2024 08:02:12 -0700 (PDT) From: =?UTF-8?q?Juraj=20Linke=C5=A1?= To: thomas@monjalon.net, Honnappa.Nagarahalli@arm.com, paul.szczepanek@arm.com, Luca.Vizzarro@arm.com, alex.chapman@arm.com, probb@iol.unh.edu, jspewock@iol.unh.edu, npratte@iol.unh.edu, dmarx@iol.unh.edu Cc: dev@dpdk.org, =?UTF-8?q?Juraj=20Linke=C5=A1?= Subject: [PATCH v4 01/11] dts: add the aenum dependency Date: Mon, 23 Sep 2024 17:02:00 +0200 Message-ID: <20240923150210.57269-1-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240301155416.96960-1-juraj.linkes@pantheon.tech> References: <20240301155416.96960-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š Reviewed-by: Jeremy Spewock Reviewed-by: Dean Marx Reviewed-by: Nicholas Pratte --- 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 91d459f573..506380ac2f 100644 --- a/dts/pyproject.toml +++ b/dts/pyproject.toml @@ -27,6 +27,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.43.0