Skip to content

Commit 5a176f4

Browse files
authoredMar 15, 2022
🐍 💪 Add Python 3.10 support (pykeen#831)
* Add py310 Trigger CI * Update builders.py Trigger CI
1 parent b108840 commit 5a176f4

File tree

7 files changed

+16
-14
lines changed

7 files changed

+16
-14
lines changed
 

‎.github/workflows/tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: [ 3.7, 3.9 ]
16+
python-version: [ "3.7", "3.10" ]
1717
steps:
1818
- uses: actions/checkout@v2
1919
- name: Set up Python ${{ matrix.python-version }}
@@ -43,7 +43,7 @@ jobs:
4343
runs-on: ubuntu-latest
4444
strategy:
4545
matrix:
46-
python-version: [ 3.7, 3.9 ]
46+
python-version: [ "3.7", "3.10" ]
4747
steps:
4848
- uses: actions/checkout@v2
4949
- name: Set up Python ${{ matrix.python-version }}
@@ -72,7 +72,7 @@ jobs:
7272
runs-on: ubuntu-latest
7373
strategy:
7474
matrix:
75-
python-version: [ 3.7, 3.9 ]
75+
python-version: [ "3.7", "3.10" ]
7676
steps:
7777
- uses: actions/checkout@v2
7878
- name: Set up Python ${{ matrix.python-version }}
@@ -93,7 +93,7 @@ jobs:
9393
runs-on: windows-latest
9494
strategy:
9595
matrix:
96-
python-version: [ 3.7, 3.9 ]
96+
python-version: [ "3.7", "3.10" ]
9797
steps:
9898
- uses: actions/checkout@v2
9999
- uses: conda-incubator/setup-miniconda@v2

‎.github/workflows/tests_master.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [ 3.7, 3.9 ]
15+
python-version: [ "3.7", "3.10" ]
1616
steps:
1717
- uses: actions/checkout@v2
1818
- name: Set up Python ${{ matrix.python-version }}
@@ -42,7 +42,7 @@ jobs:
4242
runs-on: ubuntu-latest
4343
strategy:
4444
matrix:
45-
python-version: [ 3.7, 3.9 ]
45+
python-version: [ "3.7", "3.10" ]
4646
steps:
4747
- uses: actions/checkout@v2
4848
- name: Set up Python ${{ matrix.python-version }}
@@ -71,7 +71,7 @@ jobs:
7171
runs-on: ubuntu-latest
7272
strategy:
7373
matrix:
74-
python-version: [ 3.7, 3.9 ]
74+
python-version: [ "3.7", "3.10" ]
7575
steps:
7676
- uses: actions/checkout@v2
7777
- name: Set up Python ${{ matrix.python-version }}
@@ -92,7 +92,7 @@ jobs:
9292
runs-on: windows-latest
9393
strategy:
9494
matrix:
95-
python-version: [ 3.7, 3.9 ]
95+
python-version: [ "3.7", "3.10" ]
9696
steps:
9797
- uses: actions/checkout@v2
9898
- uses: conda-incubator/setup-miniconda@v2

‎.github/workflows/tests_on_pr.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
strategy:
2727
matrix:
28-
python-version: [ 3.7, 3.9 ]
28+
python-version: [ "3.7", "3.10" ]
2929
steps:
3030
- uses: actions/checkout@v2
3131
- name: Set up Python ${{ matrix.python-version }}
@@ -55,7 +55,7 @@ jobs:
5555
runs-on: ubuntu-latest
5656
strategy:
5757
matrix:
58-
python-version: [ 3.7, 3.9 ]
58+
python-version: [ "3.7", "3.10" ]
5959
steps:
6060
- uses: actions/checkout@v2
6161
- name: Set up Python ${{ matrix.python-version }}
@@ -84,7 +84,7 @@ jobs:
8484
runs-on: ubuntu-latest
8585
strategy:
8686
matrix:
87-
python-version: [ 3.7, 3.9 ]
87+
python-version: [ "3.7", "3.10" ]
8888
steps:
8989
- uses: actions/checkout@v2
9090
- name: Set up Python ${{ matrix.python-version }}
@@ -105,7 +105,7 @@ jobs:
105105
runs-on: windows-latest
106106
strategy:
107107
matrix:
108-
python-version: [ 3.7, 3.9 ]
108+
python-version: [ "3.7", "3.10" ]
109109
steps:
110110
- uses: actions/checkout@v2
111111
- uses: conda-incubator/setup-miniconda@v2

‎.readthedocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ formats:
1212
- htmlzip
1313

1414
python:
15-
version: 3.7
15+
version: "3.7"
1616
install:
1717
- method: pip
1818
path: .

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta:__legacy__"
55

66
[tool.black]
77
line-length = 120
8-
target-version = ['py37', 'py38', 'py39']
8+
target-version = ["py37", "py38", "py39", "py310"]
99

1010
[tool.isort]
1111
profile = "black"

‎setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ classifiers =
3838
Programming Language :: Python :: 3.7
3939
Programming Language :: Python :: 3.8
4040
Programming Language :: Python :: 3.9
41+
Programming Language :: Python :: 3.10
4142
Programming Language :: Python :: 3 :: Only
4243
Topic :: Scientific/Engineering :: Artificial Intelligence
4344
Topic :: Scientific/Engineering :: Chemistry

‎src/pykeen/models/cli/builders.py

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"activation_kwargs",
3939
"edge_weighting",
4040
"relation_representations",
41+
"coefficients", # from AutoSF
4142
}
4243
_SKIP_ANNOTATIONS = {
4344
Optional[nn.Embedding],

0 commit comments

Comments
 (0)
Please sign in to comment.