Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions dev/provider_packages/prepare_provider_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,7 @@
# those imports need to come after the above sys.path.insert to make sure that Airflow
# sources are importable without having to add the airflow sources to the PYTHONPATH before
# running the script
from setup import ( # type: ignore[attr-defined] # isort:skip # noqa
ALL_PROVIDERS,
NOT_RELEASED_YET_PROVIDERS,
PREINSTALLED_PROVIDERS,
)
from setup import PREINSTALLED_PROVIDERS, ALL_PROVIDERS # type: ignore[attr-defined] # isort:skip # noqa

# Note - we do not test protocols as they are not really part of the official API of
# Apache Airflow
Expand Down Expand Up @@ -1679,10 +1675,10 @@ def verify_changelog_exists(package: str) -> str:
def list_providers_packages():
"""List all provider packages."""
providers = get_all_providers()
# exclude providers we do not release yet
for provider in NOT_RELEASED_YET_PROVIDERS:
if provider in providers:
providers.remove(provider)
# For now we should exclude open-lineage from being consider for releasing until it is ready to
# be released
if "openlineage" in providers:
providers.remove("openlineage")
for provider in providers:
console.print(provider)

Expand Down
4 changes: 3 additions & 1 deletion generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@
"apache-airflow>=2.4.0",
"sqlparse>=0.4.2"
],
"cross-providers-deps": [],
"cross-providers-deps": [
"openlineage"
],
"excluded-python-versions": []
},
"databricks": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
ALL_PROVIDERS: dict[str, dict[str, Any]] = defaultdict(lambda: defaultdict())
ALL_PROVIDER_FILES: list[Path] = []


# Allow AST to parse the files.
sys.path.append(str(AIRFLOW_SOURCES_ROOT))

Expand Down Expand Up @@ -169,15 +168,9 @@ def check_if_different_provider_used(file_path: Path) -> None:
imports = get_imports_from_file(file_path)
for import_name in imports:
imported_provider = get_provider_id_from_import(import_name, file_path)
from setup import NOT_RELEASED_YET_PROVIDERS

if imported_provider is not None and imported_provider not in ALL_PROVIDERS:
warnings.append(f"The provider {imported_provider} from {file_path} cannot be found.")
elif (
imported_provider
and file_provider != imported_provider
and imported_provider not in NOT_RELEASED_YET_PROVIDERS
):
elif imported_provider and file_provider != imported_provider:
ALL_DEPENDENCIES[file_provider]["cross-providers-deps"].append(imported_provider)


Expand Down
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@
DEPS = "deps"
CURRENT_PYTHON_VERSION = f"{sys.version_info.major}.{sys.version_info.minor}"

# we do not yet release some providers so we should skip them when releasing and when referring to
# in cross-provider-dependencies.
NOT_RELEASED_YET_PROVIDERS = ["openlineage"]


#
# NOTE! IN Airflow 2.4.+ dependencies for providers are maintained in `provider.yaml` files for each
Expand Down