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 d5388d5 commit 753134e
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
Expand Up @@ -2,11 +2,9 @@

from setuptools import setup, find_packages

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

version = gempy.__version__


def read_requirements(file_name):
Expand Down

0 comments on commit 753134e

Please sign in to comment.