spells-mtg 0.9.3__tar.gz → 0.9.4__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spells-mtg
3
- Version: 0.9.3
3
+ Version: 0.9.4
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.9.3"
14
+ version = "0.9.4"
15
15
 
16
16
  [project.license]
17
17
  text = "MIT"
@@ -28,7 +28,7 @@ build-backend = "pdm.backend"
28
28
  [tool.pdm]
29
29
  distribution = true
30
30
 
31
- [tool.pdm.scripts.upload]
31
+ [tool.pdm.publish.upload]
32
32
  env_file = "$HOME/.pypienv"
33
33
 
34
34
  [tool.pdm.version]
@@ -1,10 +1,12 @@
1
1
  all_sets = [
2
+ "PIO",
2
3
  "FDN",
3
4
  "DSK",
4
5
  "BLB",
5
6
  "MH3",
6
7
  "OTJ",
7
8
  "MKM",
9
+ "KTK",
8
10
  "LCI",
9
11
  "WOE",
10
12
  "LTR",
@@ -19,6 +19,7 @@ from polars.exceptions import ComputeError
19
19
 
20
20
  from spells import cards
21
21
  from spells import cache
22
+ from spells.config import all_sets
22
23
  from spells.enums import View, ColName
23
24
  from spells.schema import schema
24
25
  from spells.draft_data import summon
@@ -49,6 +50,7 @@ def cli() -> int:
49
50
  cache.spells_print("spells", f"[data home]={data_dir}")
50
51
  print()
51
52
  usage = """spells [add|refresh|remove|clean] [set_code]
53
+ spells add all
52
54
  spells clean all
53
55
  spells info
54
56
 
@@ -98,6 +100,10 @@ def cli() -> int:
98
100
 
99
101
 
100
102
  def _add(set_code: str, force_download=False):
103
+ if set_code == 'all':
104
+ for code in all_sets:
105
+ _add(code, force_download=force_download)
106
+
101
107
  download_data_set(set_code, View.DRAFT, force_download=force_download)
102
108
  write_card_file(set_code, force_download=force_download)
103
109
  get_set_context(set_code, force_download=force_download)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes