#1114123 geopy: FTBFS: dh_auto_test: error: pybuild --test -i python{version} -p 3.13 returned exit code 13

Package:
src:geopy
Source:
src:geopy
Submitter:
Santiago Vila
Date:
2025-09-28 21:07:04 UTC
Severity:
normal
Tags:
#1114123#5
Date:
2025-09-05 18:17:39 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build.

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202509/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:geopy, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
/usr/share/dh-python/dhpython/build/__init__.py:30: DeprecationWarning: glob.glob1 is deprecated and will be removed in Python 3.15. Use glob.glob and pass a directory to its root_dir argument instead.
  for i in sorted(i[7:-3] for i in glob1(dirname(__file__), 'plugin_*.py')):
/usr/share/dh-python/dhpython/build/base.py:136: DeprecationWarning: glob.glob1 is deprecated and will be removed in Python 3.15. Use glob.glob and pass a directory to its root_dir argument instead.
  res = glob1(context['dir'], ftpl)
/usr/share/dh-python/dhpython/build/base.py:148: DeprecationWarning: glob.glob1 is deprecated and will be removed in Python 3.15. Use glob.glob and pass a directory to its root_dir argument instead.
  res = glob1(context['dir'], ftpl)
I: pybuild base:311: python3.13 setup.py clean
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************

