tradedangerous 12.0.2__py3-none-any.whl → 12.0.4__py3-none-any.whl

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 tradedangerous might be problematic. Click here for more details.

tradedangerous/cache.py CHANGED
@@ -586,23 +586,30 @@ def processPrices(
586
586
  nonlocal newItems, updtItems, ignItems
587
587
  itemName, modified = matches.group('item', 'time')
588
588
  itemName = itemName.upper()
589
-
589
+
590
590
  # Look up the item ID.
591
591
  itemID = getItemID(itemName, -1)
592
592
  if itemID < 0:
593
593
  oldName = itemName
594
594
  itemName = corrections.correctItem(itemName)
595
- if itemName == DELETED:
595
+
596
+ # Silently skip DELETED items
597
+ if itemName == corrections.DELETED:
596
598
  DEBUG1("DELETED {}", oldName)
597
599
  return
600
+
601
+ # Retry with corrected name
598
602
  itemName = itemName.upper()
599
603
  itemID = getItemID(itemName, -1)
604
+
600
605
  if itemID < 0:
601
606
  ignoreOrWarn(
602
607
  UnknownItemError(priceFile, lineNo, itemName)
603
608
  )
604
609
  return
610
+
605
611
  DEBUG1("Renamed {} -> {}", oldName, itemName)
612
+
606
613
 
607
614
  lastModified = stationItemDates.get(itemID, None)
608
615
  if lastModified and merging:
@@ -976,12 +983,19 @@ def processImportFile(
976
983
  if deprecationFn:
977
984
  try:
978
985
  deprecationFn(importPath, lineNo, linein)
979
- except (DeprecatedKeyError, DeletedKeyError) as e:
986
+ except DeletedKeyError as e:
980
987
  if not tdenv.ignoreUnknown:
981
988
  raise e
982
989
  e.category = "WARNING"
983
990
  tdenv.NOTE("{}", e)
984
991
  continue
992
+ except DeprecatedKeyError as e:
993
+ if not tdenv.ignoreUnknown:
994
+ raise e
995
+ e.category = "WARNING"
996
+ tdenv.NOTE("{}", e)
997
+ # Do NOT skip — correction is available
998
+
985
999
 
986
1000
  # Build values aligned to activeColumns (skip the FK columns we excluded)
987
1001
  activeValues = [linein[i] for i in kept_indices]
tradedangerous/version.py CHANGED
@@ -12,5 +12,5 @@
12
12
  """just keeper of current version"""
13
13
 
14
14
  # TODO: remember to update tests when version changes
15
- __version__ = '12.0.2'
15
+ __version__ = '12.0.4'
16
16
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tradedangerous
3
- Version: 12.0.2
3
+ Version: 12.0.4
4
4
  Summary: Trade-Dangerous is a set of powerful trading tools for Elite Dangerous, organized around one of the most powerful trade run optimizers available.
5
5
  Home-page: https://github.com/eyeonus/Trade-Dangerous
6
6
  Author: eyeonus
@@ -22,8 +22,10 @@ Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  Requires-Dist: requests
24
24
  Requires-Dist: appJar
25
- Requires-Dist: ijson
26
- Requires-Dist: rich
25
+ Requires-Dist: ijson>=3.1
26
+ Requires-Dist: rich==13.7.1
27
+ Requires-Dist: importlib-metadata>=1
28
+ Requires-Dist: sqlalchemy<3.0,>=2.0
27
29
  Dynamic: author
28
30
  Dynamic: author-email
29
31
  Dynamic: classifier
@@ -1,7 +1,7 @@
1
1
  trade.py,sha256=Skqy0bC47g1KujuYrVwa3T8AfJ9NoLLOZcVjjxJ2daQ,1769
2
2
  tradegui.py,sha256=q2HdIdoyeLUpeF2X0hVIGn7sU6T4zOzq1HN0zGvZdyE,788
3
3
  tradedangerous/__init__.py,sha256=bwsbE_GyCNsuyGDKnfXAg0RD-ewsWHliySJ5QfCK7h8,1166
4
- tradedangerous/cache.py,sha256=fhnEzE2g4999sMI6JowTKYZj1epgsUdLZFjLBKKgsKQ,43829
4
+ tradedangerous/cache.py,sha256=iLtrnxvP_0Bjk0pBOSi3uc54dDkvFEggG5N7fCyqUpc,44172
5
5
  tradedangerous/cli.py,sha256=aTZf6N7BD_G99r43n58xDSYH4gmvz0CBRU6vAgS3__4,4561
6
6
  tradedangerous/corrections.py,sha256=_WLgo1IBWoskrrPFeshRwCOeJ2BeJb_x4tDQ0JdAo-s,1340
7
7
  tradedangerous/csvexport.py,sha256=bwDcFKYPe-qdEG0HJONJ5Ij8PTphAD1mBOi_kK4nXSo,7970
@@ -20,7 +20,7 @@ tradedangerous/tradeenv.py,sha256=JA0yMStJ_zfLGHT2yxuY0s1cBvQz1ztL1zTYJslMZJk,12
20
20
  tradedangerous/tradeexcept.py,sha256=aZ-Y31MbkjF7lmAzBAbaMsPPE7FEEfuf4gaX2GvriDk,368
21
21
  tradedangerous/transfers.py,sha256=t_0Sjr4FI9lhIPwyPOXdR8d97bE611ujbKK4ioWShm0,6024
22
22
  tradedangerous/utils.py,sha256=PUPvAEqUyxYGqqQa0b_yfLAvq8YVUxK6HfdS-CxM-Lo,5186
23
- tradedangerous/version.py,sha256=gpJrI9RqdPX6fJtGRmHEjgBQF6D2dTz7VBGzWAJajiw,646
23
+ tradedangerous/version.py,sha256=Xa6SxmkR76UsQCNJCwptugouGROmNqEHSHBPCM5KhrY,646
24
24
  tradedangerous/commands/TEMPLATE.py,sha256=seMXDN_Nf_Rvj_5BivI-0yhVT6W9iRDihr5yo8kr5qw,2069
25
25
  tradedangerous/commands/__init__.py,sha256=UvcWgcr_PVScbJ6R83iaUb2_4Ttmft85HYexTFo7FwU,9171
26
26
  tradedangerous/commands/buildcache_cmd.py,sha256=6CkmoDYthECkMcu5I3Ljyis42yy-bnUcllAlSF-Xwi8,3318
@@ -75,9 +75,9 @@ tradedangerous/templates/Added.csv,sha256=8o54civQCcS9y7_DBo0GX196XWRbbREQqKDYTK
75
75
  tradedangerous/templates/Category.csv,sha256=8xwUDcBZE25T6x6dZGlRUMTCqeDLt3a9LXU5h6hRHV8,250
76
76
  tradedangerous/templates/RareItem.csv,sha256=F1RhRnTD82PiwrVUO-ai2ErGH2PTqNnQaDw5mcgljXs,10483
77
77
  tradedangerous/templates/TradeDangerous.sql,sha256=pCw2Js8GQniqAWC6N3SL-ujyqlLYCeR2-SI-qhk6VsI,9336
78
- tradedangerous-12.0.2.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
79
- tradedangerous-12.0.2.dist-info/METADATA,sha256=ErwIIUz3gcGomJRuCso4oWTMeKHqc2BTeV-uszwM5nU,4787
80
- tradedangerous-12.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
81
- tradedangerous-12.0.2.dist-info/entry_points.txt,sha256=lrA7U9JHOcNuam2WEK4Hmc3vQ3mrJfsbJCE74qd9au8,62
82
- tradedangerous-12.0.2.dist-info/top_level.txt,sha256=JEoOVAhg5GfXZ4kHpNontu0RVzek_7P9_jp93f3Pqn8,16
83
- tradedangerous-12.0.2.dist-info/RECORD,,
78
+ tradedangerous-12.0.4.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
79
+ tradedangerous-12.0.4.dist-info/METADATA,sha256=vfdslCCJmrnlKKWXbfzZOZa9Zq4yjCXdiPxaSe1fBzA,4873
80
+ tradedangerous-12.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
81
+ tradedangerous-12.0.4.dist-info/entry_points.txt,sha256=lrA7U9JHOcNuam2WEK4Hmc3vQ3mrJfsbJCE74qd9au8,62
82
+ tradedangerous-12.0.4.dist-info/top_level.txt,sha256=JEoOVAhg5GfXZ4kHpNontu0RVzek_7P9_jp93f3Pqn8,16
83
+ tradedangerous-12.0.4.dist-info/RECORD,,