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 b7d708f commit 7e859f0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# setup.py for gempy_viewer. Requierements are numpy and matplotlib

from setuptools import setup, find_packages
import gempy


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


def read_requirements(file_name):
Expand Down

0 comments on commit 7e859f0

Please sign in to comment.