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 29C36139694 for ; Wed, 26 Apr 2017 19:06:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1AE16E0CCB; Wed, 26 Apr 2017 19:06:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E4E13E0CCB for ; Wed, 26 Apr 2017 19:06:23 +0000 (UTC) Received: from pomiot (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id D1AA933BF1C; Wed, 26 Apr 2017 19:06:21 +0000 (UTC) Message-ID: <1493233571.2069.2.camel@gentoo.org> Subject: [gentoo-python] Help needed with adding tests to Python packages From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-python Cc: python Date: Wed, 26 Apr 2017 21:06:11 +0200 Organization: Gentoo Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-0NhkPTw3Er14MgRR1ZO4" X-Mailer: Evolution 3.22.6 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org Mime-Version: 1.0 X-Archives-Salt: a309acc1-8fa2-42c3-b77d-4c7d664727c0 X-Archives-Hash: 2c5c7818ad57007c69fd53ded457ab00 --=-0NhkPTw3Er14MgRR1ZO4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, everyone. We're a fair bit behind with updating packages to support Python 3.5 [1,2]. I've been doing some testing-and-adding myself lately. Sadly, I have to say that what was supposed to be a pretty simple experience turned out a bumpy fix-a-lot-of-mistakes road. Unlike what some people claim, updating PYTHON_COMPAT is not a problem. Neither should be testing the changes. The major problem is bad quality of multiple ebuilds that require immediate attention before python3.5 can be even added. The biggest issue is lack of tests. While I can agree that sometimes tests in Python packages are poorly written upstream or not present at all, there's a lot of packages where lack of tests is purely the Gentoo maintainer's fault, and once added they work seamlessly. So if you have some time, please take a look at our Python packages, especially those on the list for 3.5 testing ([1]), and enable test support whenever possible. Even partially failing tests are better than none. In the matter of instructions, I would like to remind you that distutils don't have a single method of running tests. Some upstreams support the setuptools 'test' command, some require using specific test systems. Some tips regarding the common cases can be found on [3]. If you decide to add 3.5 to packages, please also test 3.6 to avoid revisiting the package again soon. If the new implementations fail, preferably please file a bug to ensure that we can track it. Thanks in advance! Please also let me know if you can think of some ways to improve our documentation. [1]:https://qa-reports.gentoo.org/output/gpyutils/34-to-35.txt [2]:https://qa-reports.gentoo.org/output/gpyutils/34-to-35.svg [3]:https://wiki.gentoo.org/wiki/Project:Python/Tests --=20 Best regards, Micha=C5=82 G=C3=B3rny --=-0NhkPTw3Er14MgRR1ZO4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEXr8g+Zb7PCLMb8pAur8dX/jIEQoFAlkA76NfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDVF QkYyMEY5OTZGQjNDMjJDQzZGQ0E0MEJBQkYxRDVGRjhDODExMEEACgkQur8dX/jI EQo7nxAA8U1XSttPVi1o/MYKXgn/EmLgKNwi3t58H95xU9S5ul97tF1dfwUQt90f ObPe7qFITHYGqpfjRDcKYp6bhma0Pgoql1+k2DprtnKI390gImC1nwF7VHbW/Kaz 9D9i3vfr5l84eVWDNaIVHjJ9X2n9ioiVAIhZdMQZlTcNp/xkfUrp36xyaj4KgSaR ZQ+neeQBJKPqcfSPeka25ukzSkv322HkmDDC3ZfoOLM6gDqMvJkNinbQvtxI9FQc YIWUz3insLJbjJTvax8I3U/uBc18i+YG/j9eL2l9ai6gWGvTuHK9Mj48E+Y0RBrG R/q873r+nwUKWsloTRmUBTcf5+U01mhKJdsETpMsYL8uqRWQVZrQf9hTkqHZGv5h rwsymLj+neBqQOeFNB/kvoDkLzlb+d37K8QX1d/Jky3WtbHsiSqWItP6lGi5afD+ 61SwUvrbOiDCOacUJlUhgmviIcT7pSWtpeXvqGSU6mZFkopuiFbOD3r6KfhFyEJP 639DpiamIQV8gBb/O/EqmDweM2FastrA5Zw0eTkJ1ffCzmdobdz1o9qtSV2ns9hH RprXa/JLjchluhIOtHA9RCbxaaHq6d7Q52OELJI3e6+GI3esCsstOjZfDaaCCPsL uFDeKjYw2pfmzKTWfeiu/7dzUaWjns/VZz63/KdTiwwc+Yi3G/Q= =8+h9 -----END PGP SIGNATURE----- --=-0NhkPTw3Er14MgRR1ZO4--