Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove versioneer in favor of setuptools_scm #59

Merged
merged 10 commits into from
Aug 26, 2024
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
Loading