Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
imdb-pie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
richardARPANET
imdb-pie
Commits
e614614d
Commit
e614614d
authored
May 07, 2018
by
richardARPANET
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci config
parent
ac8e2b25
Pipeline
#92
failed with stage
in 25 minutes and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
13 deletions
+24
-13
.gitlab-ci.yml
.gitlab-ci.yml
+22
-10
src/imdbpie/imdbpie.py
src/imdbpie/imdbpie.py
+2
-3
No files found.
.gitlab-ci.yml
View file @
e614614d
before_script
:
# Install pyenv
-
apt-get update
-
apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev
-
pip install tox
-
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
-
export PYENV_ROOT="$HOME/.pyenv"
-
export PATH="$PYENV_ROOT/bin:$PATH"
-
eval "$(pyenv init -)"
# Install tox
-
pip install tox
test:python26:
script
:
-
pyenv install 2.6.9
-
pyenv shell 2.6.9
-
tox -e py26-normal
test:python27:
script
:
-
pyenv install 2.7.14
-
pyenv shell 2.7.14
-
tox -e py27-normal
test:python34:
script
:
-
pyenv install 3.4.7
-
pyenv shell 3.4.7
-
tox -e py34-normal
test:python35:
script
:
-
pyenv install 3.5.4
-
eval "$(pyenv init -)"
-
pyenv shell 3.5.4
-
tox -e py35-normal
test:python36:
script
:
-
pyenv install 3.6.4
-
eval "$(pyenv init -)"
-
pyenv shell 3.6.4
-
tox -e py36-normal
test:python34:
script
:
-
pyenv install 3.4.7
-
eval "$(pyenv init -)"
-
pyenv shell 3.4.7
-
tox -e py34-normal
src/imdbpie/imdbpie.py
View file @
e614614d
...
...
@@ -45,7 +45,6 @@ _SIMPLE_GET_ENDPOINTS = {
'get_title_awards'
:
'/title/{imdb_id}/awards'
,
'get_title_ratings'
:
'/title/{imdb_id}/ratings'
,
'get_title_credits'
:
'/title/{imdb_id}/fullcredits'
,
'get_title_certification'
:
'/title/{imdb_id}/certification'
,
'get_name'
:
'/name/{imdb_id}/fulldetails'
,
'get_name_filmography'
:
'/name/{imdb_id}/filmography'
,
}
...
...
@@ -55,7 +54,7 @@ class Imdb(Auth):
def
__init__
(
self
,
locale
=
None
,
exclude_episodes
=
False
,
session
=
None
):
self
.
locale
=
locale
or
'en_US'
self
.
region
=
self
.
locale
.
split
(
'_'
)[
-
1
]
self
.
region
=
self
.
locale
.
split
(
'_'
)[
-
1
]
.
upper
()
self
.
exclude_episodes
=
exclude_episodes
self
.
session
=
session
or
requests
.
Session
()
self
.
_cachedir
=
tempfile
.
gettempdir
()
...
...
@@ -115,7 +114,7 @@ class Imdb(Auth):
if
(
self
.
exclude_episodes
is
True
and
resource
[
'titleType'
]
==
'tvE
pisode'
resource
[
'titleType'
]
.
lower
()
==
'tve
pisode'
):
raise
LookupError
(
'Title not found. Title was an episode and '
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment