MaartenGr / MaartenGr/BERTopic

ci: add uv_exclude_newer env in github actions workflow?

Open Beginner friendly
#2,485 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.8k
Forks
920
Avg merge
22h 24m
Merged PRs (30d)
5

Description

You are now using `uv` in ci as well. uv offers dependency cooldowns, of X days or weeks within the publication of a new package version. This can be enabled via an env like this in ci:

```yaml
env:
UV_EXCLUDE_NEWER: 1 week # ignore packages published in the last week
```

or directly in `pyproject.toml`, which then will apply to dev work as well:

```toml
[tool.uv]
exclude-newer = "1 week"
```

This way there is a slimmer chance of a bad package hitting ci and/or dev machines. What do you think?

Ref: https://docs.astral.sh/uv/concepts/resolution/#dependency-cooldowns

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the GitHub Actions workflow that uses uv and read how its environment is configured. Apply the proposed dependency cooldown in CI, then run or inspect the workflow to confirm that the setting is accepted and affects dependency resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, python
Domain
ci-cd
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.