Skip to content

Commit

Permalink
uv non-package project support
Browse files Browse the repository at this point in the history
  • Loading branch information
Fogapod committed Aug 28, 2024
1 parent 26a72f1 commit 19fad62
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: actions/checkout@v4
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/0.3.5/install.sh | sh
run: curl -LsSf https://astral.sh/uv/0.4.0/install.sh | sh
- name: Set up Python
run: uv python install
- name: install dependencies
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ENV PYTHONUNBUFFERED=yes \

WORKDIR /code

COPY --from=ghcr.io/astral-sh/uv:0.3.5 /uv /bin/uv
COPY --from=ghcr.io/astral-sh/uv:0.4.0 /uv /bin/uv
COPY uv.lock pyproject.toml .

RUN --mount=type=cache,target=/root/.cache/uv : \
Expand Down
6 changes: 0 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[project]
name = "PINK"
version = "0.1.0"
description = "Potato Is Not Kiwi"
requires-python = "==3.12.*"
dependencies = [
"discord-py[speed]>=2.0",
Expand All @@ -16,11 +15,6 @@ dependencies = [
"yarl>=1.9.4",
]

# a way to have virtual package until https://github.com/astral-sh/uv/pull/6585
# is released
[tool.uv.workspace]
members = []

[tool.uv]
dev-dependencies = [
"mypy>=1.11.2",
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 19fad62

Please sign in to comment.