112 Commits

Author SHA1 Message Date
Dr.-Ing. Johannes Pohl
cb88c5f0a0 Migrate to PyQt6 (#1072) 2025-12-16 15:24:57 +01:00
Prof. Dr. Andreas Noack
4979a5c94d Fix compilation with Cython3.1. (#1184)
Thanks to ahesford:

Failure to compile with Cython 3.1 is caused by a collision between struct hackrf_device_list and the function hackrf_device_list. In the C library that this wraps, the two names are distinct. Cython, however, folds struct hackrf_device_list into just hackrf_device_list. Fortunately, Cython allows the use of a name for its definitions that differs from the underlying C name, so the struct can just be called c_hackrf_device_list. This doesn't seem to be a critical change because the immediately following typedef just aliases this to hackrf_device_list_t everywhere it is needed.

Cf. http://docs.cython.org/en/stable/src/userguide/external_C_code.html#resolving-naming-conflicts-c-name-specifications
2025-07-31 10:15:32 +02:00
Prof. Dr. Andreas Noack
9061187d32 Revert numpy2 requirement (#1182)
* Revert numpy2 requirement to not interfere with Ubuntu 24.04
fix #1179
2025-07-07 14:13:48 +02:00
Prof. Dr. Andreas Noack
a6f9b4791d Revert numpy2 requirement to not interfere with Ubuntu 24.04 (#1180) 2025-07-07 13:18:30 +02:00
Rotzbua
2cdb0fb251 Feat!: use numpy2 (#1176)
Fix type problem with numpy2.
Drop support for numpy1 to simplify testing.
2025-06-19 09:37:05 +02:00
Rotzbua
300783bcef Drop python 3.8; Require python 3.9 (#1173)
python 3.8 is EOL
python 3.8 is not supported by numpy2
2025-06-16 17:38:17 +02:00
Rotzbua
bcd4372f59 Bump min required Python to 3.8 (#1164)
Synchronize with CI & tests.
2025-06-03 15:24:43 +02:00
Rotzbua
b2daab997c Remove conditionals for python<3.4 (#1163)
Python under 3.4 is not supported, so the conditions have no effect.
2025-06-03 15:22:48 +02:00
Dr.-Ing. Johannes Pohl
1e9416f5de [CI] Fix broken limesuite build for macOS (#1168) 2025-05-31 16:18:39 +02:00
Dr.-Ing. Johannes Pohl
ea77ffb635 add missing numpy pins and setuptools to setup.py (#1146) 2024-11-11 17:03:24 +01:00
Rafael Fontenelle
2f565c7544 Handle module __builtins__ both as dict or module (#1107) 2024-03-15 09:28:58 +01:00
Dr. Johannes Pohl
8a34513351 Add support for Cython3 (#1099) 2024-01-21 11:11:28 +01:00
Dr. Johannes Pohl
aa95d20b9b Blacken code (#1076) 2023-10-30 17:51:41 +01:00
Dr. Johannes Pohl
64846253dc pin to Cython version <3.0.0 (#1063) 2023-07-28 10:38:07 +02:00
Johannes Pohl
93b99c7076 remove parallelization in ExtensionHelper.py
it leads to errors on certain environments (#761)
2020-04-19 11:50:59 +02:00
jopohl
fa188f4a9e do not parallelize cython build on macOS 2020-04-04 11:38:34 +02:00
Johannes Pohl
f0c996c222 Add support for Manylinux2014 (#750) 2020-03-24 11:42:51 +01:00
Johannes Pohl
7e15029398 Overhaul GNU Radio backend (ready for gr 3.8) (#748) 2020-03-22 12:52:52 +01:00
Johannes Pohl
af691f452d make include path in rebuild configurable (#733) 2020-03-04 14:12:29 +01:00
Johannes Pohl
561bf6d937 add *.pxd to package data of cythonext 2019-06-29 21:39:40 +02:00
Johannes Pohl
4de7bd7a1f Remove config.pxi and use compile_time_env instead (#484) 2018-07-01 11:36:15 +02:00
Johannes Pohl
b3fc97909a ensure cython can find config pxi when building with setuptools (#483)
* ensure cython can find config pxi when building with setuptools (#481)

* copy only if needed

* remove unused path
2018-06-30 19:52:15 +02:00
Johannes Pohl
fc27406fde Improve conditional compile of native device backends (#470)
* use pxi for config

* make cython mandatory + use pxi for conditional build

* remove build artifacts from git repo

* exit if cython not installed

* update gitignore

* update requirements and changelog

* fix parameter

* do not use multiprocessing for cython

* fix hackrf cython header

* fix include dirs

* add output

* add output

* paths must be absolute for windows cython

* update package data

* make a appveyor test release

* Revert "make a appveyor test release"

This reverts commit 46b09e146e.

* Update appveyor.yml

* update gitignore and config.pxi

* Revert "update gitignore and config.pxi"

This reverts commit 5e5d029e31.

* update config.pxi
2018-06-21 10:48:59 +02:00
Johannes Pohl
5569b1b10a Prebuild device extensions (#462)
* precompile device extensions

* set lib path

* prevent double build

* download libs in travis

* fix unittest

* update path

* protect access

* adapt shared path to linux

* sort os listdir

* ensure libstdc++ loaded first

* change name

* remove required

* improve test

* add usrp test

* set shared library path when processes spawn

* test pypi release with travis

* test pypi release with travis

* test pypi release with travis

* skip cleanup

* fix pypi test link

* test wheelhouse build

* skip tests

* fix path

* fix dir

* cd repo

* quote var

* do not use for loop

* add missing quote

* quote dollar

* script deployment

* fix twine upload

* deploy libs only for windows

* add 32 bit support

* fix command

* disable 32 bit

* push version for test

* push ver

* prepare merge

* trigger build

* fix windows path

* improve shortcut

* remove debug

* edit copyright
2018-06-17 22:31:36 +02:00
Johannes Pohl
6753baeacb use markdown for long description as new pypi supports its 2018-06-05 23:01:39 +02:00
Johannes Pohl
26e5bbb492 Add a CLI (#440)
* add argument parser for CLI

* add pause to cli

* parse messages to send

* add send function

* use while loop instead of hard sleep

* use logger for error msg

* use tabulator for progress bar

* prepare rx mode

* use Thread for Protocol Sniffer instead of qt signals

* adapt tests

* fix thread can only be started once error

* enable receiving from command line

* support send from file

* save gain correctly

* enable rx into file

* remove unused signal

* enable raw rx and file mode

* add support for device identifier

* add support for default pause

* enable abort sending witt ctrl c

* support encodings

* make logging multiprocessing aware and add autobuild extensions to cli

* move place

* fix sniffer when receiving multiple messages at once

* add test for modulator cli parsing and fix some bugs

* extend modulator test and fix another bug

* add unittests and reorder urh_cli structure

* add tests

* adapt CI to CLI tests

* force osx

* fix osx

* adapt close dialog method

* remove close dialog method

* test read messages to send

* centralize read messages method

* increase timeout for ci

* support loading of project files to load cli values

* add sleep for ci

* add cli to deployment

* replace static calls with ProjectManager Class

* use time sleep instead of qwait

* disable gc collect call

* disable gc collect for python 3.4 only

* gc collect only for osx

* simplify cleanup

* simplify cleanup

* advanced cleanup only for windows

* cleanup also for osx

* gc collect for osx

* add unittests

* consider frozen app path

* init multiprocessing first

* enable logging on cli for windows

* use log file handler for log

* add missing import
2018-06-01 09:59:53 +02:00
Johannes Pohl
54e87b7ff9 cleanup compiler warnings (#404)
* remove numpy warnings from compiler output on linux and osx

* optimize display of build log

* adapt travis conf

* init vars

* init vars

* use tail
2018-03-10 13:02:49 +01:00
Johannes Pohl
893dec57f9 Improve build (#402)
* refactor build scripts

* refactor rebuild extensions

* quiet down check for compiler has_function + fix cython warnings

* fix path

* remove init py to avoid cython warnings

* fix import

* improve rebuild button

* show selected backend in list

* cleanup device table in options

* cleanup

* add missing brace
2018-03-08 17:47:37 +01:00
Johannes Pohl
f937f9cba7 remove screenshots from PyPi Readme 2017-07-10 11:06:38 +02:00
Johannes Pohl
63e3c207a0 fix release file 2017-06-11 22:36:58 +02:00
Johannes Pohl
a17ddd6402 add release flag to handle pyqt dep correctly 2017-06-11 22:26:07 +02:00
Johannes Pohl
65ca93de96 fix appveyor 2017-06-11 21:54:30 +02:00
Johannes Pohl
353ce6855f Win precompile (#291)
build precompiled wheels for windows on git tag
2017-06-11 21:26:27 +02:00
Johannes Pohl
3a1a63759a consider subdirectories for include dirs properly 2017-05-20 11:05:42 +02:00
Johannes Pohl
081781e411 add native uhd support (#246)
add native uhd support
2017-05-20 10:13:06 +02:00
Johannes Pohl
f80ec7c448 add python3 hint for #251 2017-04-26 11:20:10 +02:00
jopohl
ae5e9e5c8d make headerfile detection more generic 2017-04-13 21:49:02 +02:00
Johannes Pohl
b9d534283c fix relative paths 2017-03-14 12:22:07 +01:00
Johannes Pohl
bee0f5a00a use varianle for relative paths 2017-03-14 11:46:26 +01:00
Johannes Pohl
113a75fb57 fix import 2017-03-13 19:30:30 +01:00
Johannes Pohl
0e2e685ff7 get_dev_modules -> get_dev_ext 2017-03-13 15:18:16 +01:00
Johannes Pohl
2b479628d3 fix path 2017-03-13 14:37:08 +01:00
Johannes Pohl
c4e7d5e56a move device extension build logic to new class 2017-03-13 14:33:03 +01:00
Johannes Pohl
e7344e6a6a refactoring 2017-03-02 18:25:47 +01:00
Johannes Pohl
808308a2ac make deps explicit configurable 2017-03-01 22:33:17 +01:00
Johannes Pohl
2d7dd0eff6 fix osx when xcode missing 2017-03-01 14:03:39 +01:00
Johannes Pohl
53e83048d3 bundle headers 2017-02-28 18:59:37 +01:00
Johannes Pohl
00aec862ee bundle headers in seperate dir for all OSes 2017-02-28 18:16:03 +01:00
Johannes Pohl
9a7286aff6 Merge pull request #169 from jopohl/rtlsdr-native-fix
Rtlsdr native fix
2017-02-27 18:17:45 +01:00
Johannes Pohl
c152915b3f make bandwidth adjustable if driver supports it 2017-02-27 17:36:46 +01:00