From patchwork Mon Dec 9 14:47:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Stancek X-Patchwork-Id: 13899892 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A7DC1C5CC1 for ; Mon, 9 Dec 2024 14:47:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733755670; cv=none; b=d9AX4Y21Q9LRoAyLQ6NdqzQGDfP7la1CztiQ6PTrKnZil8oOdxKuUnksWhJRzMxkcfqasEw5y1fvVsw1E3YS7qkf3TOmMTHAGK6Yis07+czc5xvtP1vLAVmkxVrzQYfCyZ+I2oUkjYTGVOvCD80S4X7PyAvT3P+UecrH3pvhjHU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733755670; c=relaxed/simple; bh=6VdqSl8alXvH6pPsK78wHQAqoCIfIhg5UpI5s40sgg8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-type; b=GVlsb2Q+pistrhXbqqaace7NFVLUNbOYwp1XPcK5OrCa49II2ZIAsblkQdIY95GNty+Iyg5F1mc8idjNMPbtSPWnC/N25HyGjipceBoUsUWelvg95hUD0m5GNljIdrx+WfOgqbvg3QHYsfhceBQVWk8NoLUa3nRGJkyeFFuaKIM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=FTVe5xZm; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="FTVe5xZm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1733755667; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l7tcKVC1kh1dFVI8oN1xiQyOlNqxnj21TIJYyRp/op8=; b=FTVe5xZme5cfzKRP0j5cgy8YBQXLHOhz9ptdagyPHBmtgudZCJgQoP6GXCSs9nW1xh/BRO yMRdjZIYq0MIbeXF6NcWd7AWHkGSp2KHOSXe6aVf/EaSIDQTsp1qwxPSD7RLNyVYAtMsW6 lG+PkYtzLlY0TLSGS9Io2+8Zvl9zFIM= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-402-0HX661lWNk2VIEQC5cRWAg-1; Mon, 09 Dec 2024 09:47:46 -0500 X-MC-Unique: 0HX661lWNk2VIEQC5cRWAg-1 X-Mimecast-MFC-AGG-ID: 0HX661lWNk2VIEQC5cRWAg Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id BCE8A1954221; Mon, 9 Dec 2024 14:47:44 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.45.224.182]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5BB241956089; Mon, 9 Dec 2024 14:47:41 +0000 (UTC) From: Jan Stancek To: donald.hunter@gmail.com, kuba@kernel.org, stfomichev@gmail.com Cc: pabeni@redhat.com, davem@davemloft.net, edumazet@google.com, horms@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jstancek@redhat.com Subject: [PATCH v2 3/5] tools: ynl: add initial pyproject.toml for packaging Date: Mon, 9 Dec 2024 15:47:15 +0100 Message-ID: <18b1997fdbacf056dbcedcdb82f350703c6da8b0.1733755068.git.jstancek@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 Signed-off-by: Jan Stancek --- tools/net/ynl/pyproject.toml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tools/net/ynl/pyproject.toml diff --git a/tools/net/ynl/pyproject.toml b/tools/net/ynl/pyproject.toml new file mode 100644 index 000000000000..677ea8f4c185 --- /dev/null +++ b/tools/net/ynl/pyproject.toml @@ -0,0 +1,26 @@ +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "pyynl" +authors = [ + {name = "Donald Hunter", email = "donald.hunter@gmail.com"}, + {name = "Jakub Kicinski", email = "kuba@kernel.org"}, +] +description = "yaml netlink (ynl)" +version = "0.0.1" +requires-python = ">=3.9" +dependencies = [ + "pyyaml==6.*", + "jsonschema==4.*" +] + +[tool.setuptools.packages.find] +include = ["pyynl", "pyynl.lib"] + +[project.scripts] +ynl = "pyynl.cli:main" +ynl-ethtool = "pyynl.ethtool:main" +ynl-gen-c = "pyynl.ynl_gen_c:main" +ynl-gen-rst = "pyynl.ynl_gen_rst:main"