Skip to content

Update deprecation comments in setup.py#12903

Merged
potiuk merged 1 commit into
apache:masterfrom
PolideaInternal:update-setup-py-with-preinstaled-providers
Dec 8, 2020
Merged

Update deprecation comments in setup.py#12903
potiuk merged 1 commit into
apache:masterfrom
PolideaInternal:update-setup-py-with-preinstaled-providers

Conversation

@potiuk

@potiuk potiuk commented Dec 8, 2020

Copy link
Copy Markdown
Member

Updates comments in setup.py according to the latest 2.0 agreements
about semver and clarifies use for arrays defined in setup.py.

We will refactor those after 2.0 further, but for now we keep
the current structure.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
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.

@potiuk

potiuk commented Dec 8, 2020

Copy link
Copy Markdown
Member Author

Added the 'pre-installed providers' we agreed to . Unfortunately @ashb it looks like we have to go back with install_requires to setup.py because depending on dev/prod environment (INSTALL_PROVIDERS_FROM_SOURCES) we have to dynmically add them to install_requires (unless of course we figure our something else). Seems like install_requires in setup.py overrides the one that is in setup.cfg unfortunately.

@potiuk
potiuk force-pushed the update-setup-py-with-preinstaled-providers branch 3 times, most recently from a5127d2 to 71463c4 Compare December 8, 2020 03:51
@potiuk potiuk linked an issue Dec 8, 2020 that may be closed by this pull request
2 tasks
@github-actions

github-actions Bot commented Dec 8, 2020

Copy link
Copy Markdown
Contributor

The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Backport packages$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*.

@ashb

ashb commented Dec 8, 2020

Copy link
Copy Markdown
Member

Added the 'pre-installed providers' we agreed to . Unfortunately @ashb it looks like we have to go back with install_requires to setup.py because depending on dev/prod environment (INSTALL_PROVIDERS_FROM_SOURCES) we have to dynmically add them to install_requires (unless of course we figure our something else). Seems like install_requires in setup.py overrides the one that is in setup.cfg unfortunately.

Let me have a look - see if there's anything we can do

@ashb

ashb commented Dec 8, 2020

Copy link
Copy Markdown
Member

Is the only case we have to deal with when you do pip install -e . right?

@potiuk
potiuk force-pushed the update-setup-py-with-preinstaled-providers branch from 71463c4 to 143abf7 Compare December 8, 2020 10:48
@ashb

ashb commented Dec 8, 2020

Copy link
Copy Markdown
Member

See #12916 for an approach that things in setup.cfg

@potiuk
potiuk force-pushed the update-setup-py-with-preinstaled-providers branch from 143abf7 to 08fa25e Compare December 8, 2020 11:42
@potiuk potiuk changed the title Adds predefined providers to install_requires. Update comments in setup.py Dec 8, 2020
@potiuk

potiuk commented Dec 8, 2020

Copy link
Copy Markdown
Member Author

Yep, #12916 does it much better ! I turned this one into comment-only change @ashb

Comment thread .pre-commit-config.yaml Outdated

@ashb ashb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Other than the pre-commit this LGTM.

Pre-emptively approving.

@github-actions github-actions Bot added the full tests needed We need to run full set of tests for this PR to merge label Dec 8, 2020
@github-actions

github-actions Bot commented Dec 8, 2020

Copy link
Copy Markdown
Contributor

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest master at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@ashb ashb changed the title Update comments in setup.py Update deprecation comments in setup.py Dec 8, 2020
Updates comments in setup.py according to the latest 2.0 agreements
about semver and clarifies use for arrays defined in setup.py.

We will refactor those after 2.0 further, but for now we keep
the current structure.
@potiuk
potiuk force-pushed the update-setup-py-with-preinstaled-providers branch from 08fa25e to e078e96 Compare December 8, 2020 12:18
@potiuk
potiuk merged commit 4d24c5e into apache:master Dec 8, 2020
@potiuk
potiuk deleted the update-setup-py-with-preinstaled-providers branch December 8, 2020 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools full tests needed We need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Difference of extras Airflow 2.0 vs. Airflow 1.10

2 participants