Skip to content

Commit 742d09b

Browse files
drop support for python2.x
fixes issue #14
1 parent e4b1e96 commit 742d09b

File tree

29 files changed

+15
-52
lines changed

29 files changed

+15
-52
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: python
22
python:
3-
- '2.7'
43
- '3.4'
4+
- '3.7'
55
install:
66
- pip install -r requirements.pip
77
- pip install tox-travis

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+

docs/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ ChangeLog
55

66
Changes to the library are recorded here.
77

8+
v2.0.0
9+
------
10+
* Fixes issue #14
11+
* Drops support for Python 2.x as this is EOL.
12+
813
v1.2.0
914
------
1015
* Add custom cert/verification options to be passed normally through the singleton config

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Links
1313
* Official Repository: https://github.com/platinummonkey/python-wiremock.git
1414
* Package: TODO
1515

16-
wiremock is known to support Python 2.7.
16+
wiremock is known to support Python 3.7.
1717

1818

1919
.. _download:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
test_suite='nose.collector',
6464
tests_require=develop_requires,
6565
author='Cody Lee',
66-
author_email='[email protected]',
66+
author_email='[email protected]',
6767
maintainer='Cody Lee',
68-
maintainer_email='[email protected]',
68+
maintainer_email='[email protected]',
6969
url='https://github.com/platinummonkey/python-wiremock',
7070
license='Apache Software License 2.0',
7171
packages=find_packages(),

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{27,34}
2+
envlist = py{34,37}
33

44
[testenv]
55
whitelist_externals =

wiremock/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.0
1+
2.0.0

wiremock/base/base_entity.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import unicode_literals
21
from collections import OrderedDict
32
import json
43

wiremock/base/base_resource.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import unicode_literals
2-
31
import json
42
import requests
53
from requests import exceptions as rexc

wiremock/constants.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import unicode_literals
21
from calendar import timegm
32
from copy import deepcopy
43
import logging
@@ -51,8 +50,8 @@ def datetime_to_ms(dt):
5150
if isinstance(dt, integer_types):
5251
return dt
5352
else:
54-
tmp = timegm(date.utctimetuple())
55-
tmp += float(date.microsecond) / 1000000.0
53+
tmp = timegm(dt.utctimetuple())
54+
tmp += float(dt.microsecond) / 1000000.0
5655
return long_(tmp * 1000.0)
5756

5857

0 commit comments

Comments
 (0)