Skip to content

Commit 7c8dd8f

Browse files
Move requirements file into seperate one (#130)
* Move requirements file into seperate one Having all reqs inside python_basics is breaking other modules. These requirements are only needed for testing, and should therefore be moved somewhere more appropriate where they do not break consumers of python_basics * Formatting * Add new files to reuse
1 parent d5d1915 commit 7c8dd8f

6 files changed

Lines changed: 533 additions & 464 deletions

File tree

REUSE.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ path = ["**/requirements_lock.txt"]
3333
SPDX-FileCopyrightText = "Copyright (c) 2026 Contributors to the Eclipse Foundation"
3434
SPDX-License-Identifier = "Apache-2.0"
3535

36+
3637
[[annotations]]
3738
path = ["cr_checker/resources/config.json",
3839
"**/.bazelversion",
3940
"coverage/tests/fixtures/symbol_report.json",
4041
"python_basics/.bazelversion",
4142
"python_basics/integration_tests/venv-with-extra-requirements/requirements.in",
4243
"python_basics/requirements.in",
44+
"python_basics/requirements.txt",
45+
"bazel/rules/rules_score/test/requirements.in",
46+
"bazel/rules/rules_score/test/requirements.txt"
4347
]
4448
SPDX-FileCopyrightText = "Copyright (c) 2026 Contributors to the Eclipse Foundation"
4549
SPDX-License-Identifier = "Apache-2.0"

bazel/rules/rules_score/test/BUILD

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# *******************************************************************************
1313
load("@aspect_rules_py//py:defs.bzl", "py_binary")
1414
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
15+
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
1516
load(
1617
"@score_tooling//bazel/rules/rules_score:rules_score.bzl",
1718
"architectural_design",
@@ -448,3 +449,12 @@ toolchain(
448449
toolchain_type = "@score_tooling//bazel/rules/rules_score:toolchain_type",
449450
visibility = ["//visibility:public"],
450451
)
452+
453+
compile_pip_requirements(
454+
name = "requirements",
455+
src = "//:requirements.in",
456+
requirements_txt = "//:requirements.txt",
457+
tags = [
458+
"manual",
459+
],
460+
)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
pytest
2+
basedpyright
3+
sphinx
4+
sphinx-needs
5+
sphinx-design
6+
myst-parser
7+
sphinxcontrib-plantuml
8+
sphinx-rtd-theme

0 commit comments

Comments
 (0)