Skip to content

Commit 0f20bda

Browse files
committed
Move symlinked file to live under _shared/ in both dists
Making it clear at import time it's shared code
1 parent db284fa commit 0f20bda

File tree

122 files changed

+166
-125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+166
-125
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.

airflow-core/src/airflow/api/common/trigger_dag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import json
2323
from typing import TYPE_CHECKING
2424

25-
from airflow import timezone
25+
from airflow._shared import timezone
2626
from airflow.exceptions import DagNotFound, DagRunAlreadyExists
2727
from airflow.models import DagBag, DagModel, DagRun
2828
from airflow.utils.session import NEW_SESSION, provide_session

airflow-core/src/airflow/api_fastapi/auth/tokens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from cryptography.hazmat.primitives import hashes
3535
from cryptography.hazmat.primitives.serialization import load_pem_private_key
3636

37-
from airflow import timezone
37+
from airflow._shared import timezone
3838

3939
if TYPE_CHECKING:
4040
from jwt.algorithms import AllowedKeys, AllowedPrivateKeys

airflow-core/src/airflow/api_fastapi/common/parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from sqlalchemy import Column, and_, case, func, not_, or_, select
3838
from sqlalchemy.inspection import inspect
3939

40-
from airflow import timezone
40+
from airflow._shared import timezone
4141
from airflow.api_fastapi.core_api.base import OrmClause
4242
from airflow.api_fastapi.core_api.security import GetUserDep
4343
from airflow.models import Base

airflow-core/src/airflow/api_fastapi/common/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
ConfigDict,
3131
)
3232

33-
from airflow import timezone
33+
from airflow._shared import timezone
3434

3535
UtcDateTime = Annotated[AwareDatetime, AfterValidator(lambda d: d.astimezone(timezone.utc))]
3636
"""UTCDateTime is a datetime with timezone information"""

airflow-core/src/airflow/api_fastapi/core_api/datamodels/dag_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
from pydantic import AliasPath, AwareDatetime, Field, NonNegativeInt, model_validator
2525

26-
from airflow import timezone
26+
from airflow._shared import timezone
2727
from airflow.api_fastapi.core_api.base import BaseModel, StrictBaseModel
2828
from airflow.api_fastapi.core_api.datamodels.dag_versions import DagVersionResponse
2929
from airflow.models import DagRun

airflow-core/src/airflow/api_fastapi/core_api/datamodels/ui/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from pydantic import computed_field
2424

25-
from airflow import timezone
25+
from airflow._shared import timezone
2626
from airflow.api_fastapi.core_api.base import BaseModel
2727
from airflow.utils.state import TaskInstanceState
2828
from airflow.utils.types import DagRunType

airflow-core/src/airflow/api_fastapi/core_api/routes/public/assets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from sqlalchemy import and_, delete, func, select
2525
from sqlalchemy.orm import joinedload, subqueryload
2626

27-
from airflow import timezone
27+
from airflow._shared import timezone
2828
from airflow.api_fastapi.common.dagbag import DagBagDep
2929
from airflow.api_fastapi.common.db.common import SessionDep, paginated_select
3030
from airflow.api_fastapi.common.parameters import (

airflow-core/src/airflow/api_fastapi/core_api/routes/public/backfills.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from sqlalchemy import select, update
2525
from sqlalchemy.orm import joinedload
2626

27-
from airflow import timezone
27+
from airflow._shared import timezone
2828
from airflow.api_fastapi.auth.managers.models.resource_details import DagAccessEntity
2929
from airflow.api_fastapi.common.db.common import (
3030
SessionDep,

0 commit comments

Comments
 (0)