Drop support for Python 2.7

See: [Maintenance releases - PEP 373 -- Python 2.7 Release Schedule | Python.org](https://www.python.org/dev/peps/pep-0373/#maintenance-releases)
This commit is contained in:
MISAWA Yoshihiro 2020-03-16 23:40:00 +09:00 committed by GitHub
parent 06458acd99
commit e9154f9694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 20 deletions

View file

@ -8,8 +8,6 @@ git:
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: 3.5
env: TOXENV=py35
- python: 3.6

View file

@ -234,17 +234,6 @@ RAM: DDR3 1600Mhz 16GB
Platform: Ubuntu 16.04 amd64
Python 2.7.13
^^^^^^^^^^^^^
+-----------------+------------------+
| | Request (call/s) |
+=================+==================+
| chardet v3.0.2 | 0.36 |
+-----------------+------------------+
| cchardet v2.0.1 | 1396.42 |
+-----------------+------------------+
Python 3.6.1
^^^^^^^^^^^^

View file

@ -1,11 +1,9 @@
environment:
matrix:
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python37"
- PYTHON: "C:\\Python38"
- PYTHON: "C:\\Python27-x64"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37-x64"

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 cp27-cp27m cp27-cp27mu; do
for V in 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

@ -27,7 +27,7 @@ if have_cython:
pyx_sources = glob.glob(cchardet_dir + '*.pyx')
sys.stderr.write('cythonize: %r\n' % (pyx_sources,))
cython_compiler.compile(
pyx_sources, options=cython_compiler.CompilationOptions(cplus=True))
pyx_sources, options=cython_compiler.CompilationOptions(cplus=True, compiler_directives={"language_level": 3}))
cchardet_sources = glob.glob(cchardet_dir + '*.cpp')
sources = cchardet_sources
@ -128,8 +128,6 @@ setup(
'Programming Language :: Cython',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',

View file

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