Skip to content

Commit 7a7a5d9

Browse files
Add Python 3.10 support
1 parent cbc6bc0 commit 7a7a5d9

File tree

4 files changed

+22
-9
lines changed

4 files changed

+22
-9
lines changed

.manylinux-install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ for PYBIN in /opt/python/*/bin; do
1111
[[ "${PYBIN}" == *"cp37"* ]] || \
1212
[[ "${PYBIN}" == *"cp38"* ]] || \
1313
[[ "${PYBIN}" == *"cp39"* ]];
14+
[[ "${PYBIN}" == *"cp310"* ]];
1415
then
1516
"${PYBIN}/pip" install tox
1617
"${PYBIN}/pip" install -U cython
@@ -34,6 +35,7 @@ for PYBIN in /opt/python/*/bin; do
3435
[[ "${PYBIN}" == *"cp37"* ]] || \
3536
[[ "${PYBIN}" == *"cp38"* ]] || \
3637
[[ "${PYBIN}" == *"cp39"* ]];
38+
[[ "${PYBIN}" == *"cp310* ]];
3739
then
3840
"${PYBIN}/pip" uninstall -y python-crfsuite
3941
"${PYBIN}/pip" install python-crfsuite --no-index -f /io/wheelhouse

.travis.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
language: python
22
matrix:
33
include:
4+
- os: linux
5+
python: '3.10'
6+
env: TOXENV=py10
47
- os: linux
58
python: 3.9
69
env: TOXENV=py39
@@ -19,6 +22,11 @@ matrix:
1922
- os: linux
2023
python: 2.7
2124
env: TOXENV=py27
25+
- os: osx
26+
language: generic
27+
env:
28+
- PYTHON='3.10.0'
29+
- TOXENV=py310
2230
- os: osx
2331
language: generic
2432
env:
@@ -31,17 +39,17 @@ matrix:
3139
- TOXENV=py38
3240
- os: osx
3341
language: generic
34-
env:
42+
env:
3543
- PYTHON='3.7.7'
36-
- TOXENV=py37
44+
- TOXENV=py37
3745
- os: osx
3846
language: generic
39-
env:
47+
env:
4048
- PYTHON='3.6.2'
4149
- TOXENV=py36
4250
- os: osx
4351
language: generic
44-
env:
52+
env:
4553
- PYTHON='2.7.13'
4654
- TOXENV=py27
4755
- sudo: required
@@ -102,7 +110,7 @@ script:
102110
- tox
103111

104112
after_success:
105-
- pip install wheel twine
113+
- pip install wheel twine
106114
- if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then
107115
python -W ignore setup.py bdist_wheel;
108116
twine upload dist/*;

appveyor.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ environment:
88
- python : 27-x64
99
- python : 35
1010
- python : 35-x64
11-
- python : 36
11+
- python : 36
1212
- python : 36-x64
13-
- python : 37
14-
- python : 37-x64
13+
- python : 37
14+
- python : 37-x64
1515
- python : 38
1616
- python : 38-x64
1717
- python : 39
1818
- python : 39-x64
19+
- python : 310
20+
- python : 310-x64
1921

2022
install:
2123
- "SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH%"

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def c_compile(obj, src, ext, cc_args, extra_postargs, pp_opts):
3838
elif self.compiler.compiler_type == "msvc":
3939
if sys.version_info[:2] < (3, 5):
4040
c.include_dirs.extend(['crfsuite/win32'])
41-
41+
4242
build_ext.build_extensions(self)
4343

4444

@@ -73,6 +73,7 @@ def c_compile(obj, src, ext, cc_args, extra_postargs, pp_opts):
7373
"Programming Language :: Python :: 3.7",
7474
"Programming Language :: Python :: 3.8",
7575
"Programming Language :: Python :: 3.9",
76+
"Programming Language :: Python :: 3.10",
7677
"Topic :: Software Development",
7778
"Topic :: Software Development :: Libraries :: Python Modules",
7879
"Topic :: Scientific/Engineering",

0 commit comments

Comments
 (0)