Merge pull request #65 from decaz/py39

Support Python 3.9
This commit is contained in:
MISAWA Yoshihiro 2020-10-27 16:09:31 +09:00 committed by GitHub
commit 62dd7b37c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 43 additions and 8 deletions

View file

@ -12,6 +12,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Install Python 3.9
with:
python-version: "3.9"
- uses: actions/setup-python@v1
name: Install Python 3.8
with:
@ -46,6 +51,10 @@ jobs:
run: |
pip install -r requirements-dev.txt
- name: Test for Python 3.9
run: |
tox -e py39
- name: Test for Python 3.8
run: |
tox -e py38

View file

@ -12,6 +12,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Install Python 3.9
with:
python-version: "3.9"
- uses: actions/setup-python@v1
name: Install Python 3.8
with:
@ -46,6 +51,10 @@ jobs:
run: |
pip install -r requirements-dev.txt
- name: Test for Python 3.9
run: |
tox -e py39
- name: Test for Python 3.8
run: |
tox -e py38

View file

@ -18,6 +18,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Install Python 3.9
with:
python-version: "3.9"
architecture: ${{ matrix.config.py-architecture }}
- uses: actions/setup-python@v1
name: Install Python 3.8
with:
@ -56,6 +62,12 @@ jobs:
run: |
pip install -r requirements-dev.txt
- name: Test for Python 3.9
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -no_logo -arch=${{ matrix.config.vs-arch }}
tox -e py39
- name: Test for Python 3.8
shell: cmd
run: |

View file

@ -18,12 +18,16 @@ matrix:
sudo: true
- python: 3.8
env: TOXENV=py38
dist: xenial
sudo: true
- python: 'nightly'
dist: bionic
sudo: true
- python: 3.9
env: TOXENV=py39
dist: focal
sudo: true
- python: 'nightly'
env: TOXENV=py310
dist: focal
sudo: true
allow_failures:
- python: nightly

View file

@ -4,7 +4,7 @@ CHANGES
2.x.x
-----
- support Python 3.9
2.1.6 (2020-03-17)
------------------

View file

@ -4,7 +4,7 @@ set -e -x
ARCH=`uname -p`
echo "arch=$ARCH"
for V in cp38-cp38 cp37-cp37m cp36-cp36m cp35-cp35m; do
for V in cp39-cp39 cp38-cp38 cp37-cp37m cp36-cp36m cp35-cp35m; do
PYBIN=/opt/python/$V/bin
rm -rf build src/cchardet/__pycache__ src/cchardet/*.cpp src/cchardet/*.pyc src/cchardet/*.so src/cchardet.egg-info src/tests/__pycache__ src/tests/*.pyc
$PYBIN/pip install -r requirements-dev.txt

View file

@ -1,4 +1,4 @@
FROM python:3.8-buster
FROM python:3.9-buster
RUN pip install -U cython chardet nose

View file

@ -1,4 +1,4 @@
FROM python:3.8-slim-buster
FROM python:3.9-slim-buster
ENV BUILD_DEPS gcc g++

View file

@ -133,6 +133,7 @@ setup(
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
keywords=[
'cython',

View file

@ -1,5 +1,5 @@
[tox]
envlist = py35, py36, py37, py38, py39
envlist = py35, py36, py37, py38, py39, py310
[testenv]
commands =