You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ossie.apache.org by jb...@apache.org on 2026/10/02 06:47:25 UTC
(ossie) branch main updated: Add version support for python models (#195)
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ossie.git
The following commit(s) were added to refs/heads/main by this push:
new 3e8c78de Add version support for python models (#195)
3e8c78de is described below
commit 3e8c78de0d775715feb110c4396ad27fe6a3bcda
Author: Yong Zheng <yo...@gmail.com>
AuthorDate: Fri Oct 2 01:47:20 2026 -0500
Add version support for python models (#195)
---
python/src/ossie/__init__.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/python/src/ossie/__init__.py b/python/src/ossie/__init__.py
index d01b36e9..d9c48762 100644
--- a/python/src/ossie/__init__.py
+++ b/python/src/ossie/__init__.py
@@ -15,6 +15,13 @@
# specific language governing permissions and limitations
# under the License.
+from importlib.metadata import version, PackageNotFoundError
+
+try:
+ __version__ = version("apache-ossie")
+except PackageNotFoundError:
+ __version__ = "unknown"
+
from ossie.models import (
OssieAIContext,
OssieAIContextObject,