-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for pandas 2, dropped support for python 3.8 (#50)
* added pandas 2, bumped min python to 3.9 * bumped version * black reformat * exclude ellipsis coverage * add python 3.11 tests * fixed ellipsis exclusion, don't fail fast on tests
- Loading branch information
Showing
8 changed files
with
826 additions
and
693 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
[flake8] | ||
ignore = | ||
E501, # line too long (we have to break this to preserve long links) | ||
E203, # whitespace before ':' (ignore to stay compatible with black) | ||
W503, # line break before binary operator | ||
# line too long (we have to break this to preserve long links) | ||
E501, | ||
# whitespace before ':' (ignore to stay compatible with black) | ||
E203, | ||
# line break before binary operator | ||
W503, | ||
max-line-length = 88 |
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
Large diffs are not rendered by default.
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,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "pyextremes" | ||
version = "2.2.7" | ||
version = "2.3.0" | ||
description = "Extreme Value Analysis (EVA) in Python" | ||
license = "MIT" | ||
authors = ["George Bocharov <[email protected]>"] | ||
|
@@ -24,8 +24,8 @@ classifiers=[ | |
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Hydrology", | ||
"Topic :: Scientific/Engineering :: Mathematics", | ||
|
@@ -40,10 +40,10 @@ include = [ | |
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
python = "^3.9" | ||
numpy = "^1.19.0" | ||
scipy = "^1.5.0" | ||
pandas = "^1.0.0" | ||
pandas = ">=1.0.0,<3.0.0" | ||
emcee = "^3.0.3" | ||
matplotlib = "^3.3.0" | ||
tqdm = { version = "^4.0.0", optional = true } | ||
|
@@ -52,24 +52,24 @@ tqdm = { version = "^4.0.0", optional = true } | |
full = ["tqdm"] | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pre-commit = "^2.20.0" | ||
pre-commit = "^3.2.2" | ||
|
||
[tool.poetry.group.lint.dependencies] | ||
black = "^22.8.0" | ||
pylint = "^2.15.3" | ||
flake8 = "^5.0.4" | ||
mypy = "^0.981" | ||
isort = "^5.10.1" | ||
black = "^23.0.0" | ||
pylint = "^2.0.0" | ||
flake8 = "^6.0.0" | ||
mypy = "^1.0.0" | ||
isort = "^5.0.0" | ||
|
||
[tool.poetry.group.test.dependencies] | ||
pytest = "^7.1.3" | ||
pytest = "^7.0.0" | ||
pytest-cov = "^4.0.0" | ||
|
||
[tool.poetry.group.docs.dependencies] | ||
mkdocs = "^1.4.0" | ||
mkdocs-material = "^8.5.3" | ||
mkdocs-material-extensions = "^1.0.3" | ||
mkdocstrings = { version = "^0.19.1", extras = ["python"]} | ||
mkdocs = "^1.4.2" | ||
mkdocs-material = "^9.1.6" | ||
mkdocs-material-extensions = "^1.1.1" | ||
mkdocstrings = { version = "^0.20.0", extras = ["python"]} | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
|
@@ -118,6 +118,7 @@ exclude_lines = [ | |
'raise NotImplementedError', | ||
'if __name__ == .__main__.:', | ||
'def __repr__', | ||
' ...', | ||
] | ||
fail_under = 90 | ||
precision = 1 | ||
|
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 @@ | ||
__version__ = "2.2.7" | ||
__version__ = "2.3.0" | ||
__all__ = [ | ||
"EVA", | ||
"get_extremes", | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
|
||
|
||
class Distribution: | ||
|
||
__slots__ = [ | ||
"extremes", | ||
"distribution", | ||
|
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