Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
/ hmrb Public archive

Commit

Permalink
[NLP-2233] Upgrade dependencies and general maintenance (#19)
Browse files Browse the repository at this point in the history
* docs: maintenance

* build: bump dependency versions

* build: recompile protobuf

* build: bump Python versions in nox

* deploy: 1.2.1

* fix: lint
  • Loading branch information
Kristian Boda authored Jan 25, 2022
1 parent 51715ac commit ffdec3d
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 313 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.2.1 (25.01.2022)
++++++++++++++++++
- NLP-2233: bump dependency versions and general maintenance

1.2.0 (14.05.2021)
++++++++++++++++++
- NLP-1955: spaCy 3.0+ compatibility with example and test
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ERROR_PYTHON_VERSION = 10
### Main defs

PACKAGE_NAME = hmrb
PACKAGE_VERSION = 1.2.0
PACKAGE_VERSION = 1.2.1

srcdir = $(CURDIR)/$(PACKAGE_NAME)
builddir = $(CURDIR)/build
Expand Down
5 changes: 2 additions & 3 deletions doc_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
sphinx==4.0.1
sphinxcontrib-napoleon==0.7
sphinx-rtd-theme==0.5.2
sphinx==4.4.0
sphinx-rtd-theme==1.0.0
sphinx-autobuild==2021.3.14
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# -- Project information -----------------------------------------------------

project = "hmrb"
copyright = "2021, Babylon Health"
copyright = "2022, Babylon Health"
author = "Kristian Boda, Sasho Savkov"

# The short X.Y version
Expand Down
4 changes: 3 additions & 1 deletion docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ Rules and heuristics are often used to kick start a project which has insufficie

Release History
---------------
:Version: ``v1.2.0 (14.05.2021)``
:Version: ``v1.2.1 (25.01.2022)``

``v1.2.0 (14.05.2021)``

``v1.1.1 (25.02.2021)``

Expand Down
2 changes: 1 addition & 1 deletion hmrb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name = "hmrb"
__version__ = "1.2.0"
__version__ = "1.2.1"
__release__ = __version__
1 change: 0 additions & 1 deletion hmrb/node.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import collections
import logging
import operator
from typing import Any, Dict, Callable, Iterator, List, Optional, Tuple, Union
Expand Down
6 changes: 3 additions & 3 deletions hmrb/protobuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def __iadd__(self, other: Any) -> Any:
self.proto_match.span.end = self.span_end
other += self.proto_match.underscore["labels"]
self.proto_match.underscore["labels"].Pack(other.proto_labels)
elif other.Is(pb.Labels.DESCRIPTOR): # type: ignore
elif other.Is(pb.Labels.DESCRIPTOR):
mirror_labels(self.proto_match.underscore["labels"], other)
return self

Expand Down Expand Up @@ -349,7 +349,7 @@ def __init__(self, labels: set, depth: int, length: int = 1):
)

def __iadd__(self, other: Any) -> Any:
if other.Is(pb.Labels.DESCRIPTOR): # type: ignore
if other.Is(pb.Labels.DESCRIPTOR):
other_labels = pb.Labels()
other.Unpack(other_labels)
for key in self.proto_labels.items:
Expand All @@ -368,7 +368,7 @@ def mirror_labels(left: Any, right: Any) -> None:
right_labels = pb.Labels()
if isinstance(right, Labels):
right_labels.CopyFrom(right.proto_labels)
elif right.Is(pb.Labels.DESCRIPTOR): # type: ignore
elif right.Is(pb.Labels.DESCRIPTOR):
right.Unpack(right_labels)
left.Unpack(left_labels)
for key in left_labels.items:
Expand Down
Loading

0 comments on commit ffdec3d

Please sign in to comment.