Skip to content
Snippets Groups Projects
  1. Jul 17, 2024
  2. Jul 11, 2024
    • Jérémy Bobbio (Lunar)'s avatar
      config: keep dicts in config ordered · 32e534f1
      Jérémy Bobbio (Lunar) authored
      YAML mappings are converted in Python as dict. The order
      of the keys in dicts returned by `load_from_envvar()` were
      not stable from one Python run to the next.
      
      Since Python 3.6, dicts are ordered by default, and `yaml.safe_load()`
      will always return keys in the same order. The culprit was
      `merge_configs` which created a set (which are unordered) of keys
      to perform the merge.
      32e534f1
  3. Jun 28, 2024
  4. Jun 20, 2024
  5. Jun 18, 2024
  6. Jun 07, 2024
  7. Jun 05, 2024
  8. May 23, 2024
  9. May 22, 2024
  10. May 16, 2024
  11. May 15, 2024
  12. May 07, 2024
  13. Apr 26, 2024
  14. Mar 29, 2024
  15. Mar 13, 2024
  16. Feb 05, 2024
  17. Jan 30, 2024
  18. Dec 21, 2023
  19. Dec 06, 2023
  20. Dec 05, 2023
  21. Dec 01, 2023
  22. Nov 29, 2023
  23. Nov 28, 2023
    • David Douard's avatar
      Update to swh-py-template v0.1.5 · f84b27f7
      David Douard authored
      - remove sphinx-dev tox env,
      - use non-editable install of swh-docs to build the sphinx doc in tox,
      - remove (now useless) MANIFEST.in.
      f84b27f7
    • David Douard's avatar
      Remove the 'github' package extra · d5f63c82
      David Douard authored
      It's not needed any more.
      d5f63c82
    • David Douard's avatar
      Migrate to copier-base template · 7fcefc48
      David Douard authored
      This replaces the setup.py package file with pyproject.toml (keeping
      setuptools and setuptool_scm) and use an implicit namespace declaration
      for the swh namespace.
      
      Also note that due to the poor support of PEP 420 in pytest, it needs a
      pair of command line arguments to pass all tests (see tox.ini).
      7fcefc48
  24. Nov 09, 2023
  25. Sep 06, 2023
  26. Aug 03, 2023
  27. Jul 13, 2023
    • David Douard's avatar
      Fix read-access granting to the guest user in db_utils · 5bbe5cec
      David Douard authored
      It was missing a commit to actually be granted.
      Add a test for this specific behavior, making sure the guest user has
      proper permissions.
      
      Note that this will work if and only is the guest user does not inherit
      from a bunch of default permissions when created (needs a NOINHERIT).
      5bbe5cec
  28. Jul 10, 2023
  29. Jul 07, 2023
    • David Douard's avatar
      b26a668e
    • David Douard's avatar
      Make `swh db init` command work properly with the --dbname option · 89d48572
      David Douard authored
      This allows to run the command `swh db init --dname DBURI` without
      giving a configuration file while still populating the dbversion table
      in the database.
      
      Note that this may not work for all swh packages, when the postgresql
      backend for the given swh package needs more configuration entries than
      just the psql connection string.
      
      This more or less drops support for "old style" db sql init scripts:
      
      - the `swh db init` will still work for an 'old style' package (in which
        the sql init scripts do create dbversion table and initialize it) but
        will display an error message,
      - the --initial-version option has been dropped, since this made sense
        only for old style packages,
      - the test data 'cli_new' has been renamed as 'cli' (in place of the
        previous "old style" one)
      89d48572
  30. Jun 26, 2023
  31. Jun 20, 2023
Loading