Skip to content
Snippets Groups Projects
  1. Dec 03, 2023
  2. Nov 29, 2023
  3. Nov 09, 2023
  4. Nov 08, 2023
  5. Oct 25, 2023
  6. Sep 28, 2023
  7. Sep 18, 2023
    • Antoine R. Dumont's avatar
      setup.py: Remove sdisk build warning about importable packages · f22dfe2b
      Antoine R. Dumont authored
      This fixes the sdist build warnings about importable packages (swh.vault.sql,
      swh.vault.sql.upgrades). [1]
      
      This aligns with the swh.storage's setup.py.
      
      [1] for package in swh.vault.sql swh.vault.sql.upgrades
      ```
          ############################
          # Package would be ignored #
          ############################
          Python recognizes '$package' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.
      
          '$package' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).
      
          Please make sure that '$package' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
      
          You can read more about "package discovery" and "data files" on setuptools
          documentation page.
      ```
      
      Refs. swh/infra/sysadm-environment#5044
      Verified
      f22dfe2b
  8. Sep 14, 2023
    • vlorentz's avatar
      to_disk: Represent revisions as empty directories instead of symlinks · e8fa9a45
      vlorentz authored
      The symlink representation is slightly ambiguous, so not necessarily
      very useful.
      Additionally, it made directory-flat bundles differ from a non-recursive
      'git clone' checkout, which confuses Guix and potentially other tools.
      
      We may revisit this in the future, eg. by adding a dotfile in the
      directory or metadata at the root.
      e8fa9a45
  9. Jul 19, 2023
  10. Jul 13, 2023
    • Antoine Lambert's avatar
      backend: Move postgresql backend initialization in a separate class · 1614bb65
      Antoine Lambert authored
      Since commit swh/devel/swh-core@89d48572, the "swh db init" command attempts
      to instantiate the postgresql backend of a swh module using the get_datastore
      function of the module with a "cls" and "db" parameters.
      
      While it works fine for most of swh modules, it does not for the vault as more
      parameters are expected by the "get_vault" function and thus the database init
      is failing. The issue was spotted in the docker environment after updating the
      swh/stack image.
      
      So extract postgresql backend initialization for the vault in a new class named
      VaultBackendDataStore and set it as swh.vault.get_datastore attribute value.
      1614bb65
  11. Jul 07, 2023
  12. Jun 26, 2023
  13. May 11, 2023
  14. Mar 03, 2023
  15. Feb 23, 2023
  16. Feb 17, 2023
  17. Feb 16, 2023
  18. Feb 02, 2023
  19. Dec 19, 2022
  20. Nov 23, 2022
  21. Nov 07, 2022
  22. Oct 19, 2022
  23. Oct 18, 2022
  24. Sep 14, 2022
    • David Douard's avatar
      Bump swh dependencies · c315c245
      David Douard authored
      to more reasonable versions...
    • David Douard's avatar
      Instanciate the SMTP class only when needed · cab17e72
      David Douard authored
      instead of creating it in the VaultBackend constructor: when configured
      (with host and port), SMTP.connect() is immediately called, which makes
      it mandatory to have the smtp server up and running to be able to create
      the VaultBackend object (which makes it hard to run properly in an elastic
      environment like docker or k8s).
      
      This also removes the fallback to hardcoded 'localhost:25' smtp server;
      if the smtp server is not configured or not reachable, the call to
      _smtp_send() will fail logging the failure (both in logging and sentry).
      cab17e72
  25. Aug 30, 2022
  26. Aug 04, 2022
  27. Jul 29, 2022
  28. Jul 19, 2022
    • vlorentz's avatar
      Fix mypy error · ceb26750
      vlorentz authored
      This is not a runtime issue, because when the supplied mode is DentryPerms.symlink,
      the target is only used passed to os.symlink, which does allow str too.
      ceb26750
  29. Jun 23, 2022
  30. Jun 22, 2022
  31. Jun 21, 2022
  32. Jun 07, 2022
Loading