Skip to content

Commit

Permalink
Adjust version script
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Oct 16, 2024
1 parent 186da1e commit 3624187
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/fetch_version.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from policyengine_uk_data.__version__ import __version__



def fetch_version():
try:
return __version__
import pkg_resources
version = pkg_resources.get_distribution("policyengine_uk_data").version
return version
except Exception as e:
print(f"Error fetching version: {e}")
return None
Expand Down

0 comments on commit 3624187

Please sign in to comment.