Skip to content

Commit

Permalink
switch to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Nov 16, 2024
1 parent cb30c33 commit 45421ee
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"label": "install dependencies",
"type": "shell",
"command": "./pw",
"args": ["pdm", "sync", "--clean", "-G", "dev", "-G", "docstubs", "-G", "lochelper"],
"args": ["uv", "sync", "--no-group", "docstubs-old"],
"presentation": {
"clear": true
},
Expand Down
4 changes: 2 additions & 2 deletions pw.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[main]
requirements = ["anyio==4.5.2", "blinker==1.8.2", "certifi==2024.8.30", "dep-logic==0.4.9", "distlib==0.3.9", "exceptiongroup==1.2.2 ; python_full_version < '3.11'", "filelock==3.16.1", "findpython==0.6.2", "h11==0.14.0", "hishel==0.0.33", "httpcore==1.0.6", "httpx==0.27.2", "idna==3.10", "importlib-metadata==8.5.0 ; python_full_version < '3.10'", "importlib-resources==6.4.5 ; python_full_version < '3.9'", "installer==0.7.0", "markdown-it-py==3.0.0", "mdurl==0.1.2", "msgpack==1.1.0", "packaging==24.2", "pbs-installer==2024.10.16", "pdm==2.20.1", "platformdirs==4.3.6", "pygments==2.18.0", "pyproject-hooks==1.2.0", "python-dotenv==1.0.1", "resolvelib==1.1.0", "rich==13.9.4", "shellingham==1.5.4", "sniffio==1.3.1", "socksio==1.0.0", "tomli==2.1.0 ; python_full_version < '3.11'", "tomlkit==0.13.2", "truststore==0.10.0 ; python_full_version >= '3.10'", "typing-extensions==4.12.2", "unearth==0.17.2", "virtualenv==20.27.1", "zipp==3.20.2 ; python_full_version < '3.10'"]
hash = "ab061d9d4f9bea1cc2de64816d469baf"
requirements = ["uv==0.5.2"]
hash = "45210da832f9626829457a65e9e7c4d0"
36 changes: 18 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ authors = [
]
readme = "README.md"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.8"
dependencies = [
Expand Down Expand Up @@ -74,18 +74,11 @@ basedpyright-langserver = 'basedpyright.langserver:main'

[tool.pyprojectx]
lock-python-version = "3.8"
main = ["pdm"]
main = ["uv"]

[tool.pdm]
distribution = true


[tool.pdm.version]
source = "call"
getter = "based_build.get_version:get_version"

[tool.pdm.scripts]
update = "pdm update -G dev -G docstubs -G lochelper"
[tool.pyprojectx.aliases]
update = "uv sync --upgrade --no-group docstubs-old"
# we specify the python range here because our dev dependencies require at least python 3.9 but we still want to
# support 3.8 in the published package. ideally we wouldn't because it's EOL but we want to support all versions
# of python supported by pyright. https://github.com/DetachHead/basedpyright/issues/658
Expand All @@ -102,6 +95,13 @@ generate_docstubs = { call = "based_build.generate_docstubs:main" }
localization_helper = 'python based_build/localization_helper.py'
docs = "mkdocs serve"

[tool.uv]
default-groups = ["dev", "docstubs", "lochelper"]

[tool.pdm.version]
source = "call"
getter = "based_build.get_version:get_version"

[tool.pdm.build]
excludes = ["tests/", "pdm_build.py"]
source-includes = [
Expand Down

0 comments on commit 45421ee

Please sign in to comment.