Skip to content

Commit

Permalink
Us uv for sync
Browse files Browse the repository at this point in the history
  • Loading branch information
coactive-tomas committed Feb 19, 2024
1 parent 2e44b8f commit 179b9d0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 41 deletions.
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "pyrgo"
version = "2.2.9"
version = "2.2.10"
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
Expand All @@ -27,8 +27,7 @@ dependencies = [
"tomlkit < 1",
"pdoc < 15",
"mashumaro[orjson,toml] < 4",
"uv < 1",
"pip-tools < 8",
"uv >= 0.1.5, < 1",
]

[project.optional-dependencies]
Expand Down
9 changes: 5 additions & 4 deletions pyrgo/cmds/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,23 @@ def sync(env: str) -> None:
ensure_env_exist(env=env, config=config, where="lock-files")

piptools_command = PythonCommandExec(
program="piptools",
program="uv",
).add_args(
args=[
"pip",
"sync",
config.requirements.joinpath(f"{env}.txt")
.relative_to(config.cwd)
.as_posix(),
],
)
pip_command = PythonCommandExec(
program="pip",
program="uv",
).add_args(
args=["install"],
args=["pip", "install"],
)

pip_command.add_args(args=["--no-deps", "-e", "."])
pip_command.add_args(args=["-e", "."])

program_execution = inform_and_run_program(
commands=[
Expand Down
2 changes: 0 additions & 2 deletions pyrgo/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@
"pip_audit",
"vulture",
"pdoc",
"pip",
"piptools",
]
22 changes: 6 additions & 16 deletions requirements/core.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
# This file was autogenerated by uv v0.1.1 via the following command:
# uv pip compile --no-cache -o requirements/core.txt pyproject.toml
# This file was autogenerated by uv v0.1.5 via the following command:
# uv pip compile --upgrade --no-cache -o requirements/core.txt pyproject.toml
boolean-py==4.0
# via license-expression
build==1.0.3
# via pip-tools
cachecontrol==0.14.0
# via pip-audit
certifi==2024.2.2
# via requests
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via pip-tools
cyclonedx-python-lib==6.4.1
# via pip-audit
defusedxml==0.7.1
Expand Down Expand Up @@ -58,15 +56,12 @@ packaging==23.2
# pytest
pdoc==14.4.0
pip==24.0
# via
# pip-api
# pip-tools
# via pip-api
pip-api==0.0.33
# via pip-audit
pip-audit==2.7.1
pip-requirements-parser==32.0.1
# via pip-audit
pip-tools==7.3.0
pluggy==1.4.0
# via pytest
py-serializable==1.0.1
Expand All @@ -87,9 +82,7 @@ requests==2.31.0
result==0.16.0
rich==13.7.0
# via pip-audit
ruff==0.2.1
setuptools==69.1.0
# via pip-tools
ruff==0.2.2
six==1.16.0
# via html5lib
sortedcontainers==2.4.0
Expand All @@ -101,7 +94,6 @@ tomli==2.0.1
# build
# mashumaro
# mypy
# pip-tools
# pyproject-hooks
# pytest
# vulture
Expand All @@ -113,13 +105,11 @@ typing-extensions==4.9.0
# mashumaro
# mypy
# result
urllib3==2.2.0
urllib3==2.2.1
# via requests
uv==0.1.1
uv==0.1.5
vulture==2.11
webencodings==0.5.1
# via html5lib
wheel==0.42.0
# via pip-tools
zipp==3.17.0
# via importlib-metadata
22 changes: 6 additions & 16 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
# This file was autogenerated by uv v0.1.1 via the following command:
# uv pip compile --extra dev --no-cache -o requirements/dev.txt pyproject.toml
# This file was autogenerated by uv v0.1.5 via the following command:
# uv pip compile --upgrade --extra dev --no-cache -o requirements/dev.txt pyproject.toml
boolean-py==4.0
# via license-expression
build==1.0.3
# via pip-tools
cachecontrol==0.14.0
# via pip-audit
certifi==2024.2.2
# via requests
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via pip-tools
coverage==7.4.1
# via pytest-cov
cyclonedx-python-lib==6.4.1
Expand Down Expand Up @@ -60,15 +58,12 @@ packaging==23.2
# pytest
pdoc==14.4.0
pip==24.0
# via
# pip-api
# pip-tools
# via pip-api
pip-api==0.0.33
# via pip-audit
pip-audit==2.7.1
pip-requirements-parser==32.0.1
# via pip-audit
pip-tools==7.3.0
pluggy==1.4.0
# via pytest
py-serializable==1.0.1
Expand All @@ -91,9 +86,7 @@ requests==2.31.0
result==0.16.0
rich==13.7.0
# via pip-audit
ruff==0.2.1
setuptools==69.1.0
# via pip-tools
ruff==0.2.2
six==1.16.0
# via html5lib
sortedcontainers==2.4.0
Expand All @@ -106,7 +99,6 @@ tomli==2.0.1
# coverage
# mashumaro
# mypy
# pip-tools
# pyproject-hooks
# pytest
# vulture
Expand All @@ -119,13 +111,11 @@ typing-extensions==4.9.0
# mashumaro
# mypy
# result
urllib3==2.2.0
urllib3==2.2.1
# via requests
uv==0.1.1
uv==0.1.5
vulture==2.11
webencodings==0.5.1
# via html5lib
wheel==0.42.0
# via pip-tools
zipp==3.17.0
# via importlib-metadata

0 comments on commit 179b9d0

Please sign in to comment.