Skip to content

Commit

Permalink
drop Python 3.7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
hirosassa committed Feb 2, 2025
1 parent 7be8a6d commit d2e803b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
strategy:
matrix:
include:
- tox-env: py37-core
- tox-env: py38-core
- tox-env: py39-core
- tox-env: py310-core
Expand All @@ -29,7 +28,7 @@ jobs:
cache-dependency-glob: "pyproject.toml"
- name: Install dependencies
run: |
uv tool install --python-preference only-managed --python 3.12 tox --with tox-uv # we need latest uv, tox, and tox-uv
uv tool install --python-preference only-managed --python 3.12 tox --with tox-uv
- name: Setup MySQL DB
run: |
sudo /etc/init.d/mysql start
Expand Down Expand Up @@ -69,7 +68,6 @@ jobs:
strategy:
matrix:
include:
- tox-env: py37-postgres
- tox-env: py38-postgres
- tox-env: py39-postgres
- tox-env: py310-postgres
Expand All @@ -85,7 +83,7 @@ jobs:
cache-dependency-glob: "pyproject.toml"
- name: Install dependencies
run: |
uv tool install --python-preference only-managed --python 3.12 tox --with tox-uv # we need latest uv, tox, and tox-uv
uv tool install --python-preference only-managed --python 3.12 tox --with tox-uv
- name: Create PSQL database
run: |
PGPASSWORD=postgres psql -h localhost -p 5432 -c 'create database spotify;' -U postgres
Expand All @@ -111,15 +109,12 @@ jobs:
strategy:
matrix:
include:
- tox-env: py37-aws
- tox-env: py38-aws
- tox-env: py39-aws
- tox-env: py310-aws
- tox-env: py311-aws
- tox-env: py312-aws

- tox-env: py37-unixsocket
OVERRIDE_SKIP_CI_TESTS: True
- tox-env: py38-unixsocket
OVERRIDE_SKIP_CI_TESTS: True
- tox-env: py39-unixsocket
Expand All @@ -131,14 +126,12 @@ jobs:
- tox-env: py312-unixsocket
OVERRIDE_SKIP_CI_TESTS: True

- tox-env: py37-apache
- tox-env: py38-apache
- tox-env: py39-apache
- tox-env: py310-apache
- tox-env: py311-apache
- tox-env: py312-apache

- tox-env: py37-azureblob
- tox-env: py38-azureblob
- tox-env: py39-azureblob
- tox-env: py310-azureblob
Expand All @@ -154,7 +147,7 @@ jobs:
cache-dependency-glob: "pyproject.toml"
- name: Install dependencies
run: |
uv tool install --python-preference only-managed --python 3.12 tox --with tox-uv # we need latest uv, tox, and tox-uv
uv tool install --python-preference only-managed --python 3.12 tox --with tox-uv
- name: Build
env:
TOXENV: ${{ matrix.tox-env }}
Expand Down Expand Up @@ -183,7 +176,7 @@ jobs:
cache-dependency-glob: "pyproject.toml"
- name: Install dependencies
run: |
uv tool install --python-preference only-managed --python 3.12 tox --with tox-uv # we need latest uv, tox, and tox-uv
uv tool install --python-preference only-managed --python 3.12 tox --with tox-uv
- name: Build
env:
TOXENV: ${{ matrix.tox-env }}
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ You will need a ``tox --version`` of at least 4.22.
# These commands are pretty fast and will tell if you've
# broken something major:
tox run -e flake8
tox run -e py37-core
tox run -e py38-core
# You can also test particular files for even faster iterations
tox run -e py37-core -- test/rpc_test.py
tox run -e py38-core -- test/rpc_test.py
# The visualiser tests require phantomjs to be installed on your path
tox run -e visualiser
Expand All @@ -37,7 +37,7 @@ You will need a ``tox --version`` of at least 4.22.
tox run -e py38-cdh
tox run -e py39-hdp
Where ``flake8`` is the lint checking, ``py37`` is obviously Python 3.7.
Where ``flake8`` is the lint checking, ``py38`` is obviously Python 3.8.
``core`` are tests that do not require external components and ``cdh`` and
``hdp`` are two different hadoop distributions. For most local development it's
usually enough to run the lint checking and a python version for ``core``
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
:target: https://luigi.readthedocs.io/en/stable/?badge=stable
:alt: Documentation Status

Luigi is a Python (3.7, 3.8, 3.9, 3.10, 3.11, 3.12 tested) package that helps you build complex
Luigi is a Python (3.8, 3.9, 3.10, 3.11, 3.12 tested) package that helps you build complex
pipelines of batch jobs. It handles dependency resolution, workflow management,
visualization, handling failures, command line integration, and much more.

Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ authors = [
{name = "The Luigi Authors"}
]
license = {file = "LICENSE"}
requires-python = ">=3.7.0, <3.13"
requires-python = ">=3.8.0, <3.13"
dependencies = [
"python-dateutil>=2.7.5,<3",
"tenacity>=8,<9",
Expand All @@ -24,7 +24,6 @@ classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
requires =
tox>=4.22 # `dependency_groups` needed
tox-uv>=1.19
envlist = py{37,38,39,310,311,312}-{cdh,hdp,core,contrib,apache,aws,gcloud,postgres,unixsocket,azureblob,dropbox}, visualiser, docs, flake8
envlist = py{38,39,310,311,312}-{cdh,hdp,core,contrib,apache,aws,gcloud,postgres,unixsocket,azureblob,dropbox}, visualiser, docs, flake8
skipsdist = True

[pytest]
Expand Down

0 comments on commit d2e803b

Please sign in to comment.