Skip to content

Move requirements file into seperate one#130

Open
MaximilianSoerenPollak wants to merge 3 commits intoeclipse-score:mainfrom
qorix-group:MSP_fix_requirements_file
Open

Move requirements file into seperate one#130
MaximilianSoerenPollak wants to merge 3 commits intoeclipse-score:mainfrom
qorix-group:MSP_fix_requirements_file

Conversation

@MaximilianSoerenPollak
Copy link
Contributor

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.

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
@MaximilianSoerenPollak
Copy link
Contributor Author

image

Tests are passing

Comment on lines +455 to +456
src = "//:requirements.in",
requirements_txt = "//:requirements.txt",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be without // to make sure we are using files from this directory and not something aliased / published to the root?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's always from module root (so the earliest MODULE.bazel file it finds).
So this can only mean the requirements.txt inside the test folder here.

visibility = ["//visibility:public"],
)

compile_pip_requirements(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also how does it work when compiled requirements are not parsed by pip and passed as deps to any of the targets in this file?

Looks like adding only compile_pip_requirements with tag=manual has no impact, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it does seem that it has 0 impact as it's nowhere used in the dependencies.

And according to that it would be quiet useless.
But that isn't for me to fix, as I don't maintain this module and don't want to delete things that might be required later.
That's why I have only moved it to an appropriate location at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants