Skip to content
Snippets Groups Projects
  1. Dec 18, 2024
  2. Dec 16, 2024
  3. Dec 06, 2024
    • Fredrik Jonsson's avatar
      Updated python packages December 2024. (#4251) · a809dfd1
      Fredrik Jonsson authored
      The flow to update are as follow:
      
      1. Run `uv tree -d 1 --outdated` to get  list of packages with updates.
      2. Update the package version in `pyproject.toml`
      3. Run `uv sync`, this will install all the new packages and sync the
      `uv.lock` file.
      * The command will alert of any dependency conflicts, you need to
      resolve these.
      4. Run `pre-commit run --all-files`, this will run the `uv` commands
      needed to update all the requirements* files. (Info is taken from the
      `uv.lock` file so it must be updated before this step.)
      Unverified
      a809dfd1
  4. Dec 05, 2024
    • Saurabh Kumar's avatar
      Use uv to manage and generate dependencies (#4232) · d62fca02
      Saurabh Kumar authored
      - Use frozen dependencies with hashes to ensure reproducible dependency
      installation in a secure way.
      - Uses `uv` and pre-commit to automatically generate the locked
      requirements files from pyproject.toml.
      - While the translation dependencies can be installed directly with
      `uv`, uv doesn’t seem to be able to add `--find-link=…` to the exported
      `requirements/translate.txt`, for that reason the translation
      dependencies are left as they are and won’t be automatically exported
      via pre-commit.
      - So whenever `uv lock —upgrade` is run, it will freeze the latest patch
      versions.
      - The production dependencies are specified with a `~` which means `>=`
      at the last digit of requirements.
      - The dev dependencies have `>=` to make them easy to update, if
      something breaks in dev either fix it or go back to the old frozen
      dependencies.
      - Moved generated dependencies in requirements/ folder.
      - Use `--no-deps` where applicable while installing these generated
      requirements as the sub-dependencies are already resolved.
      Unverified
      d62fca02
Loading