Skip to content

Commit

Permalink
Merge pull request #59 from NREL/58_versioneer
Browse files Browse the repository at this point in the history
Remove versioneer in favor of setuptools_scm.  Fix some deprecation warnings due to numpy.  Add support up to Python 3.11.  Drop Python 3.6 and 3.7 support.
  • Loading branch information
cdeline authored Aug 26, 2024
2 parents 5097f4f + acd2563 commit 8e62a7f
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 2,389 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:

runs-on: ubuntu-latest
strategy:
fail-fast: false # don't cancel other matrix jobs when one fails
fail-fast: true # don't cancel other matrix jobs when one fails
matrix:
python-version: ["3.7"]
python-version: ["3.8", "3.11"]
# Test two environments:
# 1) dependencies with pinned versions from requirements.txt
# 2) 'pip install --upgrade --upgrade-strategy=eager .' to install upgraded
Expand Down
13 changes: 10 additions & 3 deletions bifacialvf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
from bifacialvf.BF_BifacialIrradiances.LandscapeSingleHour import LandscapeSingleHour # For calculateBilInterpol
from bifacialvf.BF_BifacialIrradiances.PortraitSingleHour import PortraitSingleHour # For calculateBilInterpol

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
try:
from importlib.metadata import PackageNotFoundError, version
except ImportError:
# for python < 3.8 (remove when dropping 3.7 support)
from importlib_metadata import PackageNotFoundError, version

try:
__version__ = version(__package__)
except PackageNotFoundError:
__version__ = "0+unknown"
Loading

0 comments on commit 8e62a7f

Please sign in to comment.