File tree Expand file tree Collapse file tree 6 files changed +12
-7
lines changed
Expand file tree Collapse file tree 6 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 11def fetch_version ():
22 try :
3- import pkg_resources
3+ import importlib
44
5- version = pkg_resources . get_distribution ("policyengine" ).version
5+ return importlib . import_module ("policyengine" ).__version__
66 return version
77 except Exception as e :
88 print (f"Error fetching version: { e } " )
Original file line number Diff line number Diff line change 1919 - name : Set up Python
2020 uses : actions/setup-python@v2
2121 with :
22- python-version : ' 3.10 '
22+ python-version : ' 3.13 '
2323
2424 - name : Install package
2525 run : uv pip install .[dev] --system
Original file line number Diff line number Diff line change 3030 - name : Set up Python
3131 uses : actions/setup-python@v2
3232 with :
33- python-version : ' 3.10 '
33+ python-version : ' 3.13 '
3434
3535 - name : Install package
3636 run : uv pip install .[dev] --system
Original file line number Diff line number Diff line change 1717 - name : Set up Python
1818 uses : actions/setup-python@v2
1919 with :
20- python-version : ' 3.10 '
20+ python-version : ' 3.13 '
2121
2222 - name : Install package
2323 run : uv pip install .[dev] --system
Original file line number Diff line number Diff line change 1+ - bump : patch
2+ changes :
3+ fixed :
4+ - Dependency for `pkg_resources`.
Original file line number Diff line number Diff line change 11import plotly .graph_objects as go
22from IPython .core .display import HTML , display_html
3- import pkg_resources
43
54
65def add_fonts ():
@@ -44,7 +43,9 @@ def add_fonts():
4443
4544
4645def get_version_number (package ):
47- return pkg_resources .get_distribution (package ).version
46+ import importlib
47+
48+ return importlib .import_module (package ).__version__
4849
4950
5051def format_fig (
You can’t perform that action at this time.
0 commit comments