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



##########
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:
       ```
   def strip_leading_zeros_in_calver(calver_version: str) -> str:
       """
       Strips leading zeros from calver version number.
   
       This converts 1974.04.03 to 1974.4.3 as the format with leading month 
and day zeros is not accepted
       by PIP versioning.
   
       :param calver_version: version number in calver format (potentially with 
leading 0s in date and month)
       :return: string with leading 0s after dot replaced.
       """
       return calver_version.replace(".0", ".")
   ```




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