setiastrosuitepro 1.6.1__py3-none-any.whl → 1.6.1.post1__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.
@@ -36,8 +36,7 @@ _app = None
36
36
  _splash_initialized = False
37
37
 
38
38
  from setiastro.saspro.versioning import get_app_version
39
- _EARLY_VERSION = get_app_version("setiastrosuitepro")
40
-
39
+ _EARLY_VERSION = "1.6.1"
41
40
  def _init_splash():
42
41
  """Initialize the splash screen. Safe to call multiple times."""
43
42
  global _splash, _app, _splash_initialized
@@ -147,7 +146,7 @@ def _init_splash():
147
146
  """
148
147
  def __init__(self, logo_path: str):
149
148
  super().__init__()
150
- self._version = _EARLY_VERSION
149
+ self._version = "1.6.1"
151
150
  self._build = ""
152
151
  self.current_message = QCoreApplication.translate("Splash", "Starting...")
153
152
  self.progress_value = 0
@@ -223,7 +222,7 @@ def _init_splash():
223
222
 
224
223
  def setBuildInfo(self, version: str, build: str):
225
224
  """Update version and build info once available."""
226
- self._version = version
225
+ self._version = "1.6.1"
227
226
  self._build = build
228
227
  self.repaint()
229
228
 
@@ -530,7 +529,7 @@ except Exception:
530
529
 
531
530
 
532
531
  from setiastro.saspro.versioning import get_app_version
533
- VERSION = get_app_version("setiastrosuitepro")
532
+ VERSION = "1.6.1"
534
533
 
535
534
  _update_splash(QCoreApplication.translate("Splash", "Loading resources..."), 50)
536
535
 
@@ -1,2 +1,2 @@
1
1
  # Auto-generated at build time. Do not edit.
2
- BUILD_TIMESTAMP = "2025-12-18T23:29:54Z"
2
+ BUILD_TIMESTAMP = "2025-12-22T03:49:30Z"
@@ -299,7 +299,7 @@ class AstroSuiteProMainWindow(
299
299
  from setiastro.saspro.window_shelf import WindowShelf, MinimizeInterceptor
300
300
  from setiastro.saspro.imageops.mdi_snap import MdiSnapController
301
301
  from setiastro.saspro.ops.scripts import ScriptManager
302
- self._version = version
302
+ self._version = "1.6.1"
303
303
  self._build_timestamp = build_timestamp
304
304
  self.setWindowTitle(f"Seti Astro Suite Pro v{self._version}")
305
305
  self.resize(1400, 900)
@@ -4327,7 +4327,7 @@ class AstroSuiteProMainWindow(
4327
4327
  dlg.show()
4328
4328
 
4329
4329
  def _open_whats_in_my_sky(self):
4330
- from wims import WhatsInMySkyDialog
4330
+ from setiastro.saspro.wims import WhatsInMySkyDialog
4331
4331
  dlg = WhatsInMySkyDialog(
4332
4332
  parent=self,
4333
4333
  wims_path=wims_path, # window icon
@@ -4339,7 +4339,7 @@ class AstroSuiteProMainWindow(
4339
4339
 
4340
4340
  def _open_wimi(self):
4341
4341
  # Lazy import to avoid loading lightkurve at startup (~12s)
4342
- from wimi import WIMIDialog
4342
+ from setiastro.saspro.wimi import WIMIDialog
4343
4343
  dlg = WIMIDialog(
4344
4344
  parent=self,
4345
4345
  settings=getattr(self, "settings", None),
@@ -16,7 +16,7 @@ from astropy.io import fits
16
16
  from astropy.io.fits import Header
17
17
  from astropy.wcs import WCS
18
18
 
19
- from PyQt6.QtCore import QProcess, QTimer, QEventLoop, Qt
19
+ from PyQt6.QtCore import QProcess, QTimer, QEventLoop, Qt, QCoreApplication
20
20
  from PyQt6.QtGui import QIcon
21
21
  from PyQt6.QtWidgets import (
22
22
  QDialog, QLabel, QPushButton, QVBoxLayout, QHBoxLayout,
@@ -1,20 +1,19 @@
1
- # src/setiastro/saspro/versioning.py
2
1
  from __future__ import annotations
3
2
  import os
4
3
  import sys
5
4
  from pathlib import Path
6
5
 
6
+
7
7
  def _read_pyproject_version(start: Path) -> str | None:
8
8
  """
9
9
  Walk upward from 'start' looking for pyproject.toml,
10
10
  return [tool.poetry].version if found.
11
11
  """
12
- # Python 3.11+: tomllib; Python 3.10: tomli
13
12
  try:
14
- import tomllib as _toml # type: ignore
13
+ import tomllib as _toml # Python 3.11+
15
14
  except Exception:
16
15
  try:
17
- import tomli as _toml # type: ignore
16
+ import tomli as _toml # Python 3.10
18
17
  except Exception:
19
18
  _toml = None
20
19
 
@@ -41,31 +40,7 @@ def _read_pyproject_version(start: Path) -> str | None:
41
40
  cur = cur.parent
42
41
  return None
43
42
 
44
- def get_app_version(dist_name: str = "setiastrosuitepro") -> str:
45
- """
46
- Single source of truth for SASpro version.
47
-
48
- Order:
49
- 1) installed distribution metadata (best for packaged installs)
50
- 2) pyproject.toml (best for running from source checkout)
51
- 3) safe fallback
52
- """
53
- # 1) Installed package metadata (when it matches)
54
- try:
55
- from importlib.metadata import version as _dist_version
56
- v = _dist_version(dist_name)
57
- # If you want to *avoid* accidentally picking up a stale installed 0.1.0,
58
- # you can reject that known-bad default:
59
- if v and v != "0.1.0":
60
- return v
61
- except Exception:
62
- pass
63
43
 
64
- # 2) Source tree pyproject.toml (walk from this file upward)
65
- here = Path(__file__).resolve()
66
- v2 = _read_pyproject_version(here.parent)
67
- if v2:
68
- return v2
44
+ def get_app_version(dist_name: str = "setiastrosuitepro") -> str:
69
45
 
70
- # 3) Frozen / unknown: fallback
71
- return "0.0.0"
46
+ return "1.6.1"