Skip to content

Commit

Permalink
Add python 3.11 support (#3265)
Browse files Browse the repository at this point in the history
* add python 3.11 support
* use getfullargspec instead of getargspec

---------

Co-authored-by: jumpei-ukita <jumpei-ukita@m3.com>
  • Loading branch information
ukky17 and jumpei-ukita committed Dec 17, 2023
1 parent fe7ecf4 commit b5be147
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
tox-env: py39-core
- python-version: "3.10"
tox-env: py310-core
- python-version: "3.11"
tox-env: py311-core

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -88,6 +90,8 @@ jobs:
tox-env: py39-postgres
- python-version: "3.10"
tox-env: py310-postgres
- python-version: "3.11"
tox-env: py311-postgres

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -139,6 +143,8 @@ jobs:
tox-env: py39-aws
- python-version: "3.10"
tox-env: py310-aws
- python-version: "3.11"
tox-env: py311-aws

- python-version: "3.6"
tox-env: py36-unixsocket
Expand All @@ -155,6 +161,9 @@ jobs:
- python-version: "3.10"
tox-env: py310-unixsocket
OVERRIDE_SKIP_CI_TESTS: True
- python-version: "3.11"
tox-env: py311-unixsocket
OVERRIDE_SKIP_CI_TESTS: True

- python-version: "3.6"
tox-env: py36-apache
Expand All @@ -166,6 +175,8 @@ jobs:
tox-env: py39-apache
- python-version: "3.10"
tox-env: py310-apache
- python-version: "3.11"
tox-env: py311-apache

- python-version: "3.6"
tox-env: py36-azureblob
Expand All @@ -177,6 +188,8 @@ jobs:
tox-env: py39-azureblob
- python-version: "3.10"
tox-env: py310-azureblob
- python-version: "3.11"
tox-env: py311-azureblob


- python-version: 3.9
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, 3.10 tested) package that helps you build complex
Luigi is a Python (3.6, 3.7, 3.8, 3.9, 3.10, 3.11 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
2 changes: 1 addition & 1 deletion luigi/contrib/presto.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _kwargs():
```
after py2-deprecation
"""
args = inspect.getargspec(Cursor.__init__)[0][1:]
args = inspect.getfullargspec(Cursor.__init__)[0][1:]
for parameter in args:
val = getattr(self, parameter)
if val:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def get_static_files(path):
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'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,310}-{cdh,hdp,core,contrib,apache,aws,gcloud,postgres,unixsocket,azureblob,dropbox}, visualiser, docs, flake8
envlist = py{35,36,37,38,39,310,311}-{cdh,hdp,core,contrib,apache,aws,gcloud,postgres,unixsocket,azureblob,dropbox}, visualiser, docs, flake8
skipsdist = True

[pytest]
Expand Down

0 comments on commit b5be147

Please sign in to comment.