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

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

Merged

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented 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

^ 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
Copy link
Member Author

potiuk commented Oct 21, 2024

Backport of #43236

@potiuk
Copy link
Member Author

potiuk commented Oct 22, 2024

We have some kiota related tests failing "importability" - we need to cherry-pick another fix from main to fix it (on it).

@potiuk potiuk merged commit b35b410 into apache:v2-10-test Oct 22, 2024
68 of 70 checks passed
@potiuk potiuk deleted the backport-trove-classifier-ci-skipping branch October 22, 2024 11:19
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
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
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