From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 751EF1382C5 for ; Thu, 6 May 2021 07:31:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 950A3E09A8; Thu, 6 May 2021 07:31:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 807EBE0986 for ; Thu, 6 May 2021 07:31:36 +0000 (UTC) Message-ID: <29c8d07d8131885509d78d0dff7c9882e781ed3f.camel@gentoo.org> Subject: [gentoo-dev] Initial Python 3.10 porting notes From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Date: Thu, 06 May 2021 09:31:31 +0200 Organization: Gentoo Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 0469181e-97c4-4265-8369-05d0b6ed8554 X-Archives-Hash: 04345b91765f89808d0f3c57ffb44737 Hi, As you have probably noticed, the first Python 3.10.0 beta has landed (which means no major changes anymore, only bug fixes), and I've started adding python3.10 target to various packages. So far I've managed to reach pytest which is a good sign but there are still many broken (upstream) packages. You can try porting some low-hanging fruit already but please note the following: 1. The target is stable-masked and won't be stable for at least another half a year (final 3.10.0 release is planned in September). 2. Remember to test packages. In my very short experience, 3.10 breaks more stuff than 3.9 or 3.8 did (but then, I've started testing earlier). 3. Do *not* revbump when adding 3.10. It's stable-masked, so you don't have to worry about breaking stable. 4. If you're about to bump what looks like low-hanging fruit, it's a good idea to try porting the current version first. More versions with py3.10 support to choose from, less problems later on. Though I suppose it doesn't matter much given that it won't go stable in a few months. 5. If stuff fails, try upstream's VCS -- there might be some easy backports available. 6. Note that urllib3 is not yet ready which means a significant portion of packages is blocked anyway. If you have any problems, feel free to ping me. -- Best regards, Michał Górny