[... snipped ...]

  See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture
    warnings.warn(

test/geocoders/what3words.py::TestWhat3Words::test_geocode
  /usr/lib/python3/dist-packages/_pytest/fixtures.py:1181: PytestRemovedIn9Warning: 'TestWhat3Words' requested an async fixture 'class_geocoder' with autouse=True, with no plugin or hook that handled it. This is usually an error, as pytest does not natively support it. This will turn into an error in pytest 9.
  See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture
    warnings.warn(

test/geocoders/what3words.py::TestWhat3WordsV3::test_geocode
  /usr/lib/python3/dist-packages/_pytest/fixtures.py:1181: PytestRemovedIn9Warning: 'TestWhat3WordsV3' requested an async fixture 'class_geocoder' with autouse=True, with no plugin or hook that handled it. This is usually an error, as pytest does not natively support it. This will turn into an error in pytest 9.
  See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture
    warnings.warn(

test/geocoders/woosmap.py::TestWoosmap::test_user_agent_custom
  /usr/lib/python3/dist-packages/_pytest/fixtures.py:1181: PytestRemovedIn9Warning: 'TestWoosmap' requested an async fixture 'class_geocoder' with autouse=True, with no plugin or hook that handled it. This is usually an error, as pytest does not natively support it. This will turn into an error in pytest 9.
  See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture
    warnings.warn(

test/geocoders/yandex.py::TestYandex::test_user_agent_custom
  /usr/lib/python3/dist-packages/_pytest/fixtures.py:1181: PytestRemovedIn9Warning: 'TestYandex' requested an async fixture 'class_geocoder' with autouse=True, with no plugin or hook that handled it. This is usually an error, as pytest does not natively support it. This will turn into an error in pytest 9.
  See: https://docs.pytest.org/en/stable/deprecations.html#sync-test-depending-on-async-fixture
    warnings.warn(

test/test_timezone.py::TimezoneTestCase::test_create_from_fixed_gmt_offset
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_geopy/build/test/test_timezone.py:40: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    dt = datetime.datetime.utcnow()

#1114123#10
Date:
2025-09-26 12:01:28 UTC
From:
To:
These are because pytest 8.4 now fails more tests that it can't run, in
this case async tests without a plugin that can handle them.

https://docs.pytest.org/en/stable/changelog.html#removals-and-backward-incompatible-breaking-changes

 From setup.py / pyproject.toml, all 3 of these upstreams use the
(python3-)pytest-asyncio plugin, so build/autopkgtest-depending on that
should fix these.

#1114123#17
Date:
2025-09-26 16:02:33 UTC
From:
To:
Fixed in Salsa pull requests.
#1114123#22
Date:
2025-09-28 21:04:24 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
geopy, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1114123@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Manuel Guerra <ar.manuelguerra@gmail.com> (supplier of updated geopy package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 28 Sep 2025 13:50:49 -0400
Source: geopy
Architecture: source
Version: 2.4.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Manuel Guerra <ar.manuelguerra@gmail.com>
Closes: 1114123
Changes:
 geopy (2.4.1-2) unstable; urgency=medium
 .
   * debian/rules: Fix tests that prevent a healthy build from running.
     (Closes: #1114123)
   * debian/control: Reorder dependencies and update control file
     - Add async dependencies.
     - Move test dependencies to Build-Depends-Indep.
     - Bump standards version to 4.7.2 (No changes required).
     - Remove unused Rules-Requires-Root.
     - Duplicate tests in autopkgtest.
     - Add Manuel Guerra to Uploaders list.
   * debian/pytest.ini: Add file to manage pytest
   * debian/tests: Remove maintainer tests
   * debian/watch: Bump to version 5, rewrite source info
   * debian/copyright: Add Manuel Guerra to 'debian/*' stanza
Checksums-Sha1:
 07e86711d3cb2e16de834acb06128a6ac0db03c5 2301 geopy_2.4.1-2.dsc
 88f09ac247c7a5ee68a15f64944158d35e01fc09 4772 geopy_2.4.1-2.debian.tar.xz
 be08c1557195230d93e6ee3be8a179db4f912763 6919 geopy_2.4.1-2_source.buildinfo
Checksums-Sha256:
 f2e80525b5444d01814dda3ee758a2bf4f7b9961c53bcfb31cdd5f1c2be0ffd6 2301 geopy_2.4.1-2.dsc
 95d6d8c0b036da0327a0c67b4be165aa94d2df709ab752aabb24deab9114d45f 4772 geopy_2.4.1-2.debian.tar.xz
 294af04c97a13e1992a3905376a5d9282185c8b74f3dde099bde9335adfab76c 6919 geopy_2.4.1-2_source.buildinfo
Files:
 792d2eb698ef24ee72949c13c1256851 2301 python optional geopy_2.4.1-2.dsc
 d4ea712a799349894d037d155bc3e809 4772 python optional geopy_2.4.1-2.debian.tar.xz
 49faf4e3bac1bf3cf257052fe163313c 6919 python optional geopy_2.4.1-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmjZoHMACgkQMfMURUSh
dBoI7w/+L2zUt3Zuzm3CkShbk/elemlKPiGAQdhMcFT/3XZCKAuEqVQFZz1FbYaa
aAAb583PgrQFKhKMU3ITkFeRk9owQnI9lQUwcd0OIRtljR3RCcJbAdvpx9LSmB3a
XIotfpYDR1Rpr3mcUYimpRUHiGzsLuqAuXjA3wCpu434Ht4z6EGrG/LquPG2OI4C
LnuvXnnYM+Nd9PHUFZE98J2NhsOxUzD13+S8cVxYmvKsxfNDE6FdJbCSDFOe1bHq
ktARrlxxzXRA1/jZvkyW21xCMmstUNUjMy+1w/1lxOpdbny35/tqpPzbSg38zPJ1
/kuAVytxQnkXyAjVnTNxm1HDcmvjSV3EGbV+A1qZSmCm1qY8iD5gFiGPCnhafa+v
OovyqEJSVgwqWEn41Kxs3Gl9pqcZ70qnr/wjvAM9qBTGvGLYXLlrhi9r9XSd1D9c
BkV49jZvGYSVGUOc6nNWJGs1Ok0yGPubh9+J6R2MBppubLcU/Q/T+l6JN5WZVEmO
XiqxjXtiCqS6yNoRfIVuCqWTHn7tKvrddmhgARSj1Tr4oVhkS1T4pfG7y81ZTI8N
Rsz43XbTxGulQ7CtBZ0g7PI3rljMb9wIOgT3JBuNrnzNha+Kw7paVjrVTyq3+s5k
XoqyclDyi5J2lTRbmmHrK1eH5SJ10vBxne+AQaF1ou3XehWPd24=
=p0jp
-----END PGP SIGNATURE-----