Merge pull request #20 from microsoft/jasper/update-dependencies

Update dependencies
This commit is contained in:
guojiubo 2023-04-23 10:04:51 +08:00 коммит произвёл GitHub
Родитель cc7dc00660 a008c10b64
Коммит 981190f5d0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 686 добавлений и 770 удалений

Просмотреть файл

@ -6,8 +6,6 @@ jobs:
vmImage: 'macOS-latest'
strategy:
matrix:
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
Python39:
@ -47,27 +45,28 @@ jobs:
python -m mypy --ignore-missing-imports tests/
displayName: 'Type Check'
- script: |
source bin/activate
python -m pytest tests --cov=simple_ado --cov-report html --cov-report xml --doctest-modules --junitxml=junit/test-results.xml
env:
SIMPLE_ADO_BASE_TOKEN: $(SIMPLE_ADO_BASE_TOKEN)
displayName: 'pytest'
# Disable for now until we set up a testable Azure DevOps instance
# - script: |
# source bin/activate
# python -m pytest tests --cov=simple_ado --cov-report html --cov-report xml --doctest-modules --junitxml=junit/test-results.xml
# env:
# SIMPLE_ADO_BASE_TOKEN: $(SIMPLE_ADO_BASE_TOKEN)
# displayName: 'pytest'
- script: |
source bin/activate
python inlinecss.py htmlcov
displayName: 'Inline CSS'
# - script: |
# source bin/activate
# python inlinecss.py htmlcov
# displayName: 'Inline CSS'
- task: PublishTestResults@2
inputs:
testResultsFiles: '**/test-results.xml'
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()
# - task: PublishTestResults@2
# inputs:
# testResultsFiles: '**/test-results.xml'
# testRunTitle: 'Python $(python.version)'
# condition: succeededOrFailed()
# Publish Code Coverage Results
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage.xml
reportDirectory: $(System.DefaultWorkingDirectory)/htmlcov
# # Publish Code Coverage Results
# - task: PublishCodeCoverageResults@1
# inputs:
# codeCoverageTool: 'cobertura'
# summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage.xml
# reportDirectory: $(System.DefaultWorkingDirectory)/htmlcov

1347
poetry.lock сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -13,7 +13,6 @@ load-plugins=pylint.extensions.docparams,pylint.extensions.docstyle,pylint.exten
[MESSAGES CONTROL]
# C0330 bad-continuation: Wrong hanging indentation before block
# C0413 wrong-import-position: Import “%s” should be placed at the top of the module Used when code and imports are mixed
# C1801 len-as-condition: Do not use `len(SEQUENCE)` as condition value
# W0511 fixme: TODO statements
@ -21,7 +20,8 @@ load-plugins=pylint.extensions.docparams,pylint.extensions.docstyle,pylint.exten
# W1201 logging-not-lazy: Specify string format arguments as logging function parameters
# W1202 logging-format-interpolation: Use % formatting in logging functions and pass the % parameters as arguments
# W1203 logging-fstring-interpolation: Use % formatting in logging functions and pass the % parameters as arguments
disable=C0330,C0413,C1801,W0511,W0703,W1201,W1202,W1203
# W3101 missing-timeout: Missing timeout argument for method 'requests.*'
disable=C0413,C1801,W0511,W0703,W1201,W1202,W1203,W3101
[REPORTS]

Просмотреть файл

@ -1,6 +1,6 @@
[tool.poetry]
name = "simple_ado"
version = "3.15.0"
version = "3.16.0"
description = "A simple wrapper around the Azure DevOps REST API"
license = "MIT"
@ -22,32 +22,38 @@ classifiers = [
'Environment :: MacOS X',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Software Development',
'Topic :: Utilities'
]
[tool.poetry.dependencies]
python = "^3.7.0"
deserialize = "^1.5.1"
requests = "^2.21"
tenacity = "^6.2.0"
python = "^3.8"
deserialize = "^2.0.1"
requests = "^2.28.2"
tenacity = "^8.2.2"
[tool.poetry.dev-dependencies]
black = "=21.11b1"
mypy = "=0.910"
pylint = "=2.11.1"
pytest = "=6.2.5"
pytest-cov = "=3.0.0"
PyYAML = "=6.0"
toml = "^0.10.0"
types-PyYAML = "=6.0.4"
types-requests = "^2.21"
types-toml = "^0.10.0"
black = "^23.3.0"
mypy = "^1.2.0"
pylint = "^2.17.2"
pytest = "^7.3.1"
pytest-cov = "^4.0.0"
PyYAML = "^6.0"
toml = "^0.10.2"
types-PyYAML = "^6.0.12.9"
types-requests = "^2.28.11.17"
types-toml = "^0.10.8.6"
[[tool.mypy.overrides]]
module = [
"deserialize"
]
ignore_missing_imports = true
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

Просмотреть файл

@ -8,7 +8,7 @@
import enum
import logging
import os
from typing import Any, Dict, List, Optional
from typing import Any, Callable, Dict, List, Optional
import urllib.parse
from simple_ado.base_client import ADOBaseClient

Просмотреть файл

@ -178,8 +178,8 @@ class ADOHTTPClient:
@retry(
retry=(
retry_if_exception(_is_connection_failure)
| retry_if_exception(_is_retryable_get_failure)
retry_if_exception(_is_connection_failure) # type: ignore
| retry_if_exception(_is_retryable_get_failure) # type: ignore
),
wait=wait_random_exponential(max=10),
stop=stop_after_attempt(5),
@ -214,7 +214,7 @@ class ADOHTTPClient:
return response
@retry(
retry=retry_if_exception(_is_connection_failure),
retry=retry_if_exception(_is_connection_failure), # type: ignore
wait=wait_random_exponential(max=10),
stop=stop_after_attempt(5),
)
@ -254,7 +254,7 @@ class ADOHTTPClient:
)
@retry(
retry=retry_if_exception(_is_connection_failure),
retry=retry_if_exception(_is_connection_failure), # type: ignore
wait=wait_random_exponential(max=10),
stop=stop_after_attempt(5),
)
@ -292,7 +292,7 @@ class ADOHTTPClient:
)
@retry(
retry=retry_if_exception(_is_connection_failure),
retry=retry_if_exception(_is_connection_failure), # type: ignore
wait=wait_random_exponential(max=10),
stop=stop_after_attempt(5),
)
@ -317,7 +317,7 @@ class ADOHTTPClient:
)
@retry(
retry=retry_if_exception(_is_connection_failure),
retry=retry_if_exception(_is_connection_failure), # type: ignore
wait=wait_random_exponential(max=10),
stop=stop_after_attempt(5),
)
@ -335,7 +335,7 @@ class ADOHTTPClient:
return self._session.delete(request_url, auth=self.credentials, headers=headers)
@retry(
retry=retry_if_exception(_is_connection_failure),
retry=retry_if_exception(_is_connection_failure), # type: ignore
wait=wait_random_exponential(max=10),
stop=stop_after_attempt(5),
)