From nobody Wed Dec 17 17:58:31 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 693001FCCE8 for ; Wed, 8 Jan 2025 13:57:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736344624; cv=none; b=XaVFzRtnapa6vPOrlIEvIvcHRsuVWWy9qE10n97hXx57tSyLSq0TyOecEB2aH0nktabw+paTphFO7ritQUcYMLiSRHppVV2oqcKkze4mydRE+zR0azOkgRy3fGfYEC0ptBXBavBBZu3q82Qd/iOQUPAn+xR8UYfMjgR1tC06+w0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736344624; c=relaxed/simple; bh=KqiTIpah+aH+aEUem5mKaYfuJ10MVfQ1odlp5KGoGE4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-type; b=NgjBnb3aIKY4b/JYBB6u0plMSTotoHsKqWvUjJlsTwhQaktrsxUvMei/DPVZE05ML6w72t47TWKM/7cYrD5PT5t3DjhF+VppW34eqgOaRLudLq8riD8RMb0aVxHBS5UxN7DrkTCSBAKU1lOkStE4cHywAAXBmtY5xKFbQjE1Kow= 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=gdFulJDC; arc=none smtp.client-ip=170.10.129.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="gdFulJDC" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1736344622; 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=oGjkt00H/NMicNYLZaNWmBQDtOl1zPOzBTmzN4SUej0=; b=gdFulJDCUEs+smyaeM3Eq359cprLDAcy6qi/Icd5CVWJgKdrvmwYJM5vwcrREZBCSAUeUA cpflnO8k5qhzf9vG+iKvgLE6mB3eyCM4hNsvWZUndgqO8Nv1R+Q41PLx+FJzwm0KS4FMzs XgsOl418aehDIAgbsXF2BHetjrg0sa4= 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-671-pAiTxTPjOAWOlZ7rqJnQpw-1; Wed, 08 Jan 2025 08:56:59 -0500 X-MC-Unique: pAiTxTPjOAWOlZ7rqJnQpw-1 X-Mimecast-MFC-AGG-ID: pAiTxTPjOAWOlZ7rqJnQpw Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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 304A51956050; Wed, 8 Jan 2025 13:56:58 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.45.225.0]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 4F106300018D; Wed, 8 Jan 2025 13:56:55 +0000 (UTC) From: Jan Stancek To: donald.hunter@gmail.com, stfomichev@gmail.com, kuba@kernel.org, jdamato@fastly.com Cc: pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jstancek@redhat.com Subject: [PATCH v4 2/4] tools: ynl: add initial pyproject.toml for packaging Date: Wed, 8 Jan 2025 14:56:15 +0100 Message-ID: In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Content-Type: text/plain; charset="utf-8" Add pyproject.toml and define authors, dependencies and user-facing scripts. This will be used later by pip to install python code. Signed-off-by: Jan Stancek Reviewed-by: Donald Hunter --- tools/net/ynl/pyproject.toml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..a81d8779b0e0 --- /dev/null +++ b/tools/net/ynl/pyproject.toml @@ -0,0 +1,24 @@ +[build-system] +requires =3D ["setuptools>=3D61.0"] +build-backend =3D "setuptools.build_meta" + +[project] +name =3D "pyynl" +authors =3D [ + {name =3D "Donald Hunter", email =3D "donald.hunter@gmail.com"}, + {name =3D "Jakub Kicinski", email =3D "kuba@kernel.org"}, +] +description =3D "yaml netlink (ynl)" +version =3D "0.0.1" +requires-python =3D ">=3D3.9" +dependencies =3D [ + "pyyaml=3D=3D6.*", + "jsonschema=3D=3D4.*" +] + +[tool.setuptools.packages.find] +include =3D ["pyynl", "pyynl.lib"] + +[project.scripts] +ynl =3D "pyynl.cli:main" +ynl-ethtool =3D "pyynl.ethtool:main" --=20 2.43.0