potiuk commented on a change in pull request #11487:
URL: https://github.com/apache/airflow/pull/11487#discussion_r503854299



##########
File path: provider_packages/setup_provider_packages.py
##########
@@ -788,21 +808,39 @@ def convert_cross_package_dependencies_to_table(
     "release_version release_version_no_leading_zeros last_commit_hash content 
file_name")
 
 
-def strip_leading_zeros(release_version: str) -> str:
-    return release_version.replace(".0", ".")
+def strip_leading_zeros(release_version: str, backport_packages: bool) -> str:

Review comment:
       Not really :). Only 0's after actual ".". It's only used in calver and I 
used it to replace 2020.04.03 to 2020.4.3 because (I think) PIP did not work 
correctly with "0" in version :(. But this is only for calver. I will change it 
slightly though to be claearer. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to