From a39056dedda364b4b370cc8d54477c8407e84c14 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 31 Jan 2019 20:36:17 +0300 Subject: [PATCH] Python 3.7 --- .travis.yml | 14 ++++++++++++-- appveyor.yml | 26 +++++++++++++------------- setup.py | 1 + tox.ini | 4 ++-- 4 files changed, 28 insertions(+), 17 deletions(-) diff --git a/.travis.yml b/.travis.yml index e598ae2..b240f97 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,9 @@ matrix: env: TOXENV=py35 - python: "3.6" env: TOXENV=py36 + - python: "3.7" + dist: xenial + env: TOXENV=py37 - python: "2.7" env: TOXENV=py27-postgres - python: "3.4" @@ -41,6 +44,9 @@ matrix: env: TOXENV=py35-postgres - python: "3.6" env: TOXENV=py36-postgres + - python: "3.7" + dist: xenial + env: TOXENV=py37-postgres - python: "2.7" env: TOXENV=py27-sqlite - python: "3.4" @@ -49,10 +55,14 @@ matrix: env: TOXENV=py35-sqlite - python: "3.6" env: TOXENV=py36-sqlite + - python: "3.7" + dist: xenial + env: TOXENV=py37-sqlite - python: "2.7" env: TOXENV=py27-flake8 - - python: "3.4" - env: TOXENV=py34-flake8 + - python: "3.7" + dist: xenial + env: TOXENV=py37-flake8 install: - travis_retry pip install --upgrade pip setuptools tox ppu diff --git a/appveyor.yml b/appveyor.yml index 1a2ca61..71ba97d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -28,36 +28,36 @@ environment: PYTHON_VERSION: "2.7" PYTHON_ARCH: "32" PYTHON_HOME: "C:\\Python27" - - TOXENV: "py36" - PYTHON_VERSION: "3.6" + - TOXENV: "py37" + PYTHON_VERSION: "3.7" PYTHON_ARCH: "64" - PYTHON_HOME: "C:\\Python36-x64" + PYTHON_HOME: "C:\\Python37-x64" - TOXENV: "py27-postgres-w32" PYTHON_VERSION: "2.7" PYTHON_ARCH: "32" PYTHON_HOME: "C:\\Python27" db: postgresql - - TOXENV: "py36-postgres-w32" - PYTHON_VERSION: "3.6" + - TOXENV: "py37-postgres-w32" + PYTHON_VERSION: "3.7" PYTHON_ARCH: "64" - PYTHON_HOME: "C:\\Python36-x64" + PYTHON_HOME: "C:\\Python37-x64" db: postgresql - TOXENV: "py27-sqlite-w32" PYTHON_VERSION: "2.7" PYTHON_ARCH: "32" PYTHON_HOME: "C:\\Python27" - - TOXENV: "py36-sqlite-w32" - PYTHON_VERSION: "3.6" + - TOXENV: "py37-sqlite-w32" + PYTHON_VERSION: "3.7" PYTHON_ARCH: "64" - PYTHON_HOME: "C:\\Python36-x64" + PYTHON_HOME: "C:\\Python37-x64" - TOXENV: "py27-flake8" PYTHON_VERSION: "2.7" PYTHON_ARCH: "32" PYTHON_HOME: "C:\\Python27" - - TOXENV: "py34-flake8" - PYTHON_VERSION: "3.4" + - TOXENV: "py37-flake8" + PYTHON_VERSION: "3.7" PYTHON_ARCH: "64" - PYTHON_HOME: "C:\\Python34-x64" + PYTHON_HOME: "C:\\Python37-x64" install: # Ensure we use the right python version @@ -66,7 +66,7 @@ install: - "python --version" - "python -c \"import struct; print(struct.calcsize('P') * 8)\"" - "python -m pip install --upgrade pip setuptools" - - "pip install --upgrade tox ppu" + - "pip install --upgrade \"tox < 3.1\" ppu" - "pip --version" # No build step - we don't have C extensions diff --git a/setup.py b/setup.py index b94b18a..8d8fec7 100755 --- a/setup.py +++ b/setup.py @@ -41,6 +41,7 @@ setup( 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', ], packages=['sqlconvert'], scripts=['scripts/mysql2sql'], diff --git a/tox.ini b/tox.ini index 0481b43..030496a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.0 -envlist = py{27,34,35,36,37}{,-sqlite},py{27,34}-flake8 +envlist = py{27,34,35,36,37}{,-sqlite},py{27,37}-flake8 # Base test environment settings [testenv] @@ -158,7 +158,7 @@ commands = {[testenv]commands} flake8 -[testenv:py34-flake8] +[testenv:py37-flake8] deps = flake8 commands = -- 2.39.2