Skip to content

Minimum pyasn1 dependency #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
language: python
python:
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5
- nightly

before_install:
- PIP_VERSION=$(pip --version)
- |
if [[ ${PIP_VERSION:0:9} == 'pip 8.1.2' ]]; then
pip install --upgrade pip==8.1.1
fi

# Replicate an up to date precise system with python-openssl 0.12
# and python-pyasn1 0.0.11a on Python 2.7
- pip install PyOpenSSL==0.12
- |
if [[ ${TRAVIS_PYTHON_VERSION:0:1} == '2.7' ]]; then
pip install pyasn1==0.0.11a0
python -c "import pyasn1; assert pyasn1.__version__ == '0.0.11a0'"
fi

script:
- pip install -e '.[subjectAltName_support]'

# Confirm that pyasn1 is upgraded; see https://github.com/cedadev/ndg_httpsclient/issues/5
- |
if [[ ${TRAVIS_PYTHON_VERSION:0:2} == '2.7' ]]; then
python -c "import pyasn1; assert pyasn1.__version__ != '0.0.11a0'"
fi

# Also do a fresh install
- (cd /tmp && pip uninstall --yes ndg_httpsclient pyasn1 PyOpenSSL)
- python setup.py install
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
],
},
install_requires=['PyOpenSSL'],
extras_require={'subjectAltName_support': 'pyasn1'},
extras_require={'subjectAltName_support': ['pyasn1>=0.1.1']},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
Expand Down