support Python 3.7

This commit is contained in:
PyYoshi 2018-09-26 21:49:01 +09:00
parent 753588294f
commit 3329969fcc
5 changed files with 15 additions and 5 deletions

View file

@ -18,10 +18,14 @@ matrix:
env: TOXENV=py36 env: TOXENV=py36
- python: 3.7 - python: 3.7
env: TOXENV=py37 env: TOXENV=py37
- env: TOXENV=py37 dist: xenial
python: nightly sudo: true
- python: '3.8-dev'
dist: xenial
sudo: true
env: TOXENV=py38
allow_failures: allow_failures:
- python: nightly - python: 3.8-dev
before_install: before_install:
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules

View file

@ -1,6 +1,11 @@
CHANGES CHANGES
======= =======
2.1.x
-----
- support Python 3.7
2.1.2 2.1.2
----- -----

View file

@ -4,7 +4,7 @@ set -e -x
ARCH=`uname -p` ARCH=`uname -p`
echo "arch=$ARCH" echo "arch=$ARCH"
for V in cp36-cp36m cp35-cp35m cp34-cp34m cp27-cp27m cp27-cp27mu; do for V in cp37-cp37m cp36-cp36m cp35-cp35m cp34-cp34m cp27-cp27m cp27-cp27mu; do
PYBIN=/opt/python/$V/bin 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 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 $PYBIN/pip install -r requirements-dev.txt

View file

@ -128,6 +128,7 @@ setup(
'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
], ],
keywords=[ keywords=[
'cython', 'cython',

View file

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