Taragolis commented on code in PR #38489:
URL: https://github.com/apache/airflow/pull/38489#discussion_r1549360725
##########
docs/exts/docs_build/docs_builder.py:
##########
@@ -88,21 +87,6 @@ def log_build_warning_filename(self) -> str:
"""Warnings from build job."""
return os.path.join(self._build_dir,
f"warning-build-{self.package_name}.log")
- @property
- def _current_version(self):
- if not self.is_versioned:
- raise Exception("This documentation package is not versioned")
- if self.package_name == "apache-airflow":
- from airflow.version import version as airflow_version
-
- return airflow_version
- if self.package_name.startswith("apache-airflow-providers-"):
- provider = next(p for p in ALL_PROVIDER_YAMLS if p["package-name"]
== self.package_name)
- return provider["versions"][0]
- if self.package_name == "helm-chart":
- return chart_version()
- return Exception(f"Unsupported package: {self.package_name}")
-
Review Comment:
This one added in https://github.com/apache/airflow/pull/12892, and not used
anymore and seems like moved into the
`dev/breeze/src/airflow_breeze/utils/docs_publisher.py`
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]