Skip to content
Snippets Groups Projects
  1. Feb 25, 2025
    • Dylan Aïssi's avatar
      import-debian-package: stop using a PosixPath object as context manager · 90900ab6
      Dylan Aïssi authored
      
      This is no longer supported since Python 3.13 and leads
      to the following error:
      
      Traceback (most recent call last):
        File "/builds/pkg/apertis-dev-tools/tests/import-debian-package/../../tools/import-debian-package", line 681, in <module>
          main(sys.argv)
          ~~~~^^^^^^^^^^
        File "/builds/pkg/apertis-dev-tools/tests/import-debian-package/../../tools/import-debian-package", line 666, in main
          do_import(args)
          ~~~~~~~~~^^^^^^
        File "/builds/pkg/apertis-dev-tools/tests/import-debian-package/../../tools/import-debian-package", line 396, in do_import
          with ensure_dir_or_none(args.cache_dir) or TemporaryDirectory() as downloaddir:
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      TypeError: 'PosixPath' object does not support the context manager protocol
      
      Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
      90900ab6
  2. Oct 03, 2024
  3. Mar 25, 2024
    • Dylan Aïssi's avatar
      import-debian-package: do not use Path objects as a context manager · 183e5220
      Dylan Aïssi authored
      
      pathlib.Path.__enter__() is deprecated and scheduled for removal
      in Python 3.13. Some warnings are generated with Python 3.11:
      
      import-debian-package:281: DeprecationWarning: pathlib.Path.__enter__() is deprecated and scheduled for removal in Python 3.13; Path objects as a context manager is a no-op
        with Path(".git/info/attributes") as f:
      import-debian-package:225: DeprecationWarning: pathlib.Path.__enter__() is deprecated and scheduled for removal in Python 3.13; Path objects as a context manager is a no-op
        with Path('debian/apertis/component') as f:
      import-debian-package:169: DeprecationWarning: pathlib.Path.__enter__() is deprecated and scheduled for removal in Python 3.13; Path objects as a context manager is a no-op
        with Path("debian/changelog") as f:
      
      Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
      183e5220
  4. Sep 28, 2023
  5. Jun 19, 2023
  6. Apr 26, 2023
  7. Dec 19, 2022
  8. Jan 11, 2022
  9. Oct 07, 2021
Loading