Skip to content

Commit

Permalink
v2.0.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
bradchiappetta authored Apr 20, 2023
1 parent 3c6edae commit 9eb3944
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.0.0
current_version = 2.0.1
tag = False
commit = False

Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@
Changelog
=========

Version `2.0.1`_
================
**Date**: April 14, 2023

* API client:

* Updated timeline commands to support 90 day lookback period

* CLI:

* Updated timeline commands to support 90 day lookback period

* Dependencies:

* Updated ansimarkup to version 1.5.0
* Updated dict2xml to version 1.7.3
* Updated itertools to version 9.1.0
* Updated requests to version 2.28.2

Version `2.0.0`_
================
**Date**: February 15, 2023
Expand Down Expand Up @@ -343,3 +362,4 @@ Version `0.2.0`_
.. _`1.2.1`: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v1.2.0...1.2.1
.. _`1.3.0`: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v1.2.1...1.3.0
.. _`2.0.0`: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v1.3.0...HEAD
.. _`2.0.1`: https://github.com/GreyNoise-Intelligence/pygreynoise/compare/v2.0.0...2.0.1
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
author = "GreyNoise Intelligence"

# The full version, including alpha/beta/rc tags
release = "2.0.0"
release = "2.0.1"


# -- General configuration ---------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions requirements/common.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Click==8.1.3
ansimarkup==1.4.0
ansimarkup==1.5.0
cachetools==5.3.0;python_version>='3'
colorama==0.4.6
click-default-group==1.2.2
click-repl==0.2.0
dict2xml==1.7.2;python_version>='3'
dict2xml==1.7.3;python_version>='3'
ipaddress==1.0.23
jinja2==3.1.2;python_version>='3.6'
more-itertools==8.14.0;python_version>='3'
requests==2.28.1
more-itertools==9.1.0;python_version>='3'
requests==2.28.2
six==1.16.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def read(fname):

setup(
name="greynoise",
version="2.0.0",
version="2.0.1",
description="Abstraction to interact with GreyNoise API.",
url="https://greynoise.io/",
author="GreyNoise Intelligence",
Expand Down
2 changes: 1 addition & 1 deletion src/greynoise/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
__maintainer__ = "GreyNoise Intelligence"
__email__ = "hello@greynoise.io"
__status__ = "BETA"
__version__ = "2.0.0"
__version__ = "2.0.1"
6 changes: 3 additions & 3 deletions src/greynoise/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,13 @@ def validate_timeline_days(days):
"""
if isinstance(days, str):
raise ValueError(
"Days must be a valid integer between 1 and 30. Current input is a "
"Days must be a valid integer between 1 and 90. Current input is a "
"string."
)
if isinstance(days, int) and 1 <= int(days) <= 30:
if isinstance(days, int) and 1 <= int(days) <= 90:
return True
else:
raise ValueError("Days must be a valid integer between 1 and 30.")
raise ValueError("Days must be a valid integer between 1 and 90.")


def validate_timeline_granularity(granularity):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,15 +390,15 @@ def test_invalid(self, days):
"""Test invalid values."""
with pytest.raises(ValueError) as exception:
validate_timeline_days(days)
assert str(exception.value) == "Days must be a valid integer between 1 and 30."
assert str(exception.value) == "Days must be a valid integer between 1 and 90."

@pytest.mark.parametrize("days", ("0", "5", "100"))
def test_string(self, days):
"""Test string input values."""
with pytest.raises(ValueError) as exception:
validate_timeline_days(days)
assert (
str(exception.value) == "Days must be a valid integer between 1 and 30. "
str(exception.value) == "Days must be a valid integer between 1 and 90. "
"Current input is a string."
)

Expand Down

0 comments on commit 9eb3944

Please sign in to comment.