Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dialogflow-cx/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
google-cloud-dialogflow-cx==2.0.0
Flask==3.1.3; python_version >= '3.9'
python-dateutil==2.9.0.post0
python-dateutil==4.0.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Since python-dateutil v4.0.0 requires Python 3.11 or later, upgrading to it unconditionally will break installations on Python 3.10. To support Python 3.10 (while adhering to the rule of not specifying fallback versions for Python versions older than 3.10), we should use environment markers to conditionally install v4.0.0 on Python 3.11+ and fall back to v2.9.0.post0 on Python 3.10.

python-dateutil==4.0.0; python_version >= '3.11'
python-dateutil==2.9.0.post0; python_version == '3.10'
References
  1. Do not specify fallback dependency versions or environment markers for Python versions older than 3.10, as Python versions below 3.10 are no longer supported.

functions-framework==3.9.2
Werkzeug==3.1.9; python_version >= '3.10'
termcolor==3.0.0; python_version >= "3.9"
Expand Down
2 changes: 1 addition & 1 deletion functions/tips-avoid-infinite-retries/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-dateutil==2.9.0.post0
python-dateutil==4.0.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Since python-dateutil v4.0.0 requires Python 3.11 or later, upgrading to it unconditionally will break installations on Python 3.10. To support Python 3.10 (while adhering to the rule of not specifying fallback versions for Python versions older than 3.10), we should use environment markers to conditionally install v4.0.0 on Python 3.11+ and fall back to v2.9.0.post0 on Python 3.10.

python-dateutil==4.0.0; python_version >= '3.11'
python-dateutil==2.9.0.post0; python_version == '3.10'
References
  1. Do not specify fallback dependency versions or environment markers for Python versions older than 3.10, as Python versions below 3.10 are no longer supported.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
functions-framework==3.9.2
python-dateutil==2.9.0.post0
python-dateutil==4.0.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Since python-dateutil v4.0.0 requires Python 3.11 or later, upgrading to it unconditionally will break installations on Python 3.10. To support Python 3.10 (while adhering to the rule of not specifying fallback versions for Python versions older than 3.10), we should use environment markers to conditionally install v4.0.0 on Python 3.11+ and fall back to v2.9.0.post0 on Python 3.10.

python-dateutil==4.0.0; python_version >= '3.11'
python-dateutil==2.9.0.post0; python_version == '3.10'
References
  1. Do not specify fallback dependency versions or environment markers for Python versions older than 3.10, as Python versions below 3.10 are no longer supported.

Loading