Skip to content

Do not fail the build if only trove-classifiers change - #43236

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:trove-classifiers-only-do-not-fail-CI-build
Oct 21, 2024
Merged

Do not fail the build if only trove-classifiers change#43236
potiuk merged 1 commit into
apache:mainfrom
potiuk:trove-classifiers-only-do-not-fail-CI-build

Conversation

@potiuk

@potiuk potiuk commented Oct 21, 2024

Copy link
Copy Markdown
Member

Trove classifiers is a non-code package so generally spaeking we have no need to update it every time it is released, but it would be great if we could update it together with other build dependencies - and not fail the build when only trove classifiers change, but update trove-classifiers nevertheless when we run

pre-commit run --hook-stage manual update-build-dependencies --all-files

This is very similar to what we already do with UV.

This PR achieves that:

  • in CI we set the env SKIP_TROVE_CLASSIFIERS_ONLY to true
  • this one will check if the only change in pyproject.toml are trove-classifiers
  • If so - it only prints warning and exits with success

^ 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.

Trove classifiers is a non-code package so generally spaeking we
have no need to update it every time it is released, but it would
be great if we could update it together with other build
dependencies - and not fail the build when only trove classifiers
change, but update trove-classifiers nevertheless when we run

pre-commit run --hook-stage manual update-build-dependencies --all-files

This is very similar to what we already do with UV.

This PR achieves that:

* in CI we set the env SKIP_TROVE_CLASSIFIERS_ONLY to true
* this one will check if the only change in pyproject.toml are
  trove-classifiers
* If so - it only prints warning and exits with success
@potiuk
potiuk requested a review from ashb as a code owner October 21, 2024 20:15
@potiuk
potiuk requested review from Lee-W and removed request for ashb October 21, 2024 20:15

@jscheffl jscheffl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good.

Would be good to back-port to v2-10-test as well

@potiuk potiuk added this to the Airflow 2.10.3 milestone Oct 21, 2024
@potiuk

potiuk commented Oct 21, 2024

Copy link
Copy Markdown
Member Author

Would be good to back-port to v2-10-test as well

Oh absolutely. On it.

@potiuk
potiuk merged commit b7a2bfe into apache:main Oct 21, 2024
@potiuk
potiuk deleted the trove-classifiers-only-do-not-fail-CI-build branch October 21, 2024 20:31
potiuk added a commit to potiuk/airflow that referenced this pull request Oct 21, 2024
Trove classifiers is a non-code package so generally spaeking we
have no need to update it every time it is released, but it would
be great if we could update it together with other build
dependencies - and not fail the build when only trove classifiers
change, but update trove-classifiers nevertheless when we run

pre-commit run --hook-stage manual update-build-dependencies --all-files

This is very similar to what we already do with UV.

This PR achieves that:

* in CI we set the env SKIP_TROVE_CLASSIFIERS_ONLY to true
* this one will check if the only change in pyproject.toml are
  trove-classifiers
* If so - it only prints warning and exits with success
potiuk added a commit that referenced this pull request Oct 22, 2024
Trove classifiers is a non-code package so generally spaeking we
have no need to update it every time it is released, but it would
be great if we could update it together with other build
dependencies - and not fail the build when only trove classifiers
change, but update trove-classifiers nevertheless when we run

pre-commit run --hook-stage manual update-build-dependencies --all-files

This is very similar to what we already do with UV.

This PR achieves that:

* in CI we set the env SKIP_TROVE_CLASSIFIERS_ONLY to true
* this one will check if the only change in pyproject.toml are
  trove-classifiers
* If so - it only prints warning and exits with success
utkarsharma2 pushed a commit that referenced this pull request Oct 23, 2024
Trove classifiers is a non-code package so generally spaeking we
have no need to update it every time it is released, but it would
be great if we could update it together with other build
dependencies - and not fail the build when only trove classifiers
change, but update trove-classifiers nevertheless when we run

pre-commit run --hook-stage manual update-build-dependencies --all-files

This is very similar to what we already do with UV.

This PR achieves that:

* in CI we set the env SKIP_TROVE_CLASSIFIERS_ONLY to true
* this one will check if the only change in pyproject.toml are
  trove-classifiers
* If so - it only prints warning and exits with success
harjeevanmaan pushed a commit to harjeevanmaan/airflow that referenced this pull request Oct 23, 2024
Trove classifiers is a non-code package so generally spaeking we
have no need to update it every time it is released, but it would
be great if we could update it together with other build
dependencies - and not fail the build when only trove classifiers
change, but update trove-classifiers nevertheless when we run

pre-commit run --hook-stage manual update-build-dependencies --all-files

This is very similar to what we already do with UV.

This PR achieves that:

* in CI we set the env SKIP_TROVE_CLASSIFIERS_ONLY to true
* this one will check if the only change in pyproject.toml are
  trove-classifiers
* If so - it only prints warning and exits with success
PaulKobow7536 pushed a commit to PaulKobow7536/airflow that referenced this pull request Oct 24, 2024
Trove classifiers is a non-code package so generally spaeking we
have no need to update it every time it is released, but it would
be great if we could update it together with other build
dependencies - and not fail the build when only trove classifiers
change, but update trove-classifiers nevertheless when we run

pre-commit run --hook-stage manual update-build-dependencies --all-files

This is very similar to what we already do with UV.

This PR achieves that:

* in CI we set the env SKIP_TROVE_CLASSIFIERS_ONLY to true
* this one will check if the only change in pyproject.toml are
  trove-classifiers
* If so - it only prints warning and exits with success
utkarsharma2 pushed a commit that referenced this pull request Oct 24, 2024
Trove classifiers is a non-code package so generally spaeking we
have no need to update it every time it is released, but it would
be great if we could update it together with other build
dependencies - and not fail the build when only trove classifiers
change, but update trove-classifiers nevertheless when we run

pre-commit run --hook-stage manual update-build-dependencies --all-files

This is very similar to what we already do with UV.

This PR achieves that:

* in CI we set the env SKIP_TROVE_CLASSIFIERS_ONLY to true
* this one will check if the only change in pyproject.toml are
  trove-classifiers
* If so - it only prints warning and exits with success
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
Trove classifiers is a non-code package so generally spaeking we
have no need to update it every time it is released, but it would
be great if we could update it together with other build
dependencies - and not fail the build when only trove classifiers
change, but update trove-classifiers nevertheless when we run

pre-commit run --hook-stage manual update-build-dependencies --all-files

This is very similar to what we already do with UV.

This PR achieves that:

* in CI we set the env SKIP_TROVE_CLASSIFIERS_ONLY to true
* this one will check if the only change in pyproject.toml are
  trove-classifiers
* If so - it only prints warning and exits with success
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants