Skip to content

Commit 7638495

Browse files
authored
Merge pull request #298 from akx/py310
Python 3.10 support
2 parents f313715 + 66f367d commit 7638495

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

.github/workflows/python-package.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,28 @@
33

44
name: Python package
55

6-
on: [push, pull_request]
6+
on:
7+
push:
8+
branches:
9+
- master
10+
pull_request:
11+
branches:
12+
- master
713

814
jobs:
915
test:
1016
runs-on: ubuntu-latest
1117
strategy:
1218
fail-fast: false
1319
matrix:
14-
python-version: [2.7,3.5,3.6,3.7, 3.8,3.9]
15-
20+
python-version:
21+
- "2.7"
22+
- "3.5"
23+
- "3.6"
24+
- "3.7"
25+
- "3.8"
26+
- "3.9"
27+
- "3.10"
1628
steps:
1729
- uses: actions/checkout@v2
1830
- name: Set up Python ${{ matrix.python-version }}
@@ -27,6 +39,7 @@ jobs:
2739
${{ runner.os }}-pip-
2840
- name: Install dependencies
2941
run: |
42+
pip install -U setuptools
3043
sudo apt-get update -qq
3144
sudo apt-get install -qq swig python-dev libxml2-dev libxmlsec1-dev
3245
make install-req
@@ -39,7 +52,7 @@ jobs:
3952
- uses: actions/checkout@v2
4053
- uses: actions/setup-python@v2
4154
with:
42-
python-version: 3.9
55+
python-version: "3.10"
4356
- uses: actions/cache@v2
4457
with:
4558
path: ~/.cache/pip
@@ -48,6 +61,7 @@ jobs:
4861
${{ runner.os }}-pip-
4962
- name: Install dependencies
5063
run: |
64+
pip install -U setuptools
5165
sudo apt-get update -qq
5266
sudo apt-get install -qq swig python-dev libxml2-dev libxmlsec1-dev
5367
make install-req

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ TESTS=tests/src/OneLogin/saml2_tests
1111
SOURCES=$(MAIN_SOURCE) $(DEMOS) $(TESTS)
1212

1313
install-req:
14-
$(PIP) install --upgrade 'setuptools<45.0.0'
1514
$(PIP) install .
1615

1716
install-test:

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
'Programming Language :: Python :: 3.7',
2424
'Programming Language :: Python :: 3.8',
2525
'Programming Language :: Python :: 3.9',
26+
'Programming Language :: Python :: 3.10',
2627
],
2728
author='OneLogin',
2829
author_email='support@onelogin.com',

0 commit comments

Comments
 (0)