Skip to content

Commit 2e42e28

Browse files
authored
Merge pull request python-gitlab#830 from python-gitlab/chore/ci-disable-py-func
Chore/ci disable py func
2 parents 5492b71 + 515aa9a commit 2e42e28

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
language: python
55
python: 2.7
66
env:
7-
- TOX_ENV=py_func_v4
7+
#- TOX_ENV=py_func_v4
88
- TOX_ENV=cli_func_v4
99
install:
1010
- pip install tox

gitlab/v4/objects.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4262,10 +4262,18 @@ def transfer_project(self, to_namespace, **kwargs):
42624262
path, post_data={"namespace": to_namespace}, **kwargs
42634263
)
42644264

4265-
42664265
@cli.register_custom_action("Project", ("ref_name", "artifact_path", "job"))
42674266
@exc.on_http_error(exc.GitlabGetError)
4268-
def artifact(self, ref_name, artifact_path, job, streamed=False, action=None, chunk_size=1024, **kwargs):
4267+
def artifact(
4268+
self,
4269+
ref_name,
4270+
artifact_path,
4271+
job,
4272+
streamed=False,
4273+
action=None,
4274+
chunk_size=1024,
4275+
**kwargs
4276+
):
42694277
"""Download a single artifact file from a specific tag or branch from within the job’s artifacts archive.
42704278
42714279
Args:
@@ -4288,7 +4296,12 @@ def artifact(self, ref_name, artifact_path, job, streamed=False, action=None, ch
42884296
str: The artifacts if `streamed` is False, None otherwise.
42894297
"""
42904298

4291-
path = "/projects/%s/jobs/artifacts/%s/raw/%s?job=%s" % (self.get_id(), ref_name, artifact_path, job)
4299+
path = "/projects/%s/jobs/artifacts/%s/raw/%s?job=%s" % (
4300+
self.get_id(),
4301+
ref_name,
4302+
artifact_path,
4303+
job,
4304+
)
42924305
result = self.manager.gitlab.http_get(
42934306
path, streamed=streamed, raw=True, **kwargs
42944307
)

0 commit comments

Comments
 (0)