Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package security updates #1201

Merged
merged 14 commits into from
Sep 17, 2024
Merged
6 changes: 3 additions & 3 deletions .github/workflows/google.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ jobs:
os: ubuntu-latest
- name: "macos-py38"
python: "3.8"
os: macos-latest
os: macos-13
- name: "macos-py39"
python: "3.9"
os: macos-latest
os: macos-13
- name: "macos-py310"
python: "3.10"
os: macos-latest
os: macos-13

env:
INVOKE_IS_CI_CD: 1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/hubspot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ jobs:
os: ubuntu-latest
- name: "macos-py38"
python: "3.8"
os: macos-latest
os: macos-13
- name: "macos-py39"
python: "3.9"
os: macos-latest
os: macos-13
- name: "macos-py310"
python: "3.10"
os: macos-latest
os: macos-13

env:
INVOKE_IS_CI_CD: 1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/openai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ jobs:
os: ubuntu-latest
- name: "macos-py38"
python: "3.8"
os: macos-latest
os: macos-13
- name: "macos-py39"
python: "3.9"
os: macos-latest
os: macos-13
- name: "macos-py310"
python: "3.10"
os: macos-latest
os: macos-13

env:
INVOKE_IS_CI_CD: 1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pdf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ jobs:
os: ubuntu-latest
- name: "macos-py38"
python: "3.8"
os: macos-latest
os: macos-13
- name: "macos-py39"
python: "3.9"
os: macos-latest
os: macos-13
- name: "macos-py310"
python: "3.10"
os: macos-latest
os: macos-13

env:
INVOKE_IS_CI_CD: 1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/recognition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ jobs:
os: ubuntu-latest
- name: "macos-py38"
python: "3.8"
os: macos-latest
os: macos-13
- name: "macos-py39"
python: "3.9"
os: macos-latest
os: macos-13
- name: "macos-py310"
python: "3.10"
os: macos-latest
os: macos-13

env:
INVOKE_IS_CI_CD: 1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ jobs:
os: ubuntu-latest
- name: "macos-py38"
python: "3.8"
os: macos-latest
os: macos-13
- name: "macos-py39"
python: "3.9"
os: macos-latest
os: macos-13
- name: "macos-py310"
python: "3.10"
os: macos-latest
os: macos-13

env:
INVOKE_IS_CI_CD: 1
Expand Down
1,154 changes: 626 additions & 528 deletions packages/google/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/google/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ google-cloud-documentai = "^2.0.1"
grpcio = "^1.48.1"

[tool.poetry.group.dev.dependencies]
black = "^22.3.0"
black = "^24.3.0"
flake8 = "^3.7.9"
pylint = "^2.4.4, <2.13"
pytest = "^7.2.0"
Expand Down
1,325 changes: 716 additions & 609 deletions packages/hubspot/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/hubspot/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ tenacity = "^8.0.1"
hubspot-api-client = "^4.0.6"

