From 2b52677fdde34b1c89bdf4411ef95bd1ed0f343d Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 2 Nov 2019 17:56:24 -0300 Subject: Add Python 3.8 support (#16) Fix #15 --- .gitignore | 1 + .travis.yml | 11 ++++++++++- setup.py | 1 + tests/test_map.py | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6719984..4b713b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *._* *.pyc +*.pyd *.pyo *.scssc *.so diff --git a/.travis.yml b/.travis.yml index 4c05bd6..7b81f29 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ language: generic env: global: - PYMODULE=immutables - - RELEASE_PYTHON_VERSIONS="3.5 3.6 3.7" + - RELEASE_PYTHON_VERSIONS="3.5 3.6 3.7 3.8" - S3_UPLOAD_USERNAME=oss-ci-bot - S3_UPLOAD_BUCKET=magicstack-oss-releases @@ -36,6 +36,12 @@ matrix: python: "3.7" env: BUILD=tests + - os: linux + dist: xenial + language: python + python: "3.8" + env: BUILD=tests + - os: linux dist: trusty sudo: required @@ -53,6 +59,9 @@ matrix: - os: osx env: BUILD=tests,wheels PYTHON_VERSION=3.7.0 + - os: osx + env: BUILD=tests,wheels PYTHON_VERSION=3.8.0 + cache: pip diff --git a/setup.py b/setup.py index 435397d..e27586c 100644 --- a/setup.py +++ b/setup.py @@ -48,6 +48,7 @@ setuptools.setup( 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'Operating System :: POSIX', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', diff --git a/tests/test_map.py b/tests/test_map.py index 8d629f8..0b464cf 100644 --- a/tests/test_map.py +++ b/tests/test_map.py @@ -1294,7 +1294,7 @@ class BaseMapTest: self.assertTrue(isinstance(uh, self.Map)) self.assertEqual(h, uh) - with self.assertRaisesRegex(TypeError, "can't pickle"): + with self.assertRaisesRegex(TypeError, "can('t|not) pickle"): pickle.dumps(h.mutate()) @unittest.skipIf(sys.version_info < (3, 7, 0), "__class_getitem__ is not available") -- cgit v1.2.3