Skip to content

Commit

Permalink
loosen dependency versions (#143)
Browse files Browse the repository at this point in the history
* loosen dependency versions

* Fixed the security check failure

-> Vulnerability found in black version 22.12.0
   Vulnerability ID: 66742
   Affected spec: <24.3.0
   ADVISORY: Black before 24.3.0 have a security vulnerability where
   specific code formatting patterns could lead to arbitrary code execution.
   This issue arises from the unsafe handling of AST nodes, potentially allowing
   an attacker to execute code when Black formats a maliciously crafted Python
   file.
   psf/black@f000936
   CVE-2024-21503
   For more information, please visit
   https://data.safetycli.com/v/66742/f17

 Scan was completed. 1 vulnerability was found. 1 vulnerability from 1 package
 was ignored.

* Files reformatted

Files are reformatted due to black upgrading.

* updated python versions

* dropped 3.12
  • Loading branch information
ddl-joyce-zhao authored Apr 19, 2024
1 parent cecd0ac commit 9097d0a
Show file tree
Hide file tree
Showing 18 changed files with 621 additions and 706 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions datasource_api_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
""" A client library for accessing Datasource API """

from .client import AuthenticatedClient, Client
1 change: 1 addition & 0 deletions datasource_api_client/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Contains some shared types for properties """

from typing import BinaryIO, Generic, MutableMapping, Optional, Tuple, TypeVar

import attr
Expand Down
1 change: 1 addition & 0 deletions domino_data/_feature_store/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Feature Store module."""

from typing import Any, List, Optional, cast

import json
Expand Down
1 change: 1 addition & 0 deletions domino_data/_feature_store/run.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Containing script to sync feature store from feast to domino"""

import argparse
import sys

Expand Down
1 change: 1 addition & 0 deletions domino_data/configuration_gen.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Code generated by gen.py; DO NOT EDIT.
This file was generated by robots at
2024-01-18 15:51:53.230967"""

from typing import Any, Dict, Optional, Union

from enum import Enum
Expand Down
1 change: 1 addition & 0 deletions domino_data/data_sources.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Datasource module."""

from typing import Any, Dict, List, Optional, cast

import configparser
Expand Down
1 change: 0 additions & 1 deletion domino_data/training_sets/client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Domino TrainingSet client library."""


from typing import List, Mapping, Optional

import json
Expand Down
1 change: 1 addition & 0 deletions feature_store_api_client/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions feature_store_api_client/types.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,247 changes: 575 additions & 672 deletions poetry.lock

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,27 @@ classifiers = [ #! Update me
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]

[tool.poetry.dependencies]
python = "^3.8"
pandas = "^1.3.0"
httpx = "^0.23.0"
python = "^3.9"
pandas = ">=1.3.0"
httpx = ">=0.23.0"
attrs = ">=20.1.0"
python-dateutil = "^2.8.0"
pyarrow = "^14.0.2"
loguru = "^0.5.3"
backoff = "^1.11.1"
backoff = ">=1.11.1"
bson = "^0.5.10"
urllib3 = "^1.26.16"

[tool.poetry.group.dev.dependencies]
Sphinx = "^5.3.0"
bandit = "^1.7.5"
black = {version = "^22.12.0", allow-prereleases = true}
black = {version = "^24.3.0", allow-prereleases = true}
darglint = "^1.8.1"
flake8 = "^4.0.1"
grpcio = "^1.56.2"
Expand Down Expand Up @@ -87,7 +87,7 @@ pinecone-client = "^2.2.4"

[tool.black]
# https://github.com/psf/black
target-version = ["py38"]
target-version = ["py39"]
line-length = 100
color = true

Expand All @@ -109,7 +109,7 @@ exclude = '''

[tool.isort]
# https://github.com/timothycrosley/isort/
py_version = 38
py_version = 39
line_length = 100

known_typing = ["typing", "types", "typing_extensions", "mypy", "mypy_extensions"]
Expand All @@ -124,7 +124,7 @@ color_output = true
[tool.mypy]
# mypy configurations: https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file
exclude = 'datasource_api_client/|domino_data/training_sets/|.venv/|tests/|dist/'
python_version = 3.8
python_version = 3.9
pretty = true
show_traceback = true
color_output = true
Expand Down
46 changes: 23 additions & 23 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
anyio==4.3.0 ; python_version >= "3.8" and python_version < "4.0"
attrs==23.2.0 ; python_version >= "3.8" and python_version < "4.0"
backoff==1.11.1 ; python_version >= "3.8" and python_version < "4.0"
bson==0.5.10 ; python_version >= "3.8" and python_version < "4.0"
certifi==2024.2.2 ; python_version >= "3.8" and python_version < "4.0"
colorama==0.4.6 ; python_version >= "3.8" and python_version < "4.0" and sys_platform == "win32"
exceptiongroup==1.2.0 ; python_version >= "3.8" and python_version < "3.11"
h11==0.14.0 ; python_version >= "3.8" and python_version < "4.0"
httpcore==0.16.3 ; python_version >= "3.8" and python_version < "4.0"
httpx==0.23.3 ; python_version >= "3.8" and python_version < "4.0"
idna==3.6 ; python_version >= "3.8" and python_version < "4.0"
loguru==0.5.3 ; python_version >= "3.8" and python_version < "4.0"
numpy==1.24.4 ; python_version >= "3.8" and python_version < "4.0"
pandas==1.5.3 ; python_version >= "3.8" and python_version < "4.0"
pyarrow==14.0.2 ; python_version >= "3.8" and python_version < "4.0"
python-dateutil==2.9.0.post0 ; python_version >= "3.8" and python_version < "4.0"
pytz==2024.1 ; python_version >= "3.8" and python_version < "4.0"
rfc3986[idna2008]==1.5.0 ; python_version >= "3.8" and python_version < "4.0"
six==1.16.0 ; python_version >= "3.8" and python_version < "4.0"
sniffio==1.3.1 ; python_version >= "3.8" and python_version < "4.0"
typing-extensions==4.10.0 ; python_version >= "3.8" and python_version < "3.11"
urllib3==1.26.18 ; python_version >= "3.8" and python_version < "4.0"
win32-setctime==1.1.0 ; python_version >= "3.8" and python_version < "4.0" and sys_platform == "win32"
anyio==4.3.0 ; python_version >= "3.9" and python_version < "4.0"
attrs==23.2.0 ; python_version >= "3.9" and python_version < "4.0"
backoff==2.2.1 ; python_version >= "3.9" and python_version < "4.0"
bson==0.5.10 ; python_version >= "3.9" and python_version < "4.0"
certifi==2024.2.2 ; python_version >= "3.9" and python_version < "4.0"
colorama==0.4.6 ; python_version >= "3.9" and python_version < "4.0" and sys_platform == "win32"
exceptiongroup==1.2.1 ; python_version >= "3.9" and python_version < "3.11"
h11==0.14.0 ; python_version >= "3.9" and python_version < "4.0"
httpcore==1.0.5 ; python_version >= "3.9" and python_version < "4.0"
httpx==0.27.0 ; python_version >= "3.9" and python_version < "4.0"
idna==3.7 ; python_version >= "3.9" and python_version < "4.0"
loguru==0.5.3 ; python_version >= "3.9" and python_version < "4.0"
numpy==1.24.4 ; python_version >= "3.9" and python_version < "4.0"
pandas==2.2.2 ; python_version >= "3.9" and python_version < "4.0"
pyarrow==14.0.2 ; python_version >= "3.9" and python_version < "4.0"
python-dateutil==2.9.0.post0 ; python_version >= "3.9" and python_version < "4.0"
pytz==2024.1 ; python_version >= "3.9" and python_version < "4.0"
six==1.16.0 ; python_version >= "3.9" and python_version < "4.0"
sniffio==1.3.1 ; python_version >= "3.9" and python_version < "4.0"
typing-extensions==4.11.0 ; python_version >= "3.9" and python_version < "3.11"
tzdata==2024.1 ; python_version >= "3.9" and python_version < "4.0"
urllib3==1.26.18 ; python_version >= "3.9" and python_version < "4.0"
win32-setctime==1.1.0 ; python_version >= "3.9" and python_version < "4.0" and sys_platform == "win32"
1 change: 1 addition & 0 deletions scripts/gen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Generator for Datasource Enums and Config entities."""

from typing import Any, Dict

import argparse
Expand Down
1 change: 1 addition & 0 deletions tests/feature_store/test_git.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test feature store git operations"""

from unittest.mock import MagicMock

import pytest as pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_vectordb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Domino customized Pinecone OpenAPI Configuration"""

import os

from domino_data.vectordb import (
Expand Down
1 change: 1 addition & 0 deletions training_set_api_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
""" A client library for accessing TrainingSet API """

from .client import AuthenticatedClient, Client
1 change: 1 addition & 0 deletions training_set_api_client/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Contains some shared types for properties """

from typing import BinaryIO, Generic, MutableMapping, Optional, TextIO, Tuple, TypeVar, Union

import attr
Expand Down

0 comments on commit 9097d0a

Please sign in to comment.