Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:

- name: Setup dependencies
run: |
uv export --resolution ${{ matrix.resolution }} > ci-requirements.txt
uv python pin ${{ matrix.python-version }}
uv export --no-managed-python --resolution ${{ matrix.resolution }} > ci-requirements.txt
uv pip install --system -r ci-requirements.txt

- name: Run pre-commit
Expand Down Expand Up @@ -92,7 +93,7 @@ jobs:
include:
- os: "ubuntu-latest"
python-version: "3.10"
uv-version: "0.5.29" # Sync with pyproject.toml
uv-version: "0.6.8" # Sync with pyproject.toml
resolution: "lowest-direct"
codspeed: false
codecov: false
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.10.14
3.10.18
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Inspired by an [**R** package of the same name](https://usethis.r-lib.org/index.
## 🧭 Getting Started

First, it is strongly recommended you [install the uv package manager](https://docs.astral.sh/uv/getting-started/installation/): this is a simple, documented process. If you're already using uv, make sure you're using at least
version v0.5.29 (run `uv version` to check, and `uv self update` to upgrade).
version v0.6.8 (run `uv version` to check, and `uv self update` to upgrade).

> [!TIP]
> At the moment, usethis assumes you will have uv installed in some circumstances. Support for projects that don't use uv is planned for late 2025.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ exclude_also = [
omit = [ "*/pytest-of-*/*" ]

[tool.uv]
required-version = ">=0.5.29" # Sync with README
required-version = ">=0.6.8" # Sync with README
default-groups = [ "test", "dev", "doc" ]
link-mode = "symlink"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
import requests

from usethis._integrations.ci.bitbucket.schema import Script, Step, Step2, StepBase
from usethis._integrations.file.pyproject_toml.io_ import PyprojectTOMLManager
from usethis._integrations.file.pyproject_toml.requires_python import (
get_requires_python,
)
from usethis._test import is_offline


Expand Down Expand Up @@ -40,4 +44,5 @@ def test_matches_schema_store(self):

def test_target_python_version(self):
# If this test fails, we should bump the version in the command in schema.py
assert Path(".python-version").read_text().startswith("3.10")
with PyprojectTOMLManager():
assert get_requires_python() == ">=3.10"
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import pytest
import requests

from usethis._integrations.file.pyproject_toml.io_ import PyprojectTOMLManager
from usethis._integrations.file.pyproject_toml.requires_python import (
get_requires_python,
)
from usethis._integrations.pre_commit.schema import HookDefinition, LocalRepo
from usethis._test import is_offline

Expand Down Expand Up @@ -42,4 +46,5 @@ def test_matches_schema_store(self):

def test_target_python_version(self):
# If this test fails, we should bump the version in the command in schema.py
assert Path(".python-version").read_text().startswith("3.10")
with PyprojectTOMLManager():
assert get_requires_python() == ">=3.10"
Loading