-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0074f2a
commit fe8c97a
Showing
3 changed files
with
124 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,17 +1,19 @@ | ||
[tool.poetry] | ||
name = "numba-stats" | ||
version = "0.1.0" | ||
version = "0.1.1" | ||
description = "" | ||
authors = ["Hans Dembinski <[email protected]>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
numba = "^0.51" | ||
scipy = "^1.5.0" | ||
pytest-benchmark = "^3.2.3" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^5.2" | ||
pytest-benchmark = "^3.2.3" | ||
requests = "^2.25.1" | ||
toml = "^0.10.2" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
|
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,5 +1,20 @@ | ||
from numba_stats import __version__ | ||
import requests | ||
from pkg_resources import parse_version | ||
from pathlib import Path | ||
import toml | ||
|
||
|
||
def test_version(): | ||
assert __version__ == "0.1.0" | ||
def test_local_against_pypi_version(): | ||
# make sure version is up-to-date | ||
pypi_versions = [ | ||
parse_version(v) | ||
for v in requests.get("https://pypi.org/pypi/iminuit/json").json()["releases"] | ||
] | ||
assert parse_version(__version__) not in pypi_versions, "pypi version exists" | ||
|
||
|
||
def test_poetry_version(): | ||
fn = Path(__file__).parent / ".." / "pyproject.toml" | ||
poetry_version = toml.load(fn)["tool"]["poetry"]["version"] | ||
assert __version__ == poetry_version |