Skip to content

Commit

Permalink
Merge branch 'master' into fix-everything
Browse files Browse the repository at this point in the history
  • Loading branch information
bmw committed Jan 10, 2018
2 parents 164121f + 6eb4593 commit f4a1547
Show file tree
Hide file tree
Showing 102 changed files with 963 additions and 3,706 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -35,3 +35,6 @@ tests/letstest/*.pem
tests/letstest/venv/

.venv

# pytest cache
.cache
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -12,7 +12,7 @@ before_install:
- cp .travis.yml /tmp/travis.yml
- git pull origin master --strategy=recursive --strategy-option=theirs --no-edit
- if ! git diff .travis.yml /tmp/travis.yml ; then echo "Please merge master into test-everything"; exit 1; fi
- '([ $TRAVIS_OS_NAME == linux ] && dpkg -s libaugeas0) || (brew update && brew install augeas python3)'
- '([ $TRAVIS_OS_NAME == linux ] && dpkg -s libaugeas0) || (brew update && brew install augeas python3 && brew upgrade python && brew link python)'

before_script:
- 'if [ $TRAVIS_OS_NAME = osx ] ; then ulimit -n 1024 ; fi'
Expand Down
13 changes: 7 additions & 6 deletions acme/acme/__init__.py
Expand Up @@ -13,9 +13,10 @@
import sys
import warnings

if sys.version_info[:2] == (3, 3):
warnings.warn(
"Python 3.3 support will be dropped in the next release of "
"acme. Please upgrade your Python version.",
PendingDeprecationWarning,
) #pragma: no cover
for (major, minor) in [(2, 6), (3, 3)]:
if sys.version_info[:2] == (major, minor):
warnings.warn(
"Python {0}.{1} support will be dropped in the next release of "
"acme. Please upgrade your Python version.".format(major, minor),
DeprecationWarning,
) #pragma: no cover
2 changes: 1 addition & 1 deletion acme/acme/challenges.py
Expand Up @@ -6,13 +6,13 @@
import socket

from cryptography.hazmat.primitives import hashes # type: ignore
import josepy as jose
import OpenSSL
import requests

from acme import errors
from acme import crypto_util
from acme import fields
from acme import jose

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion acme/acme/challenges_test.py
@@ -1,14 +1,14 @@
"""Tests for acme.challenges."""
import unittest

import josepy as jose
import mock
import OpenSSL
import requests

from six.moves.urllib import parse as urllib_parse # pylint: disable=import-error

from acme import errors
from acme import jose
from acme import test_util

CERT = test_util.load_comparable_cert('cert.pem')
Expand Down
4 changes: 2 additions & 2 deletions acme/acme/client.py
Expand Up @@ -10,13 +10,13 @@
import six
from six.moves import http_client # pylint: disable=import-error

import josepy as jose
import OpenSSL
import re
import requests
import sys

from acme import errors
from acme import jose
from acme import jws
from acme import messages

Expand Down Expand Up @@ -408,7 +408,7 @@ def _get_cert(self, uri):
:param str uri: URI of certificate
:returns: tuple of the form
(response, :class:`acme.jose.ComparableX509`)
(response, :class:`josepy.util.ComparableX509`)
:rtype: tuple
"""
Expand Down
2 changes: 1 addition & 1 deletion acme/acme/client_test.py
Expand Up @@ -5,12 +5,12 @@

from six.moves import http_client # pylint: disable=import-error

import josepy as jose
import mock
import requests

from acme import challenges
from acme import errors
from acme import jose
from acme import jws as acme_jws
from acme import messages
from acme import messages_test
Expand Down
2 changes: 1 addition & 1 deletion acme/acme/crypto_util_test.py
Expand Up @@ -8,10 +8,10 @@
import six
from six.moves import socketserver #type: ignore # pylint: disable=import-error

import josepy as jose
import OpenSSL

from acme import errors
from acme import jose
from acme import test_util


Expand Down
2 changes: 1 addition & 1 deletion acme/acme/errors.py
@@ -1,5 +1,5 @@
"""ACME errors."""
from acme.jose import errors as jose_errors
from josepy import errors as jose_errors


class Error(Exception):
Expand Down
3 changes: 1 addition & 2 deletions acme/acme/fields.py
@@ -1,10 +1,9 @@
"""ACME JSON fields."""
import logging

import josepy as jose
import pyrfc3339

from acme import jose


logger = logging.getLogger(__name__)

Expand Down
3 changes: 1 addition & 2 deletions acme/acme/fields_test.py
Expand Up @@ -2,10 +2,9 @@
import datetime
import unittest

import josepy as jose
import pytz

from acme import jose


class FixedTest(unittest.TestCase):
"""Tests for acme.fields.Fixed."""
Expand Down
82 changes: 0 additions & 82 deletions acme/acme/jose/__init__.py

This file was deleted.

61 changes: 0 additions & 61 deletions acme/acme/jose/b64.py

This file was deleted.

77 changes: 0 additions & 77 deletions acme/acme/jose/b64_test.py

This file was deleted.

0 comments on commit f4a1547

Please sign in to comment.