kepler.pulse 0.2.3__tar.gz → 0.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kepler_pulse-0.2.3 → kepler_pulse-0.2.4}/PKG-INFO +1 -1
- {kepler_pulse-0.2.3 → kepler_pulse-0.2.4}/pyproject.toml +1 -1
- {kepler_pulse-0.2.3 → kepler_pulse-0.2.4}/src/kepler/pulse/__init__.py +5 -1
- {kepler_pulse-0.2.3 → kepler_pulse-0.2.4}/.claude/settings.local.json +0 -0
- {kepler_pulse-0.2.3 → kepler_pulse-0.2.4}/.gitignore +0 -0
- {kepler_pulse-0.2.3 → kepler_pulse-0.2.4}/LICENSE +0 -0
- {kepler_pulse-0.2.3 → kepler_pulse-0.2.4}/README.md +0 -0
- {kepler_pulse-0.2.3 → kepler_pulse-0.2.4}/USAGE.md +0 -0
- {kepler_pulse-0.2.3 → kepler_pulse-0.2.4}/src/kepler/pulse/config.py +0 -0
- {kepler_pulse-0.2.3 → kepler_pulse-0.2.4}/src/kepler/pulse/core/__init__.py +0 -0
- {kepler_pulse-0.2.3 → kepler_pulse-0.2.4}/src/kepler/pulse/core/trading_calendar.py +0 -0
- {kepler_pulse-0.2.3 → kepler_pulse-0.2.4}/src/kepler/pulse/utils.py +0 -0
|
@@ -25,8 +25,12 @@ Examples:
|
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
27
|
from .core.trading_calendar import Calendar, CalendarError
|
|
28
|
+
from importlib import metadata
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
try:
|
|
31
|
+
__version__ = metadata.version("kepler.pulse")
|
|
32
|
+
except metadata.PackageNotFoundError: # 未安装时(直接从源码目录导入)
|
|
33
|
+
__version__ = "unknown"
|
|
30
34
|
__author__ = 'liubola'
|
|
31
35
|
|
|
32
36
|
__all__ = [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|