Skip to content

Commit ae75391

Browse files
Bump apache-airflow from 2.10.5 to 3.0.2 (#172)
* Bump apache-airflow from 2.10.5 to 3.0.2 Bumps [apache-airflow](https://github.com/apache/airflow) from 2.10.5 to 3.0.2. - [Release notes](https://github.com/apache/airflow/releases) - [Changelog](https://github.com/apache/airflow/blob/main/docker-stack-docs/changelog.rst) - [Commits](apache/airflow@2.10.5...3.0.2) --- updated-dependencies: - dependency-name: apache-airflow dependency-version: 3.0.2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Align versions * Some operators have moved in Airflow 3 * Update Astro runtime to match Airflow version * Fix yfinance download --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niklas Schmidtmer <[email protected]>
1 parent f950971 commit ae75391

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM quay.io/astronomer/astro-runtime:13.1.0-python-3.12
1+
FROM astrocrpublic.azurecr.io/runtime:3.0-4

dags/financial_data_dag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def get_sp500_ticker_symbols():
5252

5353
@task(execution_timeout=datetime.timedelta(minutes=3))
5454
def download_yfinance_data(ds=None):
55-
"""Downloads Adjusted Close data from S&P 500 companies"""
55+
"""Downloads Close data from S&P 500 companies"""
5656

5757
tickers = get_sp500_ticker_symbols()
58-
data = yf.download(tickers, start=ds)["Adj Close"]
58+
data = yf.download(tickers, start=ds)["Close"]
5959
return data.to_json()
6060

6161

dags/nyc_taxi_dag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from airflow.models import Variable
2121
from airflow.decorators import task, dag
2222
from airflow.models.baseoperator import chain
23-
from airflow.operators.bash import BashOperator
23+
from airflow.providers.standard.operators.bash import BashOperator
2424
from airflow.providers.common.sql.operators.sql import SQLExecuteQueryOperator
2525
from airflow.providers.amazon.aws.transfers.local_to_s3 import (
2626
LocalFilesystemToS3Operator,

dags/table_export_dag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import pendulum
99
from airflow.decorators import dag, task_group
1010
from airflow.providers.common.sql.operators.sql import SQLExecuteQueryOperator
11-
from airflow.operators.empty import EmptyOperator
11+
from airflow.providers.standard.operators.empty import EmptyOperator
1212
from airflow.models.baseoperator import chain
1313
from include.table_exports import TABLES
1414

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ apache-airflow-providers-amazon>=7.3.0,<10
22
apache-airflow-providers-common-sql>=1.3.2,<2
33
apache-airflow-providers-postgres>=5.4.0,<7
44
apache-airflow-providers-slack>=9,<10
5-
apache-airflow[pandas]==2.10.5
5+
apache-airflow[pandas]==3.0.2
66
beautifulsoup4>=4,<5
77
requests>=2.28.0,<3
8-
yfinance>=0.2,<0.3
8+
yfinance>=0.2.63,<0.3
99
parquet-tools>=0.2.13,<1
1010
pendulum>=3,<4

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"Programming Language :: Python :: 3",
1111
"Programming Language :: Python :: 3.12",
1212
],
13-
install_requires=["apache-airflow==2.11.0"],
13+
install_requires=["apache-airflow==3.0.2"],
1414
extras_require={
1515
"develop": [
1616
"pylint==3.3.7",

0 commit comments

Comments
 (0)