Commit Graph

15 Commits

Author SHA1 Message Date
Dan Smith
ef783cb14b Drop support for Python <3.10 2024-04-12 18:10:22 -07:00
Dan Smith
cc16525b97 Remove six library dependency 2024-04-09 14:38:00 -07:00
Daniele Forsi
63b97290a0 python3-future is not needed anymore 2024-02-15 15:09:47 -08:00
Dan Smith
96e25b351a Add a super-basic printing implementation
This is not something I have ever wanted, but it has been requested
plenty of times. Since wx makes this easy, this adds a super bare-
bones implementation that seems to work for me, which I think is
probably worthwhile. It doesn't handle multiple pages super elegantly,
and probably needs to have a "print selection" option, but it works.

Related to one of chirp's oldest bugs: #249
2022-12-17 09:57:50 -08:00
Charlie Li
0f861bf65f Include data files in the chirp package itself
Data files outside the package are not installed in binary distributions, so move them inside. Use importlib_resources to load icon and stock configs.
- use only the newer files(), as_files() and namespace APIs introduced in Python 3.10
- use the importlib_resources package if Python < 3.10
- remove obviated pkg_path()
- bump minimum Python version to 3.7

Fix test paths to account for the move
2022-12-14 11:20:30 -08:00
markleigh
5f0cfe56d8 Added radioreference import. Minor alterations to querydialog for appearance. 2022-12-11 20:50:44 -08:00
Dan Smith
d7716b3416 Use wxPython 4.2.0 for non-Linux builds 2022-12-01 20:55:18 -08:00
Dan Smith
d246d705aa Start fresh with setup.py 2022-11-23 17:54:28 -08:00
Dan Smith
7286a14c9e Update requirements.txt to include platform deps 2022-11-23 14:53:51 -08:00
Dan Smith
abdbb93d6f Change pygobject to wxpython for requirements
Accurately reflect what we expect to be installed for the py3
branch.
2022-10-21 16:41:17 -07:00
Dan Smith
1d4ed54499 [py3] Include requirements.txt and tests in sdist build
This will help make it easier to build and run tests on py2

#495
2019-02-10 10:14:02 -08:00
Zhaofeng Li
46c16507c3 [py3] bitwise.py: Always return a bytes-compatible object when asbytes=True
This commit ensures that drivers that ask for bytes representations will always
get bytes or a bytes-compatible object, whether on Python 2 or 3.

python-future provides a mostly-complete implementation of bytes for Python 2.

#495
2019-02-09 18:06:08 -08:00
Dan Smith
a2fe68ebe4 [py3] 2to3 run_tests.py and re-enable importing it in the unittest adapter
Also add pyserial to requirements because this is the first time we have
hit that import.

#495
2019-02-07 13:50:44 -08:00
Dan Smith
26b583576c [py3] Changes to ui so that we can actually start under py3/gi
This adds a chirp.ui.compat module where we can pile things needed to
handle python3 differently. Right now there are a bunch of things that just fail
for reasons I don't fully grasp yet. Those go under a py3safe() decorator,
which logs and then ignores them.

Also, there is an issue with the sensitive=True bit on the columns for empty
memories. Need to figure that out.

#495
2019-02-07 12:35:09 -08:00
Dan Smith
5dcb763e79 [py3] Make setup.py compatible and start a new py3 tox environment
Right now, this runs just the bitwise tests which are the only ones that
work on py3.

#495
2019-02-07 08:38:38 -08:00