fix(rules): make the srcs trully optional by aignas · Pull Request #2768 · bazel-contrib/rules_python

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@aignas

Copy link

Collaborator

@aignas aignas commented

Apr 10, 2025

edited

Loading

With this PR we mark the srcs attribute as optional as we can
leverage the main_module to just run things from the deps.

This also removes a long-standing TODO note.

Fixes #2765

With this PR we mark the srcs attribute as optional as we can
leverage the `main_module` to just run things from the deps.

Fixes bazel-contrib#2765

@aignas aignas requested a review from rickeylev as a code owner

April 10, 2025 14:41
Copy link

Collaborator

@rickeylev rickeylev left a comment

Choose a reason for hiding this comment

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

I renamed the tests, otherwise LGTM

aignas reacted with heart emoji

@aignas aignas added this pull request to the merge queue

Apr 13, 2025

Merged via the queue into bazel-contrib:main with commit aa0d16c

Apr 13, 2025

3 checks passed

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

Reviewers

@rickeylev rickeylev rickeylev approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Support src-less invocation of py_binary

2 participants

@aignas @rickeylev