Skip to content

Commit

Permalink
uv only for lock
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomperez98 committed Feb 16, 2024
1 parent 5d4ace8 commit 2e44b8f
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 10 deletions.
3 changes: 2 additions & 1 deletion 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.8"
version = "2.2.9"
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
Expand All @@ -28,6 +28,7 @@ dependencies = [
"pdoc < 15",
"mashumaro[orjson,toml] < 4",
"uv < 1",
"pip-tools < 8",
]

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

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

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

program_execution = inform_and_run_program(
commands=[
Expand Down
2 changes: 2 additions & 0 deletions pyrgo/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
"pip_audit",
"vulture",
"pdoc",
"pip",
"piptools",
]
14 changes: 12 additions & 2 deletions requirements/core.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# This file was autogenerated by uv v0.1.1 via the following command:
# uv pip compile --upgrade --no-cache -o requirements/core.txt pyproject.toml
# uv pip compile --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 @@ -56,12 +58,15 @@ packaging==23.2
# pytest
pdoc==14.4.0
pip==24.0
# via pip-api
# via
# pip-api
# pip-tools
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 @@ -83,6 +88,8 @@ result==0.16.0
rich==13.7.0
# via pip-audit
ruff==0.2.1
setuptools==69.1.0
# via pip-tools
six==1.16.0
# via html5lib
sortedcontainers==2.4.0
Expand All @@ -94,6 +101,7 @@ tomli==2.0.1
# build
# mashumaro
# mypy
# pip-tools
# pyproject-hooks
# pytest
# vulture
Expand All @@ -111,5 +119,7 @@ uv==0.1.1
vulture==2.11
webencodings==0.5.1
# via html5lib
wheel==0.42.0
# via pip-tools
zipp==3.17.0
# via importlib-metadata
14 changes: 12 additions & 2 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# This file was autogenerated by uv v0.1.1 via the following command:
# uv pip compile --upgrade --extra dev --no-cache -o requirements/dev.txt pyproject.toml
# uv pip compile --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 @@ -58,12 +60,15 @@ packaging==23.2
# pytest
pdoc==14.4.0
pip==24.0
# via pip-api
# via
# pip-api
# pip-tools
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,6 +92,8 @@ result==0.16.0
rich==13.7.0
# via pip-audit
ruff==0.2.1
setuptools==69.1.0
# via pip-tools
six==1.16.0
# via html5lib
sortedcontainers==2.4.0
Expand All @@ -99,6 +106,7 @@ tomli==2.0.1
# coverage
# mashumaro
# mypy
# pip-tools
# pyproject-hooks
# pytest
# vulture
Expand All @@ -117,5 +125,7 @@ uv==0.1.1
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 2e44b8f

Please sign in to comment.