From patchwork Sat Sep 21 02:26:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 13808770 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F6423201 for ; Sat, 21 Sep 2024 02:26:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726885614; cv=none; b=cfsf9ZoqRGPiTve9nR2Pu27VVPrEJO0V5U7sZsNlDIqqHZtZx6jCd6IKvg8R/kLbD0S+KfX7vVu233UOAPnU2Pff5OPY7gcJMlaty7GbrlXxPjVMo18ON91uZbfKdvvOpBtcWunNabus3VH8Aey0EvH1khkbQ3xJbrMUr+/jZ/Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726885614; c=relaxed/simple; bh=VvzKM96OOWVdKfYvs1f65ccpMQHYEOg2Tnb2jjRKAKA=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JE7qJAhVLoLyY7Omx9VdXGUC/VAfkTQrWBDuCvjPsrIJY1y5rpM4p9dA/cJRl/l4TPWpQJ4ztCM+q6WwI6KEOTtJm3SzjUXoiBxw6Zup5gmz5GlwV4g4V6Q8DLDU21cAdVvL4sdFri8crtXDsQaXbp0DBlvognwmdTtNI5qw4/I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=gZfV3X4y; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=gZfV3X4y; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="gZfV3X4y"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="gZfV3X4y" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 941E61FCEC for ; Sat, 21 Sep 2024 02:26:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1726885610; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5W8/S3rzvCh9xzfwbXC9GNObKffN/NrUwizjrDHfqoc=; b=gZfV3X4yFpDqnGqtUA6hofUDnXWDEa1L9a3xi/EkatZ9POE/a9PDuGkCxn4hsq8JUPiE19 SB1Z4rs0XETO5UbFU2bEQ/zwulx/QSouqTCo8ABUjuh16OzdIIxdP0OPyeNUdrVJFyQ6FJ cMuLF8rorUGOt7zCFdm2BfOus0r1gKA= Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1726885610; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5W8/S3rzvCh9xzfwbXC9GNObKffN/NrUwizjrDHfqoc=; b=gZfV3X4yFpDqnGqtUA6hofUDnXWDEa1L9a3xi/EkatZ9POE/a9PDuGkCxn4hsq8JUPiE19 SB1Z4rs0XETO5UbFU2bEQ/zwulx/QSouqTCo8ABUjuh16OzdIIxdP0OPyeNUdrVJFyQ6FJ cMuLF8rorUGOt7zCFdm2BfOus0r1gKA= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id D173E13882 for ; Sat, 21 Sep 2024 02:26:49 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id KEvCJOku7malAQAAD6G6ig (envelope-from ) for ; Sat, 21 Sep 2024 02:26:49 +0000 From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH 1/3] btrfs-progs: libbtrfsutil/python: use MANIFEST.in for headers Date: Sat, 21 Sep 2024 11:56:24 +0930 Message-ID: <668010409411af3c06e2b6dda62f31fd9e54304d.1726885304.git.wqu@suse.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Score: -2.74 X-Spamd-Result: default: False [-2.74 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.14)[-0.705]; MIME_GOOD(-0.10)[text/plain]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:mid,suse.com:email]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[linux-btrfs@vger.kernel.org]; RCVD_TLS_ALL(0.00)[] X-Spam-Flag: NO X-Spam-Level: [BUG] Currently with python3.12, the python bindding will always result the following warning: [PY] libbtrfsutil /usr/lib/python3.12/site-packages/setuptools/_distutils/extension.py:134: UserWarning: Unknown Extension options: 'headers' warnings.warn(msg) [CAUSE] In the setup.py which specifies the files to be included into the package, we use setuptools::Extension to specify the file lists and include paths. But there is no handling of Extension::headers member, thus resulting the above warning. [FIX] According to the docs of setuptools, MANIFEST.in is the file controlling what files should be included. So instead of the non-supported headers, use MANIFEST.in to include the needed headers. Signed-off-by: Qu Wenruo --- libbtrfsutil/python/MANIFEST.in | 1 + libbtrfsutil/python/setup.py | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) create mode 100644 libbtrfsutil/python/MANIFEST.in diff --git a/libbtrfsutil/python/MANIFEST.in b/libbtrfsutil/python/MANIFEST.in new file mode 100644 index 000000000000..b613db8ea918 --- /dev/null +++ b/libbtrfsutil/python/MANIFEST.in @@ -0,0 +1 @@ +include btrfsutilpy.h diff --git a/libbtrfsutil/python/setup.py b/libbtrfsutil/python/setup.py index e0ffb7c52c5b..79c0b48dee7d 100755 --- a/libbtrfsutil/python/setup.py +++ b/libbtrfsutil/python/setup.py @@ -97,9 +97,6 @@ module = Extension( 'qgroup.c', 'subvolume.c', ], - headers=[ - 'btrfsutilpy.h' - ], include_dirs=['..'], library_dirs=['../..'], libraries=['btrfsutil'], From patchwork Sat Sep 21 02:26:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 13808771 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86FCB3D7A for ; Sat, 21 Sep 2024 02:26:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726885616; cv=none; b=mBfhGOog5B/7rZ6vSQKUWGKB0mecV6x2lsHaZuxqbi+8Iureq24gS66euInU0YNWCi1cufaIqMCMgZz3PQen+Q4il6ONENqaSR99kgkWYh//YXHPzVnxZq6fDdYvpYjME+fjMaQiZmQ5x+DM8GLp3ycmrbPzRH74NAFe9AIkyOo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726885616; c=relaxed/simple; bh=DKmbggXNT+oU3HVWreJ17QVxm+da3iG+2M+/P177Mmw=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=d3ICnkV8wE1ks2BSiLj3wfifFFCPudKvi6sw2kHFpV1Ta/qih/BYLv2Ha0uk3lY7oFsrP5dRklxtFYu2m8Avbf2+dsmHO0YACFK/Qwt0L7V1pjLkSq+/r+ey7ZlrUYdLfQp+2oePSmpxAdYgMj3hPNdp29ds5aW2umurJQsykGQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=AwCmdGjx; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=AwCmdGjx; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="AwCmdGjx"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="AwCmdGjx" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D274833A80 for ; Sat, 21 Sep 2024 02:26:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1726885611; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E3Y/+28kUYc4GxksJ3UWeKUQ1F7koGi9A+mLxTjandE=; b=AwCmdGjxzBTLEkzfjz49cKxObfhseYCt4ZBjyp2qMkh6Knrvi3Yw+Cne0MnXL+GU3B+2t3 1+dLlosi/q8uACPfsCPdAEb1EEcwIWTQ0ieUinaPoPtgCRt44ZZxv0ECw0F4qBJ5/sCN+D WDsM4XoTK9RvllRwtKefMaw4dXeQL3g= Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1726885611; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E3Y/+28kUYc4GxksJ3UWeKUQ1F7koGi9A+mLxTjandE=; b=AwCmdGjxzBTLEkzfjz49cKxObfhseYCt4ZBjyp2qMkh6Knrvi3Yw+Cne0MnXL+GU3B+2t3 1+dLlosi/q8uACPfsCPdAEb1EEcwIWTQ0ieUinaPoPtgCRt44ZZxv0ECw0F4qBJ5/sCN+D WDsM4XoTK9RvllRwtKefMaw4dXeQL3g= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 10C9B13882 for ; Sat, 21 Sep 2024 02:26:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id gERQMeou7malAQAAD6G6ig (envelope-from ) for ; Sat, 21 Sep 2024 02:26:50 +0000 From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH 2/3] btrfs-progs: libbtrfsutil/python: remove unnecessary build options Date: Sat, 21 Sep 2024 11:56:25 +0930 Message-ID: X-Mailer: git-send-email 2.46.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Level: X-Spamd-Result: default: False [-2.68 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_SHORT(-0.08)[-0.410]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,suse.com:mid]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[linux-btrfs@vger.kernel.org]; RCVD_TLS_ALL(0.00)[] X-Spam-Score: -2.68 X-Spam-Flag: NO There is no special include and libarary path required for the build of cpython binding. Just remove the unnecessary build options. Signed-off-by: Qu Wenruo --- libbtrfsutil/python/setup.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/libbtrfsutil/python/setup.py b/libbtrfsutil/python/setup.py index 79c0b48dee7d..8b377b9fa1b6 100755 --- a/libbtrfsutil/python/setup.py +++ b/libbtrfsutil/python/setup.py @@ -97,8 +97,6 @@ module = Extension( 'qgroup.c', 'subvolume.c', ], - include_dirs=['..'], - library_dirs=['../..'], libraries=['btrfsutil'], ) From patchwork Sat Sep 21 02:26:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 13808772 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB91717BA6 for ; Sat, 21 Sep 2024 02:26:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726885617; cv=none; b=SjHuZ62Iir3oLgHsboQaLN1mX9CysnJnmFyl1W7SUPl5W2/SOiWqg+BwxDzvx2ja+l+oJgVcbwNgj1G24poZwxWeSzdF9Q/aWtXY+XYhv/C6NQXyqlANWqDfZmsia2LPJKdTZnwjPVpJHpbycUBJ+ZCEfrud6TtllWIB8oX3BXU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726885617; c=relaxed/simple; bh=qHQVY//wC96T7OumadZ0sxAjDlsxBrSWTAETqFdadyk=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Uvp9eIOEffdesPIrnpzPqk7q3uWY/1nBv62tfKnL7bA0uBVW86oLsNNdHWQG199DiX93SVerGiUNP4AjB6InGEi5NahtyjOzAxBa8GLxPZw300NucykR6ZW4v4ghxkgIz6zRgYdfKcRvog/Jy7m1ecqQ/dYYENcIA8QhwzRB7rE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=WWMZKMtL; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=WWMZKMtL; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="WWMZKMtL"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="WWMZKMtL" Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1738D33A81 for ; Sat, 21 Sep 2024 02:26:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1726885613; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mivLDb6MXTtw/S6LgmAqVIxjrhBpSYRVUKQQEDoegB8=; b=WWMZKMtLut7QFa2+Pezbi/c3APRwGtaDfQihcwZMyU3q4UwYXzJe7TvwMwQfvWvmrQJoT3 /TEo0n5gtaXNFhhOf3R89Bpuvb9/2In0/vpayQ79sE2lyM+rqpcwjlg8zq6yAXsT7qyfNB yFVeKgphJtOcEOXS08vKBDPWRCSlTyA= Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.com header.s=susede1 header.b=WWMZKMtL DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1726885613; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mivLDb6MXTtw/S6LgmAqVIxjrhBpSYRVUKQQEDoegB8=; b=WWMZKMtLut7QFa2+Pezbi/c3APRwGtaDfQihcwZMyU3q4UwYXzJe7TvwMwQfvWvmrQJoT3 /TEo0n5gtaXNFhhOf3R89Bpuvb9/2In0/vpayQ79sE2lyM+rqpcwjlg8zq6yAXsT7qyfNB yFVeKgphJtOcEOXS08vKBDPWRCSlTyA= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 4FC6613882 for ; Sat, 21 Sep 2024 02:26:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id gFoHBewu7malAQAAD6G6ig (envelope-from ) for ; Sat, 21 Sep 2024 02:26:52 +0000 From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH 3/3] btrfs-progs: libbtrfsutil/python: reuse existing README.md for long description Date: Sat, 21 Sep 2024 11:56:26 +0930 Message-ID: <0ca0915fe097761d0120a487b7179d056bbf93f5.1726885304.git.wqu@suse.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Rspamd-Queue-Id: 1738D33A81 X-Spam-Score: -3.00 X-Rspamd-Action: no action X-Spamd-Result: default: False [-3.00 / 50.00]; BAYES_HAM(-3.00)[99.97%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.com:s=susede1]; NEURAL_HAM_SHORT(-0.19)[-0.967]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:dkim,suse.com:mid,suse.com:email]; DNSWL_BLOCKED(0.00)[2a07:de40:b281:106:10:150:64:167:received]; PREVIOUSLY_DELIVERED(0.00)[linux-btrfs@vger.kernel.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; RCVD_TLS_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[suse.com:+] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Flag: NO X-Spam-Level: Instead of copying the file during custom build commands, just use a soft link to re-use the existing README.d from libbtrfsutil. Issue: #310 Signed-off-by: Qu Wenruo --- libbtrfsutil/python/README.md | 1 + libbtrfsutil/python/setup.py | 2 ++ 2 files changed, 3 insertions(+) create mode 120000 libbtrfsutil/python/README.md diff --git a/libbtrfsutil/python/README.md b/libbtrfsutil/python/README.md new file mode 120000 index 000000000000..32d46ee883b5 --- /dev/null +++ b/libbtrfsutil/python/README.md @@ -0,0 +1 @@ +../README.md \ No newline at end of file diff --git a/libbtrfsutil/python/setup.py b/libbtrfsutil/python/setup.py index 8b377b9fa1b6..5e3bcf088699 100755 --- a/libbtrfsutil/python/setup.py +++ b/libbtrfsutil/python/setup.py @@ -106,6 +106,8 @@ setup( #version=get_version(), version='6.11', description='Library for managing Btrfs filesystems', + long_description=open('README.md').read(), + long_description_content_type='text/markdown', url='https://github.com/kdave/btrfs-progs', license='LGPLv2+', cmdclass={'build_ext': my_build_ext},