Skip to content

Commit 034b141

Browse files
committed
Add tox file, update requirements
1 parent fc01c4b commit 034b141

File tree

4 files changed

+32
-8
lines changed

4 files changed

+32
-8
lines changed

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
*.pyo
1010
*.swp
1111

12-
Thumbs.db
12+
build
13+
dist
1314

1415
.idea
16+
.tox
17+
.pytest_cache
18+
19+
MANIFEST
20+
21+
Thumbs.db

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ language: python
66
python:
77
- "2.6"
88
- "2.7"
9-
- "3.3"
109
- "3.4"
1110
- "3.5"
1211
- "3.6"

setup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
from sys import version_info
44

5-
__version__ = '1.2'
5+
__version__ = '1.3'
66

77
py_version = version_info[:2]
8-
if py_version < (2, 6):
8+
if not (2, 6) <= py_version <= (2, 7) or py_version >= (3, 4):
99
raise ImportError('Python %d.%d is not supported by DBUtils.' % py_version)
1010

1111
import warnings
@@ -32,13 +32,10 @@
3232
'Programming Language :: Python :: 2.6',
3333
'Programming Language :: Python :: 2.7',
3434
'Programming Language :: Python :: 3',
35-
'Programming Language :: Python :: 3.0',
36-
'Programming Language :: Python :: 3.1',
37-
'Programming Language :: Python :: 3.2',
38-
'Programming Language :: Python :: 3.3',
3935
'Programming Language :: Python :: 3.4',
4036
'Programming Language :: Python :: 3.5',
4137
'Programming Language :: Python :: 3.6',
38+
'Programming Language :: Python :: 3.7',
4239
'Topic :: Database',
4340
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
4441
'Topic :: Software Development :: Libraries :: Python Modules'

tox.ini

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[tox]
2+
envlist = py{26,27,34,35,36,37}, flake8
3+
4+
[pytest]
5+
python_files=Test*.py
6+
7+
[testenv]
8+
setenv =
9+
PYTHONPATH = {toxinidir}
10+
deps =
11+
pytest
12+
commands =
13+
pytest
14+
15+
[testenv:flake8]
16+
basepython =
17+
python
18+
deps =
19+
flake8
20+
commands =
21+
flake8 DBUtils

0 commit comments

Comments
 (0)