Skip to content
Snippets Groups Projects
  1. Dec 18, 2024
    • Antoine Lambert's avatar
      package: Harmonize the way package versions are sorted · b773bc11
      Antoine Lambert authored
      Instead of implementing the versions sorting in each package loader
      prefer  to have a base implementation in swh.loader.package.PackageLoader
      class through the get_sorted_versions method. It relies on the looseversion
      module enabling to interact with heterogeneous version schemes which works
      pretty well with a large majority of package loaders.
      
      The get_default_version method of the PackageLoader class now also has a
      base implementation returning the last element from the list returned by
      the get_sorted_versions method. As a consequence, each snapshot produced
      by a package loader contains a HEAD alias branch targeting the branch
      for the highest version number of a package.
      
      Both methods can be reimplemented in package loaders for special cases
      like debian for instance.
      
      Also remove the use of the packaging module to parse versions as it is
      only dedicated to parse Python package versions.
      
      Related to swh/devel/swh-lister#4711.
      b773bc11
  2. Dec 02, 2024
  3. Sep 05, 2024
    • Franck Bret's avatar
      crates: Improve loader implementation · 89659947
      Franck Bret authored and Antoine Lambert's avatar Antoine Lambert committed
      Add incremental support based on sha256 EXTID.
      
      Use looseversion.LooseVersion2 to parse crate versions.
      
      Manage release date for each versions of a package.
      
      Fetch extrinsic metadata for a crate version from crates Web API.
      
      Adapt test dataset and add incremental test cases.
      
      Related to swh/meta#4104
      89659947
  4. Aug 30, 2024
  5. Aug 27, 2024
  6. Jun 28, 2024
  7. Jun 06, 2024
  8. Jun 03, 2024
  9. May 27, 2024
  10. May 22, 2024
  11. May 21, 2024
  12. May 15, 2024
  13. Mar 28, 2024
  14. Mar 05, 2024
  15. Feb 26, 2024
  16. Feb 16, 2024
  17. Feb 05, 2024
  18. Feb 02, 2024
  19. Jan 26, 2024
  20. Jan 17, 2024
  21. Jan 16, 2024
    • Antoine Lambert's avatar
      package/utils: Set accept-encoding to identity for download request · fe561600
      Antoine Lambert authored
      requests package set the value of the Accept-Encoding HTTP header to
      "gzip, deflate" by default and some servers (https://download.ocamlcore.org/
      for instance) will then send a compressed version of the artifact to download
      with response header content-encoding usually set to gzip.
      
      Nevertheless, this conflicts with the code checking if the response bytes
      should be uncompressed as it should not when Content-Encoding header is equal
      to gzip and Content-Type is equal to application/*gzip.
      
      As artifacts to download are usually tarballs already compressed with gzip,
      set the Accept-Encoding request header to identity in order to force the
      server to send raw artifact bytes without the Content-Encoding header set.
      fe561600
    • Antoine Lambert's avatar
      core/loader: Rename ExtID type nar-<hash>-raw-validated to nar-<hash> · c8b10b15
      Antoine Lambert authored
      It seems a better naming as shorter is better.
      c8b10b15
  22. Jan 15, 2024
    • Antoine Lambert's avatar
      NodeLoader: Store standard checksums as ExtIDs in addition to NAR ones · b6144242
      Antoine Lambert authored
      The NodeLoader class handles two checksums layout:
      
      - standard: checksum is computed from the raw downloaded artifact bytes
      - nar: checksum is a NAR hash, recursively computed from source code tree
      
      Previously, only nar checksums were stored as ExtIDs while standard ones
      were only used for integrity checks after downloads.
      
      As mapping a tarball (resp. file) standard checksum to its corresponding
      directory (resp. content) SWHID is of interest for Guix to check if SWH
      archived this software artifact, ensure to also save standard checksums
      as ExtIDs of type "checksum-<hash_algo>".
      b6144242
  23. Dec 07, 2023
Loading