Add __version__ (#312) · pythonnet/pythonnet@a330330 · GitHub
Skip to content

Commit a330330

Browse files
authored
Add __version__ (#312)
* Add Version to CLR module Ideally we would implement `__version__` as a property, but this requires `ModuleFunctionAttribute` to work. Since version is being implemented as a function, using `Version()` instead since __version__ is expected to be a property. * Implement __version__ on clr module
1 parent 2b80bec commit a330330

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/runtime/pythonengine.cs

Lines changed: 1 addition & 1 deletion

src/runtime/resources/clr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
"""
1+
"""
22
Code in this module gets loaded into the main clr module.
33
"""
44

5+
__version__ = "2.2.0"
6+
57

68
class clrproperty(object):
79
"""

src/tests/test_module.py

Lines changed: 4 additions & 0 deletions

0 commit comments

Comments
 (0)