Skip to content

Commit

Permalink
support python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
hirosassa committed Mar 15, 2022
1 parent 412272f commit 4103d10
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 32 deletions.
73 changes: 43 additions & 30 deletions .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ jobs:
strategy:
matrix:
include:
- python-version: 3.6
- python-version: "3.6"
tox-env: py36-core
- python-version: 3.7
- python-version: "3.7"
tox-env: py37-core
- python-version: 3.8
- python-version: "3.8"
tox-env: py38-core
- python-version: 3.9
- python-version: "3.9"
tox-env: py39-core
- python-version: "3.10"
tox-env: py310-core

steps:
- uses: actions/checkout@v2
Expand All @@ -37,7 +39,7 @@ jobs:
key: ${{ format('{0}-pip-{1}', runner.os, hashFiles('dev-requirements.txt', format('requirements{0}.txt', matrix.spark-version-suffix))) }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip 'tox<3.0'
python -m pip install --upgrade pip 'tox<4.0'
- name: Setup MySQL DB
run: |
sudo /etc/init.d/mysql start
Expand All @@ -49,7 +51,7 @@ jobs:
TOXENV: ${{ matrix.tox-env }}
run: tox
- name: Codecov
env:
env:
COVERAGE_PROCESS_START: .coveragerc
run: |
pip install codecov
Expand All @@ -76,14 +78,16 @@ jobs:
strategy:
matrix:
include:
- python-version: 3.6
- python-version: "3.6"
tox-env: py36-postgres
- python-version: 3.7
- python-version: "3.7"
tox-env: py37-postgres
- python-version: 3.8
- python-version: "3.8"
tox-env: py38-postgres
- python-version: 3.9
- python-version: "3.9"
tox-env: py39-postgres
- python-version: "3.10"
tox-env: py310-postgres

steps:
- uses: actions/checkout@v2
Expand All @@ -100,7 +104,7 @@ jobs:
key: ${{ format('{0}-pip-{1}', runner.os, hashFiles('dev-requirements.txt', format('requirements{0}.txt', matrix.spark-version-suffix))) }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip 'tox<3.0'
python -m pip install --upgrade pip 'tox<4.0'
- name: Create PSQL database
run: |
PGPASSWORD=postgres psql -h localhost -p 5432 -c 'create database spotify;' -U postgres
Expand All @@ -109,7 +113,7 @@ jobs:
TOXENV: ${{ matrix.tox-env }}
run: tox
- name: Codecov
env:
env:
COVERAGE_PROCESS_START: .coveragerc
run: |
pip install codecov
Expand All @@ -125,45 +129,54 @@ jobs:
strategy:
matrix:
include:
- python-version: 3.6
- python-version: "3.6"
tox-env: py36-aws
- python-version: 3.7
- python-version: "3.7"
tox-env: py37-aws
- python-version: 3.8
- python-version: "3.8"
tox-env: py38-aws
- python-version: 3.9
- python-version: "3.9"
tox-env: py39-aws
- python-version: "3.10"
tox-env: py310-aws

- python-version: 3.6
- python-version: "3.6"
tox-env: py36-unixsocket
OVERRIDE_SKIP_CI_TESTS: True
- python-version: 3.7
- python-version: "3.7"
tox-env: py37-unixsocket
OVERRIDE_SKIP_CI_TESTS: True
- python-version: 3.8
- python-version: "3.8"
tox-env: py38-unixsocket
OVERRIDE_SKIP_CI_TESTS: True
- python-version: 3.9
- python-version: "3.9"
tox-env: py39-unixsocket
OVERRIDE_SKIP_CI_TESTS: True
- python-version: "3.10"
tox-env: py310-unixsocket
OVERRIDE_SKIP_CI_TESTS: True

- python-version: 3.6
- python-version: "3.6"
tox-env: py36-apache
- python-version: 3.7
- python-version: "3.7"
tox-env: py37-apache
- python-version: 3.8
- python-version: "3.8"
tox-env: py38-apache
- python-version: 3.9
- python-version: "3.9"
tox-env: py39-apache

- python-version: 3.6
- python-version: "3.10"
tox-env: py310-apache

- python-version: "3.6"
tox-env: py36-azureblob
- python-version: 3.7
- python-version: "3.7"
tox-env: py37-azureblob
- python-version: 3.8
- python-version: "3.8"
tox-env: py38-azureblob
- python-version: 3.9
- python-version: "3.9"
tox-env: py39-azureblob
- python-version: "3.10"
tox-env: py310-azureblob


- python-version: 3.9
Expand Down Expand Up @@ -194,7 +207,7 @@ jobs:
run: tox
- name: Codecov
if: ${{ matrix.tox-env != 'flake8' && matrix.tox-env != 'docs' }}
env:
env:
COVERAGE_PROCESS_START: .coveragerc
run: |
pip install codecov
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
.. image:: https://img.shields.io/pypi/l/luigi.svg?style=flat
:target: https://pypi.python.org/pypi/luigi

Luigi is a Python (3.6, 3.7, 3.8, 3.9 tested) package that helps you build complex
Luigi is a Python (3.6, 3.7, 3.8, 3.9, 3.10 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
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def get_static_files(path):
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: System :: Monitoring',
],
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{35,36,37,38,39}-{cdh,hdp,core,contrib,apache,aws,gcloud,postgres,unixsocket,azureblob,dropbox}, visualiser, docs, flake8
envlist = py{35,36,37,38,39,310}-{cdh,hdp,core,contrib,apache,aws,gcloud,postgres,unixsocket,azureblob,dropbox}, visualiser, docs, flake8
skipsdist = True

[pytest]
Expand Down

0 comments on commit 4103d10

Please sign in to comment.