Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more precise description on avoiding generic package/module names #36927

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Jan 20, 2024

It's more and more happening recently that users start to put generic package and module names directly at PYTHONPATH which overrides the stdlib or airflow imports. Adding a more detailed description should help in just directing people to that page where they can learn how Python module loading works.

The chapter name is changed to "Best practices for your code namig", because the problem is whit naming, not loading.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

It's more and more happening recently that users start to put generic
package and module names directly at ``PYTHONPATH`` which overrides the
stdlib or airflow imports. Adding a more detailed description should
help in just directing people to that page where they can learn how
Python module loading works.

The chapter name is changed to "Best practices for your code namig",
because the problem is whit naming, not loading.
@potiuk potiuk force-pushed the add-more-precise-descriptin-on-generic-python-packages-modules branch from 5a176f1 to 61ab4bd Compare January 20, 2024 08:05
Copy link
Contributor

@eladkal eladkal left a comment

Choose a reason for hiding this comment

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

Nice!

@eladkal eladkal added this to the Airflow 2.8.2 milestone Jan 20, 2024
@eladkal eladkal added the type:doc-only Changelog: Doc Only label Jan 20, 2024
@potiuk potiuk merged commit 06dc1dd into apache:main Jan 20, 2024
52 checks passed
@potiuk potiuk deleted the add-more-precise-descriptin-on-generic-python-packages-modules branch January 20, 2024 09:25
flacode pushed a commit to flacode/airflow that referenced this pull request Jan 22, 2024
…apache#36927)

It's more and more happening recently that users start to put generic
package and module names directly at ``PYTHONPATH`` which overrides the
stdlib or airflow imports. Adding a more detailed description should
help in just directing people to that page where they can learn how
Python module loading works.

The chapter name is changed to "Best practices for your code namig",
because the problem is whit naming, not loading.
jedcunningham pushed a commit that referenced this pull request Feb 9, 2024
…#36927)

It's more and more happening recently that users start to put generic
package and module names directly at ``PYTHONPATH`` which overrides the
stdlib or airflow imports. Adding a more detailed description should
help in just directing people to that page where they can learn how
Python module loading works.

The chapter name is changed to "Best practices for your code namig",
because the problem is whit naming, not loading.

(cherry picked from commit 06dc1dd)
potiuk added a commit that referenced this pull request Feb 13, 2024
…#36927)

It's more and more happening recently that users start to put generic
package and module names directly at ``PYTHONPATH`` which overrides the
stdlib or airflow imports. Adding a more detailed description should
help in just directing people to that page where they can learn how
Python module loading works.

The chapter name is changed to "Best practices for your code namig",
because the problem is whit naming, not loading.

(cherry picked from commit 06dc1dd)
ephraimbuddy pushed a commit that referenced this pull request Feb 22, 2024
…#36927)

It's more and more happening recently that users start to put generic
package and module names directly at ``PYTHONPATH`` which overrides the
stdlib or airflow imports. Adding a more detailed description should
help in just directing people to that page where they can learn how
Python module loading works.

The chapter name is changed to "Best practices for your code namig",
because the problem is whit naming, not loading.

(cherry picked from commit 06dc1dd)
abhishekbhakat pushed a commit to abhishekbhakat/my_airflow that referenced this pull request Mar 5, 2024
…apache#36927)

It's more and more happening recently that users start to put generic
package and module names directly at ``PYTHONPATH`` which overrides the
stdlib or airflow imports. Adding a more detailed description should
help in just directing people to that page where they can learn how
Python module loading works.

The chapter name is changed to "Best practices for your code namig",
because the problem is whit naming, not loading.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants