Skip to content

Commit

Permalink
Merge pull request #48 from Kinto/get-rid-of-six
Browse files Browse the repository at this point in the history
Get rid of six
  • Loading branch information
leplatrem authored Apr 17, 2018
2 parents 0ce2b92 + d75fb1e commit dc498a3
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 77 deletions.
8 changes: 2 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: python
python: 3.5
python: 3.6
env:
- TOX_ENV=py35
- TOX_ENV=py36
- TOX_ENV=kinto-master
- TOX_ENV=flake8
install:
Expand All @@ -17,17 +17,13 @@ matrix:
- pip install tox
- make install-kinto
- pip install -U https://github.com/Kinto/kinto/tarball/master
- mv kinto_emailer/tests/config/kinto-7.X.ini kinto_emailer/tests/config/kinto.ini
- make run-kinto &
- env:
- TOX_ENV=functional
install:
- pip install tox
- make install-kinto
- make run-kinto &
- python: 3.6
env:
- TOX_ENV=py36
after_success:
# Report coverage results to coveralls.io
- pip install coveralls
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ This document describes changes between each past release.
1.1.0 (unreleased)
------------------

- Nothing changed yet.
**Internal changes**

- Get rid of ``six``


1.0.1 (2017-11-21)
Expand Down
66 changes: 0 additions & 66 deletions kinto_emailer/tests/config/kinto-7.X.ini

This file was deleted.

4 changes: 2 additions & 2 deletions kinto_emailer/tests/functional.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import configparser
import os.path
import shutil
from glob import glob
from six.moves.urllib.parse import urljoin
from urllib.parse import urljoin

import unittest
import requests
from six.moves import configparser

from kinto_client import Client

Expand Down
3 changes: 2 additions & 1 deletion kinto_emailer/tests/test_includeme.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ def get_app_settings(cls, extras=None):
return settings

def setUp(self):
self._patch_autograph()
collection = {
'kinto-emailer': {
'hooks': [{
Expand All @@ -360,11 +361,11 @@ def setUp(self):
self.app.post_json('/buckets/staging/collections/addons/records',
{'data': {'age': 42}},
headers=self.headers)
self._patch_autograph()

def _patch_autograph(self):
# Patch calls to Autograph.
patch = mock.patch('kinto_signer.signer.autograph.requests')
self.addCleanup(patch.stop)
mocked = patch.start()
mocked.post.return_value.json.return_value = [{
"signature": "",
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ repoze.lru==0.7
repoze.sendmail==4.4.1
requests==2.18.4
simplejson==3.12.0
six==1.11.0
transaction==2.1.2
translationstring==1.3
ujson==1.35
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def read_file(filename):
license='Apache License (2.0)',
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"License :: OSI Approved :: Apache Software License"
Expand Down

0 comments on commit dc498a3

Please sign in to comment.