Skip to content

Commit

Permalink
Merge pull request #138 from OpenRarity/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
snuderl committed Sep 21, 2023
2 parents 3876cd5 + 50630ea commit cc3d314
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
13 changes: 6 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = ["Dan Meshkov <daniil.meshkov@opensea.io>", "Vicky Gong <vicky.gong@op
description = "Open-Rarity library is an open standard that provides an easy, explanable and reproducible computation for NFT rarity"
license = "Apache-2.0"
name = "open-rarity"
version = "0.7.3"
version = "0.7.4"

readme = "README.md"

Expand All @@ -21,12 +21,11 @@ classifiers = [
]

[tool.poetry.dependencies]
numpy = "^1.23.1"
pandas = "^1.4.3"
numpy = ">=1.23.1"
pydantic = ">=1.9.1,<2.3"
python = ">=3.10,<3.12"
requests = "^2.28.1"
scipy = "^1.9.0"
python = ">=3.10,<3.13"
requests = ">=2.28.1"
scipy = ">=1.9.0"

[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
Expand All @@ -39,7 +38,7 @@ pre-commit = "^2.19.0"
pytest = "^7.1"
pytest-cov = "^3.0"
pytest-mock = "^3.10.0"
types-requests = "^2.28.6"
types-requests = ">=2.28.6"

[tool.black]
line-length = 88
Expand Down
12 changes: 12 additions & 0 deletions tests/resolver/test_trait_sniper.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,28 @@ def test_get_ranks_max_page(self):
)
assert len(token_ranks) == 200

@pytest.mark.skipif(
"not config.getoption('--run-resolvers')",
reason="This requires API key",
)
def test_get_ranks_no_more_data(self):
token_ranks = TraitSniperResolver.get_ranks(
contract_address=self.BORED_APE_COLLECTION_ADDRESS, page=51
)
assert len(token_ranks) == 0

@pytest.mark.skipif(
"not config.getoption('--run-resolvers')",
reason="This requires API key",
)
def test_get_ranks_no_contract(self):
token_ranks = TraitSniperResolver.get_ranks(contract_address="0x123", page=1)
assert len(token_ranks) == 0

@pytest.mark.skipif(
"not config.getoption('--run-resolvers')",
reason="This requires API key",
)
def test_get_rank(self):
rank = TraitSniperResolver.get_rank(
collection_slug="boredapeyachtclub",
Expand Down

0 comments on commit cc3d314

Please sign in to comment.