[PR #535] feat: add __version__ and __all__ exports to package #617

Open
opened 2026-10-27 21:04:35 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/DeepEP/pull/535
Author: @yurekami
Created: 12/25/2025
Status: 🔄 Open

Base: main ← Head: feat/add-version-and-all-exports


📝 Commits (1)

  • 49fa81a feat: add version and all exports to package

📊 Changes

1 file changed (+15 additions, -0 deletions)

View changed files

📝 deep_ep/__init__.py (+15 -0)

📄 Description

Summary

This PR improves the DeepEP package interface by adding standard Python package attributes.

Changes

1. Added __version__ attribute:

>>> import deep_ep
>>> deep_ep.__version__
'1.2.1'
  • Allows programmatic version checking
  • Matches the version in setup.py
  • Useful for debugging and compatibility checks

2. Added __all__ list:

__all__ = [
    "Buffer",
    "EventOverlap", 
    "Config",
    "topk_idx_t",
    "__version__",
]
  • Explicitly defines the public API
  • Enables proper from deep_ep import * behavior
  • Documents which symbols are considered public

Benefits

  • Better IDE autocompletion and type hints
  • Clearer public API documentation
  • Standard Python packaging practice (PEP 8)
  • Easier version checking in user code:
    import deep_ep
    if deep_ep.__version__ < "1.2.0":
        print("Please upgrade DeepEP")
    

Test plan

  • Python syntax validation passes
  • No changes to existing functionality
  • Import test: python -c "from deep_ep import __version__, __all__; print(__version__, __all__)"

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/deepseek-ai/DeepEP/pull/535 **Author:** [@yurekami](https://github.com/yurekami) **Created:** 12/25/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/add-version-and-all-exports` --- ### 📝 Commits (1) - [`49fa81a`](https://github.com/deepseek-ai/DeepEP/commit/49fa81a0021dd706220d86cdf691b3f085b049e0) feat: add __version__ and __all__ exports to package ### 📊 Changes **1 file changed** (+15 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `deep_ep/__init__.py` (+15 -0) </details> ### 📄 Description ## Summary This PR improves the DeepEP package interface by adding standard Python package attributes. ### Changes **1. Added `__version__` attribute:** ```python >>> import deep_ep >>> deep_ep.__version__ '1.2.1' ``` - Allows programmatic version checking - Matches the version in `setup.py` - Useful for debugging and compatibility checks **2. Added `__all__` list:** ```python __all__ = [ "Buffer", "EventOverlap", "Config", "topk_idx_t", "__version__", ] ``` - Explicitly defines the public API - Enables proper `from deep_ep import *` behavior - Documents which symbols are considered public ### Benefits - Better IDE autocompletion and type hints - Clearer public API documentation - Standard Python packaging practice (PEP 8) - Easier version checking in user code: ```python import deep_ep if deep_ep.__version__ < "1.2.0": print("Please upgrade DeepEP") ``` ## Test plan - [x] Python syntax validation passes - [x] No changes to existing functionality - [ ] Import test: `python -c "from deep_ep import __version__, __all__; print(__version__, __all__)"` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepEP#617
No description provided.