pyobs-flipro 2.0.0.dev5__tar.gz → 2.0.0.dev8__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 (28) hide show
  1. pyobs_flipro-2.0.0.dev8/.github/dependabot.yml +10 -0
  2. pyobs_flipro-2.0.0.dev8/.github/workflows/pypi.yml +65 -0
  3. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/PKG-INFO +3 -3
  4. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/pyobs_flipro/fliprocamera.py +177 -64
  5. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/pyproject.toml +13 -4
  6. pyobs_flipro-2.0.0.dev8/uv.lock +3088 -0
  7. pyobs_flipro-2.0.0.dev5/.github/workflows/pypi.yml +0 -26
  8. pyobs_flipro-2.0.0.dev5/uv.lock +0 -2620
  9. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/.github/workflows/ruff.yml +0 -0
  10. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/.pre-commit-config.yaml +0 -0
  11. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/.readthedocs.yml +0 -0
  12. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/CMakeLists.txt +0 -0
  13. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/LICENSE +0 -0
  14. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/README.md +0 -0
  15. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/docs/Makefile +0 -0
  16. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/docs/make.bat +0 -0
  17. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/docs/requirements.txt +0 -0
  18. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/docs/source/_static/pyobs.gif +0 -0
  19. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/docs/source/conf.py +0 -0
  20. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/docs/source/index.rst +0 -0
  21. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/lib/libflipro.h +0 -0
  22. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/lib/liblibflialgo.so +0 -0
  23. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/lib/liblibflipro.so +0 -0
  24. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/poetry.lock +0 -0
  25. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/pyobs_flipro/__init__.py +0 -0
  26. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/pyobs_flipro/fliprodriver.pyx +0 -0
  27. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/pyobs_flipro/gui.py +0 -0
  28. {pyobs_flipro-2.0.0.dev5 → pyobs_flipro-2.0.0.dev8}/pyobs_flipro/libflipro.pxd +0 -0
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "uv"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ day: "tuesday"
8
+ target-branch: "develop"
9
+ labels:
10
+ - "dependencies"
@@ -0,0 +1,65 @@
1
+ name: Publish package to PyPI
2
+ on:
3
+ push:
4
+ tags:
5
+ - 'v*'
6
+ jobs:
7
+ build-wheels:
8
+ name: Build wheels
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Check out repository code
12
+ uses: actions/checkout@v4
13
+
14
+ - name: Build wheels
15
+ uses: pypa/cibuildwheel@v4.2.0
16
+
17
+ - name: Upload wheels
18
+ uses: actions/upload-artifact@v4
19
+ with:
20
+ name: wheels
21
+ path: wheelhouse/*.whl
22
+
23
+ build-sdist:
24
+ name: Build sdist
25
+ runs-on: ubuntu-latest
26
+ steps:
27
+ - name: Check out repository code
28
+ uses: actions/checkout@v4
29
+
30
+ - name: Set up Python
31
+ uses: astral-sh/setup-uv@v5
32
+ with:
33
+ enable-cache: true
34
+ python-version: "3.13"
35
+
36
+ - name: Build sdist
37
+ run: uv build --sdist
38
+
39
+ - name: Upload sdist
40
+ uses: actions/upload-artifact@v4
41
+ with:
42
+ name: sdist
43
+ path: dist/*.tar.gz
44
+
45
+ publish:
46
+ name: Publish to PyPI
47
+ needs: [build-wheels, build-sdist]
48
+ runs-on: ubuntu-latest
49
+ steps:
50
+ - name: Download artifacts
51
+ uses: actions/download-artifact@v4
52
+ with:
53
+ path: dist
54
+ merge-multiple: true
55
+
56
+ - name: Set up Python
57
+ uses: astral-sh/setup-uv@v5
58
+ with:
59
+ enable-cache: true
60
+ python-version: "3.13"
61
+
62
+ - name: Publish
63
+ env:
64
+ PYPI_TOKEN: ${{ secrets.pypi_password }}
65
+ run: uv publish --token $PYPI_TOKEN dist/*
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobs-flipro
3
- Version: 2.0.0.dev5
3
+ Version: 2.0.0.dev8
4
4
  Summary: pyobs module for FLIPRO cameras
5
5
  Author-Email: Tim-Oliver Husser <thusser@uni-goettingen.de>
6
6
  License-Expression: MIT
7
7
  Requires-Python: >=3.11
8
8
  Requires-Dist: astropy<8,>=7.0.1
9
9
  Requires-Dist: numpy<3,>=2.2.5
10
- Requires-Dist: pyobs-core<3,>=2.0.0.dev6
10
+ Requires-Dist: pyobs-core<3,>=2.0.0.dev48
11
11
  Provides-Extra: gui
12
- Requires-Dist: pyobs-core[gui]<3,>=2.0.0.dev6; extra == "gui"
12
+ Requires-Dist: pyobs-core[gui]<3,>=2.0.0.dev48; extra == "gui"
13
13
  Requires-Dist: qasync>=0.27; extra == "gui"
14
14
 
@@ -1,8 +1,11 @@
1
1
  import asyncio
2
2
  import logging
3
3
  import math
4
+ import threading
5
+ import time
6
+ from collections.abc import Callable
4
7
  from datetime import UTC, datetime
5
- from typing import Any
8
+ from typing import Any, TypeVar, cast
6
9
 
7
10
  import numpy as np
8
11
  from pyobs.images import Image
@@ -16,6 +19,20 @@ from pyobs.utils.enums import ExposureStatus
16
19
 
17
20
  log = logging.getLogger(__name__)
18
21
 
22
+ _T = TypeVar("_T")
23
+
24
+ # FLIPRO SDK calls are blocking and are made directly on the event loop thread (see
25
+ # _run_blocking). If the camera has gone unresponsive, they can hang indefinitely, so they're
26
+ # bounded with a timeout rather than let a single dead camera freeze the whole module.
27
+ _SDK_CALL_TIMEOUT = 5.0
28
+
29
+ # reading out a frame after exposure can take longer than the other SDK calls above.
30
+ _READOUT_TIMEOUT = 30.0
31
+
32
+ # the exposure-wait loop's own timeout needs to cover the actual exposure time plus some margin
33
+ # for overhead -- exposure_time alone would be too tight.
34
+ _EXPOSURE_WAIT_MARGIN = 30.0
35
+
19
36
 
20
37
  class FliProCamera(BaseCamera, ICamera, IAbortable, IWindow, IBinning, ICooling, ITemperatures):
21
38
  """A pyobs module for FLIPRO cameras."""
@@ -48,40 +65,96 @@ class FliProCamera(BaseCamera, ICamera, IAbortable, IWindow, IBinning, ICooling,
48
65
  # background task for polling cooling/temperature
49
66
  self.add_background_task(self._poll_cooling)
50
67
 
68
+ @staticmethod
69
+ async def _run_blocking(func: Callable[[], None], timeout: float = _SDK_CALL_TIMEOUT) -> bool:
70
+ """Run a blocking FLIPRO SDK call in a daemon thread, so a hung call can't freeze the module.
71
+
72
+ A plain executor isn't used here, since its worker threads are non-daemon and Python joins
73
+ them on interpreter shutdown -- a hung call would then just move the freeze to process exit.
74
+
75
+ Returns:
76
+ True if func completed within timeout, False if it's still running in the background.
77
+ """
78
+ loop = asyncio.get_running_loop()
79
+ future: asyncio.Future[None] = loop.create_future()
80
+
81
+ def _wrapper() -> None:
82
+ try:
83
+ func()
84
+ finally:
85
+ loop.call_soon_threadsafe(future.set_result, None)
86
+
87
+ threading.Thread(target=_wrapper, daemon=True).start()
88
+ try:
89
+ await asyncio.wait_for(future, timeout=timeout)
90
+ return True
91
+ except TimeoutError:
92
+ return False
93
+
94
+ async def _run_blocking_or_raise(self, func: Callable[[], _T], timeout: float = _SDK_CALL_TIMEOUT) -> _T:
95
+ """Run a blocking FLIPRO SDK call in a thread, returning its result or re-raising what it raised.
96
+
97
+ Unlike _run_blocking(), this also carries the callable's return value/exception back to the
98
+ caller -- several FLIPRO calls here drive control flow via their return value or a raised
99
+ ValueError (e.g. device lookup, exposure availability), which a bare fire-and-forget thread
100
+ call would otherwise silently lose.
101
+ """
102
+ outcome: list[Any] = []
103
+
104
+ def _wrapper() -> None:
105
+ try:
106
+ outcome.append(func())
107
+ except BaseException as e:
108
+ outcome.append(e)
109
+
110
+ if not await self._run_blocking(_wrapper, timeout=timeout):
111
+ raise TimeoutError(f"Timed out waiting for FLIPRO SDK call after {timeout}s.")
112
+ value = outcome[0]
113
+ if isinstance(value, BaseException):
114
+ raise value
115
+ return cast(_T, value)
116
+
51
117
  async def open(self) -> None:
52
118
  """Open module."""
53
119
  await BaseCamera.open(self)
54
120
  from .fliprodriver import FliProDriver
55
121
 
56
- # list devices
57
- devices = FliProDriver.list_devices()
58
- if len(devices) == 0:
59
- raise ValueError("No camera found.")
122
+ def _connect() -> None:
123
+ # list devices
124
+ devices = FliProDriver.list_devices()
125
+ if len(devices) == 0:
126
+ raise ValueError("No camera found.")
127
+
128
+ # open first one
129
+ self._device = devices[0]
130
+ self._log_device_info()
131
+ log.info('Opening connection to "%s"...', self._device.friendly_name)
132
+ self._driver = FliProDriver(self._device)
133
+ try:
134
+ self._driver.open()
135
+ except ValueError as e:
136
+ raise ValueError(f"Could not open FLIPRO camera: {e}")
60
137
 
61
- # open first one
62
- self._device = devices[0]
63
- self._log_device_info()
64
- log.info('Opening connection to "%s"...', self._device.friendly_name)
65
- self._driver = FliProDriver(self._device)
66
- try:
67
- self._driver.open()
68
- except ValueError as e:
69
- raise ValueError(f"Could not open FLIPRO camera: {e}")
138
+ # get caps
139
+ self._caps = self._driver.get_capabilities()
140
+ self._log_capabilities()
70
141
 
71
- # get caps
72
- self._caps = self._driver.get_capabilities()
73
- self._log_capabilities()
142
+ # store full frame from caps
143
+ self._full_frame = (0, 0, self._caps.uiMaxPixelImageWidth, self._caps.uiMaxPixelImageHeight)
74
144
 
75
- # store full frame from caps
76
- self._full_frame = (0, 0, self._caps.uiMaxPixelImageWidth, self._caps.uiMaxPixelImageHeight)
145
+ await self._run_blocking_or_raise(_connect)
77
146
 
78
147
  # set cooling
79
148
  if self._temp_setpoint is not None:
80
149
  await self.set_cooling(True, self._temp_setpoint)
81
150
 
82
151
  # get window and binning from driver
83
- self._window = self._driver.get_image_area()
84
- self._binning = self._driver.get_binning()
152
+ def _get_window_binning() -> None:
153
+ assert self._driver is not None
154
+ self._window = self._driver.get_image_area()
155
+ self._binning = self._driver.get_binning()
156
+
157
+ await self._run_blocking_or_raise(_get_window_binning)
85
158
 
86
159
  # publish capabilities and initial states
87
160
  await self.comm.set_capabilities(
@@ -114,8 +187,10 @@ class FliProCamera(BaseCamera, ICamera, IAbortable, IWindow, IBinning, ICooling,
114
187
  await BaseCamera.close(self)
115
188
 
116
189
  if self._driver is not None:
117
- self._driver.close()
190
+ driver = self._driver
118
191
  self._driver = None
192
+ if not await self._run_blocking(driver.close):
193
+ log.error("Timed out closing FLIPRO camera after %.1fs.", _SDK_CALL_TIMEOUT)
119
194
 
120
195
  def _log_device_info(self) -> None:
121
196
  log.info("Device info:")
@@ -166,30 +241,36 @@ class FliProCamera(BaseCamera, ICamera, IAbortable, IWindow, IBinning, ICooling,
166
241
  # check driver
167
242
  if self._driver is None:
168
243
  raise ValueError("No camera driver.")
169
-
170
- # set binning
171
- log.info("Set binning to %dx%d.", self._binning[0], self._binning[1])
172
- self._driver.set_binning(*self._binning)
173
-
174
- # set window, size is given in unbinned pixels
175
- width = int(math.floor(self._window[2]) / self._binning[0])
176
- height = int(math.floor(self._window[3]) / self._binning[1])
177
- log.info(
178
- "Set window to %dx%d (binned %dx%d) at %d,%d.",
179
- self._window[2],
180
- self._window[3],
181
- width,
182
- height,
183
- self._window[0],
184
- self._window[1],
185
- )
186
- self._driver.set_image_area(self._window[0], self._window[1], self._window[2], self._window[3])
187
-
188
- # set exposure time
189
- self._driver.set_exposure_time(int(exposure_time * 1e9))
190
-
191
- # calculate frame size
192
- frame_size = self._driver.get_frame_size()
244
+ driver = self._driver
245
+
246
+ def _start() -> int:
247
+ # set binning
248
+ log.info("Set binning to %dx%d.", self._binning[0], self._binning[1])
249
+ driver.set_binning(*self._binning)
250
+
251
+ # set window, size is given in unbinned pixels
252
+ width = int(math.floor(self._window[2]) / self._binning[0])
253
+ height = int(math.floor(self._window[3]) / self._binning[1])
254
+ log.info(
255
+ "Set window to %dx%d (binned %dx%d) at %d,%d.",
256
+ self._window[2],
257
+ self._window[3],
258
+ width,
259
+ height,
260
+ self._window[0],
261
+ self._window[1],
262
+ )
263
+ driver.set_image_area(self._window[0], self._window[1], self._window[2], self._window[3])
264
+
265
+ # set exposure time
266
+ driver.set_exposure_time(int(exposure_time * 1e9))
267
+
268
+ # calculate frame size
269
+ frame_size = driver.get_frame_size()
270
+
271
+ # start exposure
272
+ driver.start_exposure()
273
+ return frame_size
193
274
 
194
275
  # get date obs
195
276
  log.info(
@@ -197,8 +278,7 @@ class FliProCamera(BaseCamera, ICamera, IAbortable, IWindow, IBinning, ICooling,
197
278
  )
198
279
  date_obs = datetime.now(UTC).strftime("%Y-%m-%dT%H:%M:%S.%f")
199
280
 
200
- # start exposure
201
- self._driver.start_exposure()
281
+ frame_size = await self._run_blocking_or_raise(_start)
202
282
 
203
283
  # wait exposure
204
284
  await self._wait_exposure(abort_event, exposure_time, open_shutter)
@@ -206,19 +286,27 @@ class FliProCamera(BaseCamera, ICamera, IAbortable, IWindow, IBinning, ICooling,
206
286
  # readout
207
287
  log.info("Exposure finished, reading out...")
208
288
  await self._change_exposure_status(ExposureStatus.READOUT)
209
- img = self._driver.read_exposure(frame_size)
210
- self._driver.stop_exposure()
289
+
290
+ def _readout() -> tuple[Any, float, float, float]:
291
+ img = driver.read_exposure(frame_size)
292
+ driver.stop_exposure()
293
+ temp = driver.get_sensor_temperature()
294
+ cooler_duty = driver.get_cooler_duty_cycle()
295
+ temp_set = driver.get_temperature_set_point()
296
+ return img, temp, cooler_duty, temp_set
297
+
298
+ img, temp, cooler_duty, temp_set = await self._run_blocking_or_raise(_readout, timeout=_READOUT_TIMEOUT)
211
299
 
212
300
  # create FITS image and set header
213
301
  image = Image(img)
214
302
  image.header["DATE-OBS"] = (date_obs, "Date and time of start of exposure")
215
303
  image.header["EXPTIME"] = (exposure_time, "Exposure time [s]")
216
- image.header["DET-TEMP"] = (self._driver.get_sensor_temperature(), "CCD temperature [C]")
217
- image.header["DET-COOL"] = (self._driver.get_cooler_duty_cycle(), "Cooler power [percent]")
218
- image.header["DET-TSET"] = (self._driver.get_temperature_set_point(), "Cooler setpoint [C]")
304
+ image.header["DET-TEMP"] = (temp, "CCD temperature [C]")
305
+ image.header["DET-COOL"] = (cooler_duty, "Cooler power [percent]")
306
+ image.header["DET-TSET"] = (temp_set, "Cooler setpoint [C]")
219
307
 
220
308
  # instrument and detector
221
- dev = self._driver.device
309
+ dev = driver.device
222
310
  image.header["INSTRUME"] = (f"{dev.friendly_name} {dev.serial_number}", "Name of instrument")
223
311
 
224
312
  # binning
@@ -243,17 +331,30 @@ class FliProCamera(BaseCamera, ICamera, IAbortable, IWindow, IBinning, ICooling,
243
331
 
244
332
  async def _wait_exposure(self, abort_event: asyncio.Event, exposure_time: float, open_shutter: bool) -> None:
245
333
  """Wait for exposure to finish."""
246
- while not self._driver.is_available():
247
- if abort_event.is_set():
248
- await self._change_exposure_status(ExposureStatus.IDLE)
249
- raise InterruptedError("Aborted exposure.")
250
- await asyncio.sleep(0.01)
334
+ if self._driver is None:
335
+ raise ValueError("No camera driver.")
336
+ driver = self._driver
337
+
338
+ # run the whole "poll until ready" loop as a single blocking call (see _run_blocking),
339
+ # rather than polling is_available() every 10ms directly on the event loop
340
+ def _wait() -> bool:
341
+ while not driver.is_available():
342
+ if abort_event.is_set():
343
+ return True
344
+ time.sleep(0.01)
345
+ return False
346
+
347
+ exposure_timeout = exposure_time + _EXPOSURE_WAIT_MARGIN
348
+ aborted = await self._run_blocking_or_raise(_wait, timeout=exposure_timeout)
349
+ if aborted:
350
+ await self._change_exposure_status(ExposureStatus.IDLE)
351
+ raise InterruptedError("Aborted exposure.")
251
352
 
252
353
  async def _abort_exposure(self) -> None:
253
354
  """Abort the running exposure."""
254
355
  if self._driver is None:
255
356
  raise ValueError("No camera driver.")
256
- self._driver.cancel_exposure()
357
+ await self._run_blocking_or_raise(self._driver.cancel_exposure)
257
358
 
258
359
  async def set_window(self, left: int, top: int, width: int, height: int, **kwargs: Any) -> None:
259
360
  """Set the camera window.
@@ -288,6 +389,7 @@ class FliProCamera(BaseCamera, ICamera, IAbortable, IWindow, IBinning, ICooling,
288
389
  """
289
390
  if self._driver is None:
290
391
  raise ValueError("No camera driver.")
392
+ driver = self._driver
291
393
 
292
394
  if enabled:
293
395
  log.info("Enabling cooling with a setpoint of %.2f°C...", setpoint)
@@ -295,7 +397,11 @@ class FliProCamera(BaseCamera, ICamera, IAbortable, IWindow, IBinning, ICooling,
295
397
  log.info("Disabling cooling and setting setpoint to 20°C...")
296
398
 
297
399
  actual_setpoint = float(setpoint) if setpoint is not None else 20.0
298
- self._driver.set_temperature_set_point(actual_setpoint)
400
+
401
+ def _set() -> None:
402
+ driver.set_temperature_set_point(actual_setpoint)
403
+
404
+ await self._run_blocking_or_raise(_set)
299
405
  self._cooling_enabled = enabled
300
406
  await self.comm.set_state(ICooling, CoolingState(setpoint=actual_setpoint, power=None, enabled=enabled))
301
407
 
@@ -304,9 +410,16 @@ class FliProCamera(BaseCamera, ICamera, IAbortable, IWindow, IBinning, ICooling,
304
410
  while True:
305
411
  try:
306
412
  if self._driver is not None:
307
- setpoint = self._driver.get_temperature_set_point()
308
- duty = self._driver.get_cooler_duty_cycle()
309
- _, t_base, t_cooler = self._driver.get_temperatures()
413
+ driver = self._driver
414
+
415
+ def _poll() -> tuple[float, float, tuple[Any, float, float]]:
416
+ setpoint = driver.get_temperature_set_point()
417
+ duty = driver.get_cooler_duty_cycle()
418
+ temps = driver.get_temperatures()
419
+ return setpoint, duty, temps
420
+
421
+ setpoint, duty, (_, t_base, t_cooler) = await self._run_blocking_or_raise(_poll)
422
+
310
423
  await self.comm.set_state(
311
424
  ICooling, CoolingState(setpoint=setpoint, power=round(duty), enabled=self._cooling_enabled)
312
425
  )
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyobs-flipro"
3
- version = "2.0.0.dev5"
3
+ version = "2.0.0.dev8"
4
4
  description = "pyobs module for FLIPRO cameras"
5
5
  authors = [{ name = "Tim-Oliver Husser", email = "thusser@uni-goettingen.de" }]
6
6
  requires-python = ">=3.11"
@@ -8,18 +8,18 @@ license = "MIT"
8
8
  dependencies = [
9
9
  "astropy>=7.0.1,<8",
10
10
  "numpy>=2.2.5,<3",
11
- "pyobs-core>=2.0.0.dev6,<3",
11
+ "pyobs-core>=2.0.0.dev48,<3",
12
12
  ]
13
13
 
14
14
  [project.optional-dependencies]
15
15
  gui = [
16
- "pyobs-core[gui]>=2.0.0.dev6,<3",
16
+ "pyobs-core[gui]>=2.0.0.dev48,<3",
17
17
  "qasync>=0.27",
18
18
  ]
19
19
 
20
20
  [dependency-groups]
21
21
  dev = [
22
- "black>=25.1.0,<26",
22
+ "black>=25.1.0,<27",
23
23
  "pre-commit>=4.2.0,<5",
24
24
  "ruff>=0.9.0",
25
25
  "pyrefly>=1.1.1",
@@ -31,6 +31,15 @@ flipro-gui = "pyobs_flipro.gui:main"
31
31
  [tool.scikit-build]
32
32
  wheel.packages = ["pyobs_flipro"]
33
33
 
34
+ [tool.cibuildwheel]
35
+ build = "cp311-* cp312-* cp313-* cp314-*"
36
+ skip = "*-musllinux_* *-manylinux_i686"
37
+ archs = ["x86_64"]
38
+
39
+ [tool.cibuildwheel.linux]
40
+ manylinux-x86_64-image = "manylinux_2_28"
41
+ before-all = "dnf install -y epel-release && dnf install -y cfitsio-devel libusbx-devel"
42
+
34
43
  [build-system]
35
44
  requires = ["scikit_build_core>=0.12", "cython>=3.0", "cython-cmake", "numpy>=2.0"]
36
45
  build-backend = "scikit_build_core.build"