Skip to content
Open
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 cmd/commandline/plugin/templates/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dify_plugin>=0.4.0,<0.7.0
dify_plugin>=0.4.0,<0.9.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

For a template used to initialize new plugins, it is recommended to use the canonical package name and a more recent version range for better consistency and reliability.

  1. Naming Consistency: Use dify-plugin (with a hyphen) instead of dify_plugin. While PyPI treats them as equivalent, dify-plugin is the canonical name used elsewhere in this repository (e.g., in the test data) and follows standard Python packaging conventions.
  2. Version Pinning: Consider bumping the lower bound to a more recent stable version (e.g., 0.7.0). Allowing versions as old as 0.4.0 in a new template can lead to compatibility issues if the developer's code relies on features introduced in more recent versions of the SDK. New plugins should generally start with a recent, tested version of their dependencies.
dify-plugin>=0.7.0,<0.9.0