Skip to content

Commit

Permalink
chore: remove requirements.txt (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle authored Jun 11, 2024
1 parent 0a98607 commit e1358f5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion {{ .ProjectSnake }}/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ js_library(
{{ if .Computed.python }}
compile_pip_requirements(
name = "requirements",
requirements_in = "requirements.txt",
requirements_in = "pyproject.toml",
requirements_txt = "requirements_lock.txt",
)
{{- end }}
11 changes: 11 additions & 0 deletions {{ .ProjectSnake }}/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
[project]
name = "{{ .ProjectSnake }}"
classifiers = ["Private :: Do Not Upload"]
version = "0"
# An example unpinned dependency.
# Note that pip-compile will ensure the resolved versions of
# direct and indirect dependencies are pinned.
# Therefore we only need to constrain versions when some ranges
# of dependency versions are not compatible.
dependencies = ["protobuf"]

# See https://docs.astral.sh/ruff/configuration/
[tool.ruff]
6 changes: 0 additions & 6 deletions {{ .ProjectSnake }}/requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion {{ .ProjectSnake }}/requirements_lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ protobuf==5.26.0 \
--hash=sha256:e184175276edc222e2d5e314a72521e10049938a9a4961fe4bea9b25d073c03f \
--hash=sha256:efd4f5894c50bd76cbcfdd668cd941021333861ed0f441c78a83d8254a01cc9f \
--hash=sha256:f9ecc8eb6f18037e0cbf43256db0325d4723f429bca7ef5cd358b7c29d65f628
# via -r requirements.txt
# via {{ .Project }} (pyproject.toml)

0 comments on commit e1358f5

Please sign in to comment.