Skip to content

Conversation

@2bndy5
Copy link
Member

@2bndy5 2bndy5 commented Nov 24, 2025

This basically removes all requirements.txt files since uv does not use them. Instead, uv keeps a lock file based on dependencies described in the pyproject.toml manifest. Also adds some unpinned dev dependencies (ruff, mypy, pre-commit) to the automatically sync'd dev group.

Just use uv sync for basic dev env setup; add --group docs and/or --group tests to install deps for the respective groups.

Of course, this adjusts the CI for use of uv. And, I enabled dependabot for auto-updating the uv.lock file.

@2bndy5 2bndy5 added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Nov 24, 2025
@codecov
Copy link

codecov bot commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.26%. Comparing base (aeb772e) to head (1704f5a).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #75   +/-   ##
=======================================
  Coverage   86.26%   86.26%           
=======================================
  Files          16       16           
  Lines        2512     2512           
=======================================
  Hits         2167     2167           
  Misses        345      345           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This basically removes all requirements.txt files since `uv` does not use them.
Instead, `uv` keeps a lock file based on dependencies described in the pyproject.toml manifest.
Also adds some unpinned dev dependencies (ruff, mypy, pre-commit) to the automatically sync'd `dev` group.

Just use `uv sync` for basic dev env setup; add `--group docs` and/or `--group tests` to install deps for the respective groups.

Of course, this adjusts the CI (& RTD config) for use of `uv`.
And, I enabled dependabot for auto-updating the uv.lock file.

Fixed conditional logic in release CI (about deploying to PyPI)
@2bndy5 2bndy5 merged commit dfc8954 into master Nov 24, 2025
10 checks passed
@2bndy5 2bndy5 deleted the switch-to-uv branch November 24, 2025 14:20
adafruit-adabot pushed a commit to adafruit/CircuitPython_Community_Bundle that referenced this pull request Nov 25, 2025
Updating https://github.com/2bndy5/CircuitPython_nRF24L01 to v2.2.0 from v2.1.6:
  > bump version to v2.2.0
  > chore(dev): fix deployments to PyPI
  > build(dev): switch to `uv` (nRF24/CircuitPython_nRF24L01#75)
  > Bump actions/download-artifact from 5 to 6 in the actions group (nRF24/CircuitPython_nRF24L01#76)
  > chore(dev): revise CI (again) (nRF24/CircuitPython_nRF24L01#73)
  > build: drop support for Python v3.7 and v3.8 (nRF24/CircuitPython_nRF24L01#74)
  > chore(dev): upgrade pre-commit hooks (nRF24/CircuitPython_nRF24L01#72)
  > Bump actions/checkout from 5 to 6 in the actions group (nRF24/CircuitPython_nRF24L01#71)
  > Bump actions/upload-artifact from 4 to 5 in the actions group (nRF24/CircuitPython_nRF24L01#70)
  > chore: group dependabot updates into 1 PR
  > Bump actions/checkout from 4 to 5 (nRF24/CircuitPython_nRF24L01#67)
  > Bump actions/setup-python from 5 to 6 (nRF24/CircuitPython_nRF24L01#69)
  > Bump pypa/gh-action-pypi-publish in /.github/workflows (nRF24/CircuitPython_nRF24L01#68)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants