Commit Graph

65 Commits

Author SHA1 Message Date
Dan Smith
492ca73cf9 Include suds in the install requirements
Fixes: #11340
2024-05-10 19:11:48 -07:00
Dan Smith
7db8b1ad12 Move experttune to chirp.cli
Also install it as a console script
2024-05-10 19:11:48 -07:00
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
cdc0c95bb9 Fix trivial chirp/ flake8 failures 2023-03-10 18:07:04 -08:00
Dan Smith
750cb4c56d Set setup.py version to zero
I have no idea why the python community is so obsessed over breaking
things with version numbers they don't like, especially for things
that have no public interface and never need to be depended on.
Regardless, setuptools 67 breaks our test environment setup because
we don't have a compliant version number in our unreleased source
tree. So, just break setup.py's version apart from our actual version
and set it to zero. The build system stamps this to the right thing
in the distributions anyway.
2023-02-06 15:46:49 -08:00
Dan Smith
ad432cc9ed Formalize chirpc a bit and install it
This moves chirpc into a package called chirp.cli and makes setup.py
install it as a binary. This will make it available to people that
install the package and also makes it possible to add tests.

Tangentially related to #10263
2023-01-14 07:45:56 -08:00
Tony F
42fef36ad3 Add requests to setup.py
mirroring requirements.txt
2022-12-29 13:08:57 -08:00
Dan Smith
b9054684e7 Delete chirp.ui module
This removes the legacy GTK GUI from the tree. This is not being
maintained, doesn't work very well, and I'm tired of accidentally
editing files here when I mean to edit wxui/*. When we announce the
chirp-next stuff to the users, I don't want packagers to be confused
about which version to use, what the required dependencies are, etc.
2022-12-28 08:32:01 -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
Dan Smith
0ced59429c Remove top-level chirpw for legacy UI
This moves the old gtk-based chirpw script into the ui module so
it is all contained. I've explained to three people in the last two
weeks why this doesn't work, so I think it's best to reduce its
visibility. I don't (even have a system to) test the gtk stuff on
and I'm pretty sure we've broken it several times lately. Until
we go for actual removal of the subdir, this will help avoid
confusion.
2022-12-16 12:44:11 -08:00
Charlie Li
a4d897d8a6 Make wxPython optional for Python packaging purposes
wxPython is unnecessary for the automated test suite. Additionally, the GTK interface still works under PyGObject in GTK 3, so re-expose that.
2022-12-14 11:20:30 -08:00
Charlie Li
6740f801c7 (Attempt to) fix the tests in light of wxPython 4.2.0
setup.py was intentionally typoed to not specify dependencies, but breaks metadata.
2022-12-14 11:20:30 -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
Charlie Li
3eeeb4cc34 Exclude tests/ from getting installed as packages 2022-12-06 13:54:01 -08:00
Dan Smith
d476d7f786 Set app icon and cleanup stock configs
We have always had this odd arrangement where we force copy stock
config files into the user's own directory and then need to be
careful to never overwrite them (but then we can't update them).
This changes our behavior to load from both locations, prioritizing
the user's configs if they exist with the same name.
2022-12-01 20:55:18 -08:00
Dan Smith
89cefaccba Show a welcome screen at start, if no files 2022-12-01 20:55:18 -08:00
Dan Smith
d246d705aa Start fresh with setup.py 2022-11-23 17:54:28 -08:00
Jim Unroe
b88ee7df44 Try setuptools if present, otherwise use distutils.core. 2022-11-11 16:27:21 -08:00
Dan Smith
9a1ee6b579 [py3] Fix style issue introduced in previous fix
Related to #7431
2019-12-10 08:10:12 -08:00
Dan Smith
f4ad30daed Initial wxPython-based UI
Related to #7431
2019-12-09 19:32:28 -08: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
Dan Smith
c1ef01e4e3 [py3] Generalize the safe import routine
#495
2019-02-10 10:13:49 -08:00
Dan Smith
d620a86625 [py3] Fix setup import drivers.* routine to be like the others
Probably should DRY this up :P

#495
2019-02-07 18:24:01 -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
Dan Smith
8cbb6e90e7 Remove dedicated silly rptbuild setup handler
This just makes setup.py more complicated and there's no reason to build
this as a separate package. Just build it as an additional script on the
main default build.

Needed for #5237
2017-10-11 18:39:17 -07:00
Dan Smith
fa6b647b08 Fix Win32 build after drivers split
The patch to split out the drivers tree broke the win32 build (and execution) in
several places. This fixes that.

Fallout from #2351
2015-03-04 07:14:55 -08:00
Zach Welch
833354235d Move chirpui/ to chirp/ui/ (#2351) 2015-03-03 07:15:38 -08:00
Zach Welch
1be257483e Move drivers into chirp/drivers/ (#2351)
CHIRP now supports enough devices that the chirp/ directory has become
cluttered.  This creates unnecessary coupling when importing all of
these modules.  This patch moves all of the drivers to their own
directory and then chases down all of the stale import references.
2015-03-03 07:09:37 -08:00
Zach Welch
1d662c6ad9 Update cpep8 to use pep8 1.6.2 (#2355)
This patch updates the virtualenv version of pep8 to 1.6.2, chasing
down the new style errors that pop up in the already cleaned files.
2015-02-28 16:29:01 -08:00
Zach Welch
d6e1dc9880 Fix style issues in setup.py (#2355)
This patch brings setup.py into conformance with PEP8 rules and removes
it from the blacklist.   It also rewrites the staticify_chirp_module
routine to be more idiomatic.
2015-02-27 15:55:58 -08:00
Dan Smith
31e3e682ae Tweak to the build process
#93
2012-12-23 07:46:12 -08:00
Dan Smith
90f084b5af Fix install paths in setup.py to avoid a duplicate /usr 2012-03-23 11:55:12 -07:00
Dan Smith
23b63d7405 Include locale files in sdist build (!) 2012-03-23 11:48:57 -07:00
Dan Smith
c0f0e1205b Build with Python 2.7 with integrated GTK 2.24 2012-02-28 15:38:07 -08:00
Dan Smith
774e417959 Build with python 2.6 and GTK 2.12 instead of the recent
change to python 2.7 and GTK 2.24, which does not seem to
work properly on Windows Vista/7 with Aero enabled.
2012-02-27 07:46:15 -08:00
Dan Smith
00da094090 Build fixes for Win32 after the dynamic registration change 2012-02-20 12:53:56 -08:00
Dan Smith
6f5b3af957 Build support for stock configurations, and the following stock files:
1. US calling frequencies (146.52, etc)
2. US 60m channels (center)
3. US 60m channels (dial)
2012-02-10 11:25:58 -08:00
Dan Smith
222a16fe25 Build Win32 version with Python 2.7.x 2011-11-30 17:38:08 -08:00
Dan Smith
0e0e758840 Initial infrastructure for locales in CHIRP 2011-11-29 16:34:55 -08:00
Dan Smith
5c060bcd10 Properly install chirp.*xsd files in setup.py install 2011-08-24 06:40:22 -07:00
Dan Smith
6a40549e94 Install the man page into the proper place 2011-08-18 14:47:41 -07:00
Dan Smith
5429fed167 Include chirp.png in the source distribution 2011-08-16 14:43:19 -07:00
Dan Smith
ed2ae300fe [idrp] Fix idrp driver and rpttool for intHz 2011-05-26 07:47:10 -07:00
Dan Smith
36f60af8b4 Fix rpttool to support 6.25kHz step frequencies 2011-05-26 07:39:01 -07:00
Dan Smith
213bc75297 Use new chirp icon for win32 build and default chirp.desktop 2011-03-22 18:23:23 -07:00
Dan Smith
8f616de966 Add a simple manpage for chirpw
Based (of course) on Steve's original one from D-RATS
2011-02-12 11:50:43 -08:00
Steve Conklin
490fb053b6 test change to setup.py
---
 setup.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
2011-02-12 10:26:52 -08:00
Dan Smith
7431a08f65 Include COPYING in tarball 2011-01-19 16:02:04 -08:00