spells-mtg 0.11.6__tar.gz → 0.11.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of spells-mtg might be problematic. Click here for more details.

Files changed (25) hide show
  1. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/PKG-INFO +1 -1
  2. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/pyproject.toml +1 -1
  3. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/card_data_files.py +1 -0
  4. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/config.py +1 -0
  5. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/draft_data.py +16 -11
  6. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/LICENSE +0 -0
  7. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/README.md +0 -0
  8. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/.ruff_cache/.gitignore +0 -0
  9. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/.ruff_cache/0.8.6/17785301476771359756 +0 -0
  10. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/.ruff_cache/CACHEDIR.TAG +0 -0
  11. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/__init__.py +0 -0
  12. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/cache.py +0 -0
  13. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/cards.py +0 -0
  14. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/columns.py +0 -0
  15. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/enums.py +0 -0
  16. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/extension.py +0 -0
  17. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/external.py +0 -0
  18. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/filter.py +0 -0
  19. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/log.py +0 -0
  20. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/manifest.py +0 -0
  21. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/schema.py +0 -0
  22. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/spells/utils.py +0 -0
  23. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/tests/__init__.py +0 -0
  24. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/tests/filter_test.py +0 -0
  25. {spells_mtg-0.11.6 → spells_mtg-0.11.8}/tests/utils_test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spells-mtg
3
- Version: 0.11.6
3
+ Version: 0.11.8
4
4
  Summary: analaysis of 17Lands.com public datasets
5
5
  Author-Email: Joel Barnes <oelarnes@gmail.com>
6
6
  License: MIT
@@ -11,7 +11,7 @@ dependencies = [
11
11
  ]
12
12
  requires-python = ">=3.11"
13
13
  readme = "README.md"
14
- version = "0.11.6"
14
+ version = "0.11.8"
15
15
 
16
16
  [project.license]
17
17
  text = "MIT"
@@ -22,6 +22,7 @@ START_DATE_MAP = {
22
22
  "DFT": dt.date(2025, 2, 11),
23
23
  "TDM": dt.date(2025, 4, 8),
24
24
  "FIN": dt.date(2025, 6, 10),
25
+ "EOE": dt.date(2025, 7, 29),
25
26
  }
26
27
 
27
28
  ratings_col_defs = {
@@ -1,4 +1,5 @@
1
1
  all_sets = [
2
+ "FIN",
2
3
  "TDM",
3
4
  "DFT",
4
5
  "PIO",
@@ -49,20 +49,25 @@ def _cache_key(args) -> str:
49
49
  @functools.lru_cache(maxsize=None)
50
50
  def get_names(set_code: str) -> list[str]:
51
51
  card_fp = cache.data_file_path(set_code, View.CARD)
52
- card_view = pl.read_parquet(card_fp)
53
- card_names_set = frozenset(card_view.get_column("name").to_list())
52
+ try:
53
+ card_view = pl.read_parquet(card_fp)
54
+ card_names_set = frozenset(card_view.get_column("name").to_list())
54
55
 
55
- draft_fp = cache.data_file_path(set_code, View.DRAFT)
56
- draft_view = pl.scan_parquet(draft_fp)
57
- cols = draft_view.collect_schema().names()
56
+ draft_fp = cache.data_file_path(set_code, View.DRAFT)
57
+ draft_view = pl.scan_parquet(draft_fp)
58
+ cols = draft_view.collect_schema().names()
58
59
 
59
- prefix = "pack_card_"
60
- names = [col[len(prefix) :] for col in cols if col.startswith(prefix)]
61
- draft_names_set = frozenset(names)
60
+ prefix = "pack_card_"
61
+ names = [col[len(prefix) :] for col in cols if col.startswith(prefix)]
62
+ draft_names_set = frozenset(names)
63
+
64
+ assert (
65
+ draft_names_set == card_names_set
66
+ ), "names mismatch between card and draft file"
67
+ except FileNotFoundError:
68
+ ratings_data = base_ratings_df(set_code)
69
+ names = list(ratings_data['name'])
62
70
 
63
- assert (
64
- draft_names_set == card_names_set
65
- ), "names mismatch between card and draft file"
66
71
  return names
67
72
 
68
73
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes