-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Remove airflow.bin package #7808
Conversation
@@ -654,7 +654,11 @@ def do_setup(pinned=False): | |||
}, | |||
include_package_data=True, | |||
zip_safe=False, | |||
scripts=['airflow/bin/airflow'], | |||
entry_points={ | |||
"console_scripts": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Docker is sad. I'm working on a fix. |
from airflow.configuration import conf | ||
from airflow.exceptions import AirflowException | ||
from airflow.executors.executor_loader import ExecutorLoader | ||
from airflow.utils.helpers import partition | ||
from airflow.utils.module_loading import import_string | ||
from airflow.utils.timezone import parse as parsedate | ||
|
||
api.load_auth() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Codecov Report
@@ Coverage Diff @@
## master #7808 +/- ##
==========================================
- Coverage 86.85% 86.60% -0.25%
==========================================
Files 925 925
Lines 44862 44873 +11
==========================================
- Hits 38964 38862 -102
- Misses 5898 6011 +113
Continue to review full report at Codecov.
|
I did the following changes:
We can now run airflow with the
python -m airflow
command. This may be helpful in some environments, e.g. Windows. Using entry_points can also improve Windos compatibility - https://setuptools.readthedocs.io/en/latest/setuptools.html#automatic-script-creationIssue link: WILL BE INSERTED BY boring-cyborg
Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, 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 UPDATING.md.
Read the Pull Request Guidelines for more information.