Add extra-requirements.txt (#165)

* Add extra-requirements.txt

In grand schema of things we now have `requirements.txt`
that list mandatory dependencies, then we have
`extra-requirements.txt` for optional dependencies enabling
all pysnmp features and finally `devel-requirements.txt`
for things required solely for testing.

Strangely, Travis pulls pysnmpcrypto which then pulls
Cryptography while according to pysnmpcrypyo requirement
it should really pull pycryptodomex (which is does in its
own CI job)
pull/175/head
Ilya Etingof 2018-07-08 12:05:59 +02:00 committed by GitHub
parent 8dbc28d360
commit 5168479e42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 22 deletions

View File

@ -10,10 +10,13 @@ matrix:
dist: xenial dist: xenial
sudo: false sudo: false
python: '2.7' python: '2.7'
- os: linux # Something is broken about pysnmp->pysnmpcrypto->cryptography.
dist: xenial # Somehow pysnmpcrypto chooses cryptography while it should
sudo: false # pick pycryptodomex
python: '3.2' # - os: linux
# dist: xenial
# sudo: false
# python: '3.2'
- os: linux - os: linux
dist: xenial dist: xenial
sudo: false sudo: false
@ -38,17 +41,16 @@ matrix:
dist: xenial dist: xenial
sudo: false sudo: false
python: 'nightly' python: 'nightly'
# - os: linux - os: linux
# dist: xenial dist: xenial
# sudo: false sudo: false
# python: 'pypy' python: 'pypy'
# - os: linux - os: linux
# dist: xenial dist: xenial
# sudo: false sudo: false
# python: 'pypy3' python: 'pypy3'
install: install:
- pip install -r requirements.txt -r devel-requirements.txt - pip install -r requirements.txt -r devel-requirements.txt -r extra-requirements.txt
- pip install -e . - pip install -e .
- pip install pysnmp-mibs
script: script:
- travis_wait 20 sh runtests.sh - travis_wait 20 sh runtests.sh

View File

@ -1,10 +1,2 @@
Sphinx <= 1.6; python_version < '2.7' Sphinx <= 1.6; python_version < '2.7'
Sphinx > 1.6; python_version >= '2.7' Sphinx > 1.6; python_version >= '2.7'
trollius; python_version < '3.0'
twisted < 15.4; python_version < '2.7'
twisted; python_version == '2.7'
twisted < 17.9; python_version == '3.0'
twisted < 17.9; python_version == '3.1'
twisted < 17.9; python_version == '3.2'
twisted <= 17.9; python_version == '3.3'
twisted; python_version >= '3.4'

View File

@ -0,0 +1,9 @@
pysnmpcrypto
trollius; python_version < '3.0'
twisted < 15.4; python_version < '2.7'
twisted; python_version == '2.7'
twisted < 17.9; python_version == '3.0'
twisted < 17.9; python_version == '3.1'
twisted < 17.9; python_version == '3.2'
twisted <= 17.9; python_version == '3.3'
twisted; python_version >= '3.4'