Skip to content

Commit 7430af6

Browse files
yangchooyangchoo
andauthored
Add Py38 Tests (kvesteri#473)
* add py38 tests * selectively fix lint Co-authored-by: yangchoo <[email protected]>
1 parent 69f612a commit 7430af6

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ matrix:
2525
- python: 3.7
2626
env:
2727
- "TOXENV=py37"
28+
- python: 3.8
29+
env:
30+
- "TOXENV=py38"
2831
- python: 3.7
2932
env:
3033
- "TOXENV=lint"

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def get_version():
9494
'Programming Language :: Python :: 3.5',
9595
'Programming Language :: Python :: 3.6',
9696
'Programming Language :: Python :: 3.7',
97+
'Programming Language :: Python :: 3.8',
9798
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
9899
'Topic :: Software Development :: Libraries :: Python Modules'
99100
]

sqlalchemy_utils/types/encrypted/encrypted_type.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@
1616
cryptography = None
1717
try:
1818
import cryptography
19+
from cryptography.exceptions import InvalidTag
20+
from cryptography.fernet import Fernet
1921
from cryptography.hazmat.backends import default_backend
2022
from cryptography.hazmat.primitives import hashes
2123
from cryptography.hazmat.primitives.ciphers import (
22-
Cipher, algorithms, modes
24+
algorithms,
25+
Cipher,
26+
modes
2327
)
24-
from cryptography.fernet import Fernet
25-
from cryptography.exceptions import InvalidTag
2628
except ImportError:
2729
pass
2830

sqlalchemy_utils/types/pg_composite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ class Account(Base):
134134
register_adapter = None
135135
try:
136136
import psycopg2
137-
from psycopg2.extras import CompositeCaster
138137
from psycopg2.extensions import adapt, AsIs, register_adapter
138+
from psycopg2.extras import CompositeCaster
139139
except ImportError:
140140
pass
141141

tests/types/test_encrypted.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ def user_datetime():
153153

154154
@pytest.fixture
155155
def test_token():
156-
import string
157156
import random
157+
import string
158158
token = ''
159159
characters = string.ascii_letters + string.digits
160160
for i in range(60):

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py35, py36, py37, lint
2+
envlist = py35, py36, py37, py38, lint
33

44
[testenv]
55
commands =
@@ -24,6 +24,9 @@ recreate = True
2424
[testenv:py37]
2525
recreate = True
2626

27+
[testenv:py38]
28+
recreate = True
29+
2730
[testenv:lint]
2831
recreate = True
2932
commands =

0 commit comments

Comments
 (0)