[tool.poetry.group.dev.dependencies]
black = "^22.3.0"
black = "^24.3.0"
flake8 = "^3.7.9"
pylint = "^2.4.4, <2.13"
pytest = "^7.2.0"
Expand Down
8 changes: 5 additions & 3 deletions packages/hubspot/src/RPA/Hubspot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1506,9 +1506,11 @@ def _get_object_by_batch(
for i, batch in enumerate(batched_ids):
self.logger.debug(f"Executing batch index {i} of batch requests:\n{batch} ")
batch_reader = BatchReadInputSimplePublicObjectId(
properties=properties
if isinstance(properties, list) or properties is None
else [properties],
properties=(
properties
if isinstance(properties, list) or properties is None
else [properties]
),
id_property=id_property,
inputs=[SimplePublicObjectId(o) for o in batch],
)
Expand Down
1,097 changes: 563 additions & 534 deletions packages/main/poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/main/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ netsuitesdk = "^1.1.0"
tweepy = "^3.8.0"
graphviz = "^0.13.2"
notifiers = "^1.3.3"
cryptography = "^42.0.5"
cryptography = "^43.0.1"
mss = "^6.0.0"
chardet = "^3.0.0"
PySocks = ">=1.5.6,!=1.5.7,<2.0.0"
Expand All @@ -91,7 +91,7 @@ pendulum = "^2.1.2"
holidays = "^0.21"

[tool.poetry.group.dev.dependencies]
black = "^22.3.0"
black = "^24.3.0"
flake8 = "^3.7.9"
pylint = "^2.4.4, <2.13"
pytest = "^7.2.0"
Expand Down
8 changes: 5 additions & 3 deletions packages/main/src/RPA/Calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,11 @@ def time_difference(
"days": diff.days,
"hours": diff.hours,
"minutes": diff.minutes,
"seconds": diff.seconds
if abs(diff.seconds) <= 60
else abs(diff.seconds) % 60 * modifier_for_seconds,
"seconds": (
diff.seconds
if abs(diff.seconds) <= 60
else abs(diff.seconds) % 60 * modifier_for_seconds
),
}

@keyword
Expand Down
6 changes: 3 additions & 3 deletions packages/main/src/RPA/Cloud/Azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def _azure_request(
raise KeyError(
"Missing subscription key for service: %s" % service_name
)
request_parameters["headers"][
"Ocp-Apim-Subscription-Key"
] = self.services[service_name]
request_parameters["headers"]["Ocp-Apim-Subscription-Key"] = (
self.services[service_name]
)

request_parameters["headers"]["Content-Type"] = content_type
if filepath:
Expand Down
1 change: 0 additions & 1 deletion packages/main/src/RPA/DocumentAI/DocumentAI.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
- Nanonets
"""


import functools
import logging
from enum import Enum
Expand Down
1 change: 0 additions & 1 deletion packages/main/src/RPA/DocumentAI/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"""Intelligent Document Processing base package."""


from .DocumentAI import DocumentAI
8 changes: 5 additions & 3 deletions packages/main/src/RPA/Email/ImapSmtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1137,9 +1137,11 @@ def list_messages(
if v:
converted.append(
{
str(key): value
if isinstance(value, (str, bool, int, Message))
else str(value)
str(key): (
value
if isinstance(value, (str, bool, int, Message))
else str(value)
)
for key, value in v.items()
}
)
Expand Down
1 change: 0 additions & 1 deletion packages/main/src/RPA/Email/common.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Common utilities shared by any e-mail related library."""


import os
from dataclasses import dataclass
from enum import Enum
Expand Down
7 changes: 3 additions & 4 deletions packages/main/src/RPA/Excel/Files.py
Original file line number Diff line number Diff line change
Expand Up @@ -1723,13 +1723,12 @@ def set_cell_values(
else:
column = start_col + row_index
row = start_row
self.workbook.book.active[
f"{get_column_letter(column)}{row}"
].value = row
self.workbook.book.active[f"{get_column_letter(column)}{row}"].value = (
row
)


class BaseWorkbook:

"""Common logic for both .xls and .xlsx files management."""

def __init__(self, path: Optional[PathType] = None):
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/RPA/FileSystem.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Files and filesystems library for Robot Framework"""

import logging
import os
import platform
Expand Down
6 changes: 3 additions & 3 deletions packages/main/src/RPA/Robocorp/WorkItems.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,9 +1023,9 @@ def _get_email_content(
self, variables: Dict
) -> Optional[Tuple[str, bool, Tuple[str]]]:
# Returns the extracted e-mail [parsed] content and its payload destination.
to_tuple = (
lambda keys: keys if isinstance(keys, tuple) else (keys,)
) # noqa: E731
to_tuple = lambda keys: ( # noqa: E731
keys if isinstance(keys, tuple) else (keys,)
)
file_list = self.list_work_item_files()
for input_keys, output_keys in self._auto_parse_email.items():
input_keys = to_tuple(input_keys)
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/RPA/RobotLogListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
because imports to core package should be done only by
the library itself.
"""

# flake8: noqa
# pylint: disable=unused-import
from RPA.core.logger import RobotLogListener
Loading
Loading