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

loosen dependency versions #143

Merged

Conversation

ddl-joyce-zhao
Copy link
Contributor

@ddl-joyce-zhao ddl-joyce-zhao commented Apr 17, 2024

Description

Loosen several dependency libraries' versions.

Related Issue

https://dominodatalab.atlassian.net/browse/DOM-55190

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🔧 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix

Checklist

  • I've read the CONTRIBUTING.md guide.
  • I've updated the code style using make codestyle.
  • I've written tests for all new methods and classes that I created.
  • I've written the docstring in Google format for all the methods and classes that I used.

Copy link

github-actions bot commented Apr 17, 2024

✅ Result of Pytest Coverage

---------- coverage: platform linux, python 3.10.14-final-0 ----------

Name Stmts Miss Cover
domino_data/init.py 7 2 71%
domino_data/_feature_store/init.py 0 0 100%
domino_data/_feature_store/client.py 41 3 93%
domino_data/_feature_store/exceptions.py 9 0 100%
domino_data/_feature_store/git.py 43 1 98%
domino_data/_feature_store/logging.py 7 0 100%
domino_data/_feature_store/run.py 16 16 0%
domino_data/_feature_store/sync.py 98 9 91%
domino_data/auth.py 91 13 86%
domino_data/configuration_gen.py 232 0 100%
domino_data/data_sources.py 290 24 92%
domino_data/logging.py 10 0 100%
domino_data/meta.py 22 0 100%
domino_data/training_sets/init.py 0 0 100%
domino_data/training_sets/client.py 126 10 92%
domino_data/training_sets/model.py 42 0 100%
domino_data/transfer.py 37 0 100%
domino_data/vectordb.py 23 4 83%
TOTAL 1094 82 93%

~ 67 passed in 16.73s ~

-> 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 are reformatted due to black upgrading.
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}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgraded to remove the vulnerability CVE-2024-21503

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"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upgraded to handle the conflicts with cohere==4.0 https://dominodatalab.atlassian.net/browse/DOM-56097

@@ -42,20 +42,20 @@ classifiers = [ #! Update me

[tool.poetry.dependencies]
python = "^3.8"
pandas = "^1.3.0"
httpx = "^0.23.0"
pandas = ">=1.3.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upgraded as per the users' request

pandas = "^1.3.0"
httpx = "^0.23.0"
pandas = ">=1.3.0"
httpx = ">=0.23.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upgraded to handle the conflicts with cohere==4.0 https://dominodatalab.atlassian.net/browse/DOM-56097

@@ -1,2 +1,3 @@
""" A client library for accessing Datasource API """

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The files are reformatted after black is upgraded.

@ddl-joyce-zhao ddl-joyce-zhao marked this pull request as ready for review April 17, 2024 20:31
@ddl-joyce-zhao ddl-joyce-zhao requested review from a team and ddl-gabrielhaim April 17, 2024 20:31
@@ -35,13 +35,14 @@ classifiers = [ #! Update me
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped Python 3.8 cause it's dropped in the latest Feast. We need to the latest Feast for Pandas 2 compatibility. Also the Python 3.8 security support ends in 6 month(Oct 2024).
https://endoflife.date/python

@ddl-joyce-zhao ddl-joyce-zhao merged commit 9097d0a into main Apr 19, 2024
7 checks passed
@ddl-joyce-zhao ddl-joyce-zhao deleted the ddl-joyce-zhao.DOM-55190.loosen-dependency-version branch April 19, 2024 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants