Skip to content
Merged
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
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ python:
install:
- pip install poetry
- poetry install
env:
# PyPIへのアクセス過多などで失敗するケースがあるので、タイムアウトを設定する
- PIP_DEFAULT_TIMEOUT=100
script:
- make lint
- pytest tests/test_local*.py
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: docs lint test format test publish_test publish
.PHONY: docs lint test format test publish

init:
pip install poetry --upgrade
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[AnnoFab Web API](https://annofab.com/docs/api/) のPythonクライアントライブラリです。

[![Build Status](https://travis-ci.com/kurusugawa-computer/annofab-api-python-client.svg?branch=master)](https://travis-ci.com/kurusugawa-computer/annofab-api-python-client)
[![CodeQL](https://github.com/kurusugawa-computer/annofab-api-python-client/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/kurusugawa-computer/annofab-api-python-client/actions/workflows/codeql-analysis.yml)
[![PyPI version](https://badge.fury.io/py/annofabapi.svg)](https://badge.fury.io/py/annofabapi)
[![Python Versions](https://img.shields.io/pypi/pyversions/annofabapi.svg)](https://pypi.org/project/annofabapi/)

Expand Down
2 changes: 1 addition & 1 deletion annofabapi/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.46.2"
__version__ = "0.46.3"
2 changes: 2 additions & 0 deletions annofabapi/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import requests

from annofabapi import AnnofabApi
from annofabapi.api import my_backoff
from annofabapi.exceptions import AnnofabApiException
from annofabapi.models import (
AdditionalData,
Expand Down Expand Up @@ -914,6 +915,7 @@ def put_input_data_from_file(
#########################################
# Public Method : Statistics
#########################################
@my_backoff
def _request_location_header_url(self, response: requests.Response) -> Any:
"""
Location headerに記載されているURLの中身を返す。
Expand Down
9 changes: 2 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "annofabapi"
version = "0.46.2"
version = "0.46.3"
description = "Python Clinet Library of AnnoFab WebAPI (https://annofab.com/docs/api/)"
authors = ["yuji38kwmt"]
license = "MIT"
Expand Down Expand Up @@ -69,14 +69,9 @@ jedi = "<0.18"
line-length = 120

[tool.isort]
profile = "black"
line_length = 120
skip="annofabapi/__init__.py"
# blackの設定に合わせる
# https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length
multi_line_output=3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true

[build-system]
requires = ["poetry>=0.12"]
Expand Down
4 changes: 0 additions & 4 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,6 @@ def test_get_project_member(self):
def test_wrapper_get_all_project_members(self):
assert len(wrapper.get_all_project_members(project_id)) >= 0

def test_wrapper_copy_project_member(self):
content = wrapper.copy_project_members(src_project_id=project_id, dest_project_id=project_id, delete_dest=False)
assert type(content) == list


class TestStatistics:
def test_wrapper_statistics(self):
Expand Down