Skip to content

Commit 2b52677

Browse files
nicoddemusYury Selivanov
authored andcommitted
Add Python 3.8 support (#16)
Fix #15
1 parent 51bc6b0 commit 2b52677

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*._*
22
*.pyc
3+
*.pyd
34
*.pyo
45
*.scssc
56
*.so

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: generic
33
env:
44
global:
55
- PYMODULE=immutables
6-
- RELEASE_PYTHON_VERSIONS="3.5 3.6 3.7"
6+
- RELEASE_PYTHON_VERSIONS="3.5 3.6 3.7 3.8"
77

88
- S3_UPLOAD_USERNAME=oss-ci-bot
99
- S3_UPLOAD_BUCKET=magicstack-oss-releases
@@ -36,6 +36,12 @@ matrix:
3636
python: "3.7"
3737
env: BUILD=tests
3838

39+
- os: linux
40+
dist: xenial
41+
language: python
42+
python: "3.8"
43+
env: BUILD=tests
44+
3945
- os: linux
4046
dist: trusty
4147
sudo: required
@@ -53,6 +59,9 @@ matrix:
5359
- os: osx
5460
env: BUILD=tests,wheels PYTHON_VERSION=3.7.0
5561

62+
- os: osx
63+
env: BUILD=tests,wheels PYTHON_VERSION=3.8.0
64+
5665
cache:
5766
pip
5867

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
'Programming Language :: Python :: 3.5',
4949
'Programming Language :: Python :: 3.6',
5050
'Programming Language :: Python :: 3.7',
51+
'Programming Language :: Python :: 3.8',
5152
'Operating System :: POSIX',
5253
'Operating System :: MacOS :: MacOS X',
5354
'Operating System :: Microsoft :: Windows',

tests/test_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ def test_map_pickle(self):
12941294
self.assertTrue(isinstance(uh, self.Map))
12951295
self.assertEqual(h, uh)
12961296

1297-
with self.assertRaisesRegex(TypeError, "can't pickle"):
1297+
with self.assertRaisesRegex(TypeError, "can('t|not) pickle"):
12981298
pickle.dumps(h.mutate())
12991299

13001300
@unittest.skipIf(sys.version_info < (3, 7, 0), "__class_getitem__ is not available")

0 commit comments

Comments
 (0)