txa 1.3.1__tar.gz → 1.3.2__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.
Files changed (55) hide show
  1. {txa-1.3.1 → txa-1.3.2}/PKG-INFO +1 -1
  2. {txa-1.3.1 → txa-1.3.2}/src/txa/__init__.py +1 -1
  3. {txa-1.3.1 → txa-1.3.2}/src/txa/ci/agreement.py +2 -0
  4. {txa-1.3.1 → txa-1.3.2}/src/txa/create/winget.py +13 -2
  5. {txa-1.3.1 → txa-1.3.2}/src/txa.egg-info/PKG-INFO +1 -1
  6. {txa-1.3.1 → txa-1.3.2}/README.md +0 -0
  7. {txa-1.3.1 → txa-1.3.2}/pyproject.toml +0 -0
  8. {txa-1.3.1 → txa-1.3.2}/setup.cfg +0 -0
  9. {txa-1.3.1 → txa-1.3.2}/src/txa/ci/__init__.py +0 -0
  10. {txa-1.3.1 → txa-1.3.2}/src/txa/ci/api.py +0 -0
  11. {txa-1.3.1 → txa-1.3.2}/src/txa/ci/checks.py +0 -0
  12. {txa-1.3.1 → txa-1.3.2}/src/txa/ci/cli.py +0 -0
  13. {txa-1.3.1 → txa-1.3.2}/src/txa/ci/context.py +0 -0
  14. {txa-1.3.1 → txa-1.3.2}/src/txa/ci/gate.py +0 -0
  15. {txa-1.3.1 → txa-1.3.2}/src/txa/ci/pending.py +0 -0
  16. {txa-1.3.1 → txa-1.3.2}/src/txa/ci/progress.py +0 -0
  17. {txa-1.3.1 → txa-1.3.2}/src/txa/ci/report.py +0 -0
  18. {txa-1.3.1 → txa-1.3.2}/src/txa/ci/steps.py +0 -0
  19. {txa-1.3.1 → txa-1.3.2}/src/txa/cli.py +0 -0
  20. {txa-1.3.1 → txa-1.3.2}/src/txa/constants.py +0 -0
  21. {txa-1.3.1 → txa-1.3.2}/src/txa/core/__init__.py +0 -0
  22. {txa-1.3.1 → txa-1.3.2}/src/txa/core/config.py +0 -0
  23. {txa-1.3.1 → txa-1.3.2}/src/txa/core/console.py +0 -0
  24. {txa-1.3.1 → txa-1.3.2}/src/txa/core/credentials.py +0 -0
  25. {txa-1.3.1 → txa-1.3.2}/src/txa/core/engines.py +0 -0
  26. {txa-1.3.1 → txa-1.3.2}/src/txa/core/github.py +0 -0
  27. {txa-1.3.1 → txa-1.3.2}/src/txa/core/i18n.py +0 -0
  28. {txa-1.3.1 → txa-1.3.2}/src/txa/core/licenses.py +0 -0
  29. {txa-1.3.1 → txa-1.3.2}/src/txa/core/manifest.py +0 -0
  30. {txa-1.3.1 → txa-1.3.2}/src/txa/core/net.py +0 -0
  31. {txa-1.3.1 → txa-1.3.2}/src/txa/core/pe.py +0 -0
  32. {txa-1.3.1 → txa-1.3.2}/src/txa/core/portable.py +0 -0
  33. {txa-1.3.1 → txa-1.3.2}/src/txa/core/semver.py +0 -0
  34. {txa-1.3.1 → txa-1.3.2}/src/txa/core/signing.py +0 -0
  35. {txa-1.3.1 → txa-1.3.2}/src/txa/core/userpath.py +0 -0
  36. {txa-1.3.1 → txa-1.3.2}/src/txa/core/winos.py +0 -0
  37. {txa-1.3.1 → txa-1.3.2}/src/txa/create/__init__.py +0 -0
  38. {txa-1.3.1 → txa-1.3.2}/src/txa/create/cli.py +0 -0
  39. {txa-1.3.1 → txa-1.3.2}/src/txa/create/draft.py +0 -0
  40. {txa-1.3.1 → txa-1.3.2}/src/txa/create/ghmeta.py +0 -0
  41. {txa-1.3.1 → txa-1.3.2}/src/txa/create/submit.py +0 -0
  42. {txa-1.3.1 → txa-1.3.2}/src/txa/create/wizard.py +0 -0
  43. {txa-1.3.1 → txa-1.3.2}/src/txa/pm/__init__.py +0 -0
  44. {txa-1.3.1 → txa-1.3.2}/src/txa/pm/cli.py +0 -0
  45. {txa-1.3.1 → txa-1.3.2}/src/txa/pm/installer.py +0 -0
  46. {txa-1.3.1 → txa-1.3.2}/src/txa/pm/source.py +0 -0
  47. {txa-1.3.1 → txa-1.3.2}/src/txa/pm/uninstall.py +0 -0
  48. {txa-1.3.1 → txa-1.3.2}/src/txa/schemas/about.schema.json +0 -0
  49. {txa-1.3.1 → txa-1.3.2}/src/txa/schemas/build.schema.json +0 -0
  50. {txa-1.3.1 → txa-1.3.2}/src/txa/schemas/core.schema.json +0 -0
  51. {txa-1.3.1 → txa-1.3.2}/src/txa.egg-info/SOURCES.txt +0 -0
  52. {txa-1.3.1 → txa-1.3.2}/src/txa.egg-info/dependency_links.txt +0 -0
  53. {txa-1.3.1 → txa-1.3.2}/src/txa.egg-info/entry_points.txt +0 -0
  54. {txa-1.3.1 → txa-1.3.2}/src/txa.egg-info/requires.txt +0 -0
  55. {txa-1.3.1 → txa-1.3.2}/src/txa.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: txa
3
- Version: 1.3.1
3
+ Version: 1.3.2
4
4
  Summary: TXA package manager toolchain: txapm (install), txacreate (publish), txaci (16-step validator), txacli (WinGet & repo CLI)
5
5
  Author: TXA Software Dev
6
6
  License: MIT
@@ -1,3 +1,3 @@
1
1
  """TXA package manager toolchain."""
2
2
 
3
- __version__ = "1.3.1"
3
+ __version__ = "1.3.2"
@@ -174,6 +174,8 @@ def process(gh: GitHub, repo: str, number: int, comment_id: int | None = None) -
174
174
  if not is_new_pkg and not has_agreed:
175
175
  if pr.get("author_association") in EXEMPT:
176
176
  has_agreed, how = True, "maintainer, exempt"
177
+ elif pr["user"].get("type") == "Bot":
178
+ has_agreed, how = True, "automation" # the scheduled auto-update opens its pull requests as the bot
177
179
  elif _returning(gh, repo, author):
178
180
  has_agreed, how = True, "agreed on an earlier pull request"
179
181
 
@@ -661,7 +661,7 @@ def convert_winget_to_draft(data: dict[str, Any], namespace: str = "TXAVL", over
661
661
  arch=arch,
662
662
  engine=engine,
663
663
  sha256=sha,
664
- size=1,
664
+ size=_real_size(url),
665
665
  payload=Path(""),
666
666
  switches=switches,
667
667
  portable=portable_dict,
@@ -715,11 +715,22 @@ def save_draft_manifests(draft, root_dir, dry_run: bool = False):
715
715
  return target_dir
716
716
 
717
717
 
718
+ def _real_size(url: str) -> int:
719
+ """The installer's real byte size (the validator compares it with what the server reports); 1 only if the server hides it."""
720
+ try:
721
+ length = net.probe(net.session(), url).length
722
+ except Exception: # noqa: BLE001 - an unreachable server must not stop the sync
723
+ length = None
724
+ return length or 1
725
+
726
+
718
727
  # Hand-written / non-WinGet packages that must NEVER be overwritten by automatic WinGet sync
719
728
  _HANDWRITTEN_APPS = {
720
729
  "CanhCutTeamLauncher",
721
730
  "TXAWinSetup",
722
731
  "Warframe",
732
+ "MSYS2", # the only "MSYS2" id upstream belongs to an emulator build, not the MSYS2 project
733
+ "UniKey", # repackaged with install/uninstall scripts
723
734
  }
724
735
 
725
736
  # Deterministic mapping from TXAVL AppName -> exact WinGet PackageIdentifier
@@ -881,7 +892,7 @@ def sync_txavl_packages(
881
892
  arch=arch,
882
893
  engine="inno",
883
894
  sha256=dl.sha256,
884
- size=1,
895
+ size=dl.bytes or _real_size(url),
885
896
  payload=Path(""),
886
897
  switches=dict(DEFAULT_SWITCHES["inno"]),
887
898
  portable={},
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: txa
3
- Version: 1.3.1
3
+ Version: 1.3.2
4
4
  Summary: TXA package manager toolchain: txapm (install), txacreate (publish), txaci (16-step validator), txacli (WinGet & repo CLI)
5
5
  Author: TXA Software Dev
6
6
  License: MIT
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
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
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
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
File without changes
File without changes
File without changes
File without changes
File without changes