Skip to content

Commit

Permalink
Update min python version to 3.8
Browse files Browse the repository at this point in the history
We are bumping the min python version to 3.8 given that:
- Python 3.7 has reached [EOL](https://devguide.python.org/versions/#unsupported-versions) on 2023-06-27
- Airflow has dropped support for Python 3.7 with the [2.7.0 release](https://airflow.apache.org/docs/apache-airflow/stable/release_notes.html#airflow-2-7-0-2023-08-18)

When looking at older Airflow versions, there has been support for python 3.8 since [1.10.11](https://airflow.apache.org/docs/apache-airflow/stable/release_notes.html#id204), so will keep min Airflow version as 2.0 for now.
  • Loading branch information
cmarteepants committed Jul 15, 2024
1 parent 2952bc2 commit 013bd2c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10']
python: [3.8', '3.9', '3.10']
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@master
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- Removed support for Python 3.7

## [0.19.0] - 2023-07-19
### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Welcome to *dag-factory*! *dag-factory* is a library for [Apache Airflow](https://github.com/apache/incubator-airflow) to construct DAGs declaratively via configuration files.

The minimum requirements for **dag-factory** are:
- Python 3.6.0+
- Python 3.8.0+
- Apache Airflow 2.0+

For a gentle introduction, please take a look at our [Quickstart Guide](#quickstart). For more examples, please see the [examples](/examples) folder.
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
NAME = "dag-factory"
PKG_NAME = "dagfactory"
DESCRIPTION = "Dynamically build Airflow DAGs from YAML files"
URL = "https://github.com/ajbosco/dag-factory"
EMAIL = "adam@boscarino.me"
URL = "https://github.com/astronomer/dag-factory"
EMAIL = "humans@astronomer.io"
AUTHOR = "Adam Boscarino"
REQUIRES_PYTHON = ">=3.7.0"
REQUIRES_PYTHON = ">=3.8.0"
VERSION = None

here = os.path.abspath(os.path.dirname(__file__))
Expand Down
31 changes: 0 additions & 31 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,46 +1,15 @@
[tox]
envlist =
py37-airflow{1108,2}
py38-airflow{1108,2}
py39-airflow{1108,2}
py310-airflow{1108,2}

[gh-actions]
python =
3.7: py37-airflow{1108,2}
3.8: py38-airflow{1108,2}
3.9: py39-airflow{1108,2}
3.10: py310-airflow{1108,2}

[testenv:py37-airflow1108]
deps =
pytest
pytest-cov
apache-airflow[kubernetes] >=1.10.8, <2.0.0
SQLAlchemy==1.3.23
Flask-SQLAlchemy==2.4.4
wtforms<=2.3.3
markupsafe>=1.1.1,<2.1.0
setenv =
AIRFLOW__CORE__SQL_ALCHEMY_CONN = sqlite:///airflow1108.db
commands =
airflow initdb
pytest --cov=dagfactory tests -p no:warnings --verbose --color=yes --cov-report=xml

[testenv:py37-airflow2]
deps =
pytest
pytest-cov
apache-airflow[http,cncf.kubernetes] >=2.0.0
SQLAlchemy==1.3.23
Flask-SQLAlchemy==2.4.4
markupsafe>=1.1.1,<2.1.0
setenv =
AIRFLOW__CORE__SQL_ALCHEMY_CONN = sqlite:////tmp/airflow.db
commands =
airflow db init
pytest --cov=dagfactory tests -p no:warnings --verbose --color=yes --cov-report=xml

[testenv:py38-airflow1108]
deps =
pytest
Expand Down

0 comments on commit 013bd2c

Please sign in to comment.