Hi all,
in the Mercurial days, we used tox to check for code problems in Chirp. Is this still something we do?
Thanks, Bernhard
in the Mercurial days, we used tox to check for code problems in Chirp. Is this still something we do?
Yes, as described here:
https://chirp.danplanet.com/projects/chirp/wiki/DevelopersPython3Environment
I just added some example test runs at the end.
--Dan
https://chirp.danplanet.com/projects/chirp/wiki/DevelopersPython3Environment
Thanks, I should have found this myself...
I still need some help, tox is unhappy, and it's not due to my changes to the code. I just migrated from the old Mercurial-based py2 setup to a Chirp-next compliant setup on Linux Mint 21.1 ("Vera"). Everything works, my patch works, tox does not.
All tox areas fail, all seemingly because the py3dev version doesn't match. I've tried a lot, but I can't figure out how to get the tox setup right. Apparently there's no py3dev installed at all, but I can't find it for installation either...
tox output attached. Would anyone know what I'm missing?
Thanks! Bernhard
tox output attached. Would anyone know what I'm missing?
This is not a tox thing, this is a python/setuptools thing. They've recently decided that they know what everyone's version numbers should be like, in terms of formatting. You need to rebase on current master, where that is set to something they're happy with in the tree. The build stamps the actual version during the build process, like usual.
https://github.com/kk7ds/chirp/commit/750cb4c56de15decba2305f8d03aef7bfab993...
--Dan
I am also having issues with tox.
I am trying to set up a development environment on Fedora 37. I think most of it is set up properly at this point.
for "tox -e fast-driver" i get 6003 passed, 1747 skipped, 10576 warnings in 484.90s (0:08:04)
for "tox -e unit -- -k import_logic" 10 tests fail with errors like:
try:
self._args, varargs, varkw, defaults =
inspect.getargspec(method) E AttributeError: module 'inspect' has no attribute 'getargspec'
.tox/unit/lib/python3.11/site-packages/mox3/mox.py:909: AttributeError
lLooking into this leads me down a rat hole for Python 3 deprecations.
I probably have some bad packages installed, but I have not beeI n able to ID them yet.
I have: mox3 1.1.0 invoke 2.0.0
Anyone have any suggestions for me to work with?
Thanks.
John Kienitz NS6K
On Wed, Feb 15, 2023 at 8:53 AM Bernhard Hailer via chirp_devel < chirp_devel@intrepid.danplanet.com> wrote:
You need to rebase on current master
... and that worked. It now purrs like a kitten.
Thanks for your support and patience, appreciated! Bernhard
chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers
I am also having issues with tox.
I think you're having troubles with python, tox is just the entry point.
for "tox -e unit -- -k import_logic" 10 tests fail with errors like:
try:
self._args, varargs, varkw, defaults = inspect.getargspec(method)
E AttributeError: module 'inspect' has no attribute 'getargspec'
.tox/unit/lib/python3.11/site-packages/mox3/mox.py:909: AttributeError
lLooking into this leads me down a rat hole for Python 3 deprecations.
You can see this setup and running in all the gitub action checks, so it's got to be something on your system. The point of tox is to provide isolated virtual environments within which to run the tests, which means the package deps are managed for you. My guess would be that something in python 3.11 has broken mox3. I'll work on removing mox3 usage from the unit tests (for this and other reasons) but in the meantime, using <= 3.10 would be your option.
--Dan
Thanks for the suggestions. I will work on setting up an 3.10 environment.
John Kienitz NS6K
On Mon, Feb 20, 2023 at 4:43 PM Dan Smith via chirp_devel < chirp_devel@intrepid.danplanet.com> wrote:
I am also having issues with tox.
I think you're having troubles with python, tox is just the entry point.
for "tox -e unit -- -k import_logic" 10 tests fail with errors like:
try:
self._args, varargs, varkw, defaults =
inspect.getargspec(method)
E AttributeError: module 'inspect' has no attribute
'getargspec'
.tox/unit/lib/python3.11/site-packages/mox3/mox.py:909: AttributeError
lLooking into this leads me down a rat hole for Python 3 deprecations.
You can see this setup and running in all the gitub action checks, so it's got to be something on your system. The point of tox is to provide isolated virtual environments within which to run the tests, which means the package deps are managed for you. My guess would be that something in python 3.11 has broken mox3. I'll work on removing mox3 usage from the unit tests (for this and other reasons) but in the meantime, using <= 3.10 would be your option.
--Dan _______________________________________________ chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers
participants (3)
-
Bernhard Hailer
-
Dan Smith
-
John Kienitz