Skip to content

Commit

Permalink
fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Nov 19, 2021
1 parent e850c42 commit 22312b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from setuptools import setup
from setuptools.config import read_configuration

################################################################################
# Programmatically generate some extras combos.
################################################################################
##############################################
# Programmatically generate some extras combos
##############################################
extras = read_configuration("setup.cfg")["options"]["extras_require"]

# Dev is everything
Expand Down
8 changes: 3 additions & 5 deletions sunraster/_dev/scm_version.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Try to use setuptools_scm to get the current version; this is only used
# in development installations from the git repository.
import os.path
import os.path as pth

try:
from setuptools_scm import get_version

version = get_version(root=os.path.join("..", ".."), relative_to=__file__)
except ImportError:
raise ImportError("setuptools_scm not installed")
version = get_version(root=pth.join("..", ".."), relative_to=__file__)
except Exception as e:
raise ValueError(f"setuptools_scm broken with {e}")
raise ImportError(f"setuptools_scm broken or not installed, {e}")

0 comments on commit 22312b6

Please sign in to comment.