Skip to content

Commit

Permalink
[META] Fixed reading gempy version from gempy
Browse files Browse the repository at this point in the history
  • Loading branch information
Leguark committed Nov 22, 2023
1 parent f3f94b9 commit dbb5f24
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# setup.py for gempy_viewer. Requierements are numpy and matplotlib

from setuptools import setup, find_packages
import gempy

version = gempy.__version__

with open("gempy_probability/__init__.py", "r") as f:
for line in f:
if line.startswith("__version__"):
version = line.split("=")[1].strip().strip("'")
break


def read_requirements(file_name):
Expand Down

0 comments on commit dbb5f24

Please sign in to comment.