-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from martinvonk/dev
Update main to v0.3.4
- Loading branch information
Showing
11 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# flake8: noqa | ||
from . import plot, si, utils | ||
from ._version import __version__ | ||
from ._version import __version__, show_versions | ||
from .si import sgi, spei, spi, ssfi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
__version__ = "0.3.3" | ||
from importlib import metadata | ||
from platform import python_version | ||
|
||
__version__ = "0.3.4" | ||
|
||
|
||
def show_versions() -> None: | ||
msg = f"Versions\npython: {python_version()}\nspei: {__version__}\n" | ||
|
||
requirements = metadata.requires("spei") | ||
if requirements: | ||
deps = [x for x in requirements if "extra" not in x] | ||
for dep in deps: | ||
msg += f"{dep}: {metadata.version(dep)}\n" | ||
|
||
print(msg) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from spei.utils import dists_test | ||
from pandas import Series | ||
|
||
from .fixtures import head | ||
from spei.utils import dists_test | ||
|
||
|
||
def test_dists_test(head) -> None: | ||
def test_dists_test(head: Series) -> None: | ||
_ = dists_test(head) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import spei as si | ||
|
||
|
||
def test_version() -> None: | ||
assert isinstance(si.__version__, str) | ||
assert si.__version__.count(".") == 2 | ||
|
||
|
||
def test_show_versions(): | ||
si.show_versions() |