From 1119ba8cfe820aaca51448d8fd6295032a4af9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ianar=C3=A9?= <97107275+ianardee@users.noreply.github.com> Date: Thu, 11 Aug 2022 17:46:14 +0200 Subject: [PATCH] version 2.5.0 (#95) * :arrow_up: loosen and update requirement * version 2.5.0 --- CHANGELOG.md | 7 +++++++ mindee/version | 2 +- requirements.txt | 2 +- setup.cfg | 4 ++-- tests/test_pkg_versions.py | 10 ++++++---- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09c308b8..ad7fca6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Mindee Python API Library Changelog +## v2.5.0 (2022-08-11) +### Changes +* :lipstick: improve string output of documents +* :arrow_up: general dependencies upgrade (#92) +* :sparkles: add functions for working with centroids (#93) +* :sparkles: Add bank checks documents (beta, US only) (#94) + ## v2.4.0 (2022-06-20) ### Fixes * :bug: :memo: custom docs names refer to the API, not the type. diff --git a/mindee/version b/mindee/version index 9183195a..fad066f8 100644 --- a/mindee/version +++ b/mindee/version @@ -1 +1 @@ -2.4.0 \ No newline at end of file +2.5.0 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 80b66c0c..841da32d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -24,5 +24,5 @@ pytz==2022.1 # via mindee (setup.py) requests==2.28.1 # via mindee (setup.py) -urllib3==1.26.10 +urllib3==1.26.11 # via requests diff --git a/setup.cfg b/setup.cfg index dee4da5e..d558ef84 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,7 +31,7 @@ include_package_data = True python_requires = >=3.7 install_requires = pikepdf==5.1.2 - pytz~=2022.1 + pytz>=2022.1 requests~=2.28 [options.package_data] @@ -43,7 +43,7 @@ mindee = dev = black==22.3.0 mypy==0.960 - pip-tools==6.5.1 + pip-tools~=6.8.0 pylint==2.12.2 setuptools==49.6.0 isort==5.10.1 diff --git a/tests/test_pkg_versions.py b/tests/test_pkg_versions.py index 1d2de2f4..c1895252 100644 --- a/tests/test_pkg_versions.py +++ b/tests/test_pkg_versions.py @@ -1,6 +1,7 @@ """Test to check if style packages are in same versions as pre-commit config.""" import configparser +import re from pathlib import Path @@ -12,10 +13,11 @@ def test_style_pkg_versions(): """Check black, flake8, isort and pydocstyle versions consistency.""" config = configparser.ConfigParser() config.read(Path(__file__).parent.parent.joinpath("setup.cfg")) - requirements_versions = { - line.strip().split("==")[0]: line.strip().split("==")[1] - for line in config["options.extras_require"]["dev"].split() - } + line_sep = re.compile(r"(==|~=)") + requirements_versions = {} + for line in config["options.extras_require"]["dev"].split(): + split_line = line_sep.split(line.strip()) + requirements_versions[split_line[0]] = split_line[2] # Get pre-commit versions pre_commit_versions = {}