Merge pull request #76 from jdepoix/pin-dependency-versions
dependencies pinned
This commit is contained in:
commit
77e8137769
|
@ -1,14 +1,10 @@
|
|||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.4"
|
||||
- "3.5"
|
||||
- "3.6"
|
||||
matrix:
|
||||
include:
|
||||
- python: 3.7
|
||||
dist: xenial
|
||||
sudo: true
|
||||
- "3.7"
|
||||
- "3.8"
|
||||
install:
|
||||
- pip install -r requirements.txt
|
||||
script:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
requests
|
||||
requests==2.24.0
|
||||
|
||||
# testing
|
||||
mock
|
||||
httpretty
|
||||
coverage
|
||||
coveralls
|
||||
mock==3.0.5
|
||||
httpretty==0.9.7
|
||||
coverage==5.2.1
|
||||
coveralls==1.11.1
|
||||
|
|
7
setup.py
7
setup.py
|
@ -34,8 +34,11 @@ setuptools.setup(
|
|||
url="https://github.com/jdepoix/youtube-transcript-api",
|
||||
packages=setuptools.find_packages(),
|
||||
classifiers=(
|
||||
"Programming Language :: Python :: 2",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 2.7",
|
||||
"Programming Language :: Python :: 3.5",
|
||||
"Programming Language :: Python :: 3.6",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Operating System :: OS Independent",
|
||||
),
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import requests
|
||||
try:
|
||||
try: # pragma: no cover
|
||||
import http.cookiejar as cookiejar
|
||||
CookieLoadError = (FileNotFoundError, cookiejar.LoadError)
|
||||
except ImportError:
|
||||
except ImportError: # pragma: no cover
|
||||
import cookielib as cookiejar
|
||||
CookieLoadError = IOError
|
||||
|
||||
|
|
Loading…
Reference in New Issue