summaryrefslogtreecommitdiff
path: root/gr-utils/python
Commit message (Collapse)AuthorAgeFilesLines
* gr-utils: restructure plot_tools folderjapm482020-04-1015-3892/+0
| | | | Move python/utils/ to plot_tools/ as per issue #2462.
* gr-utils: move read_file_metadata outside pythonjapm482020-04-102-75/+1
|
* gr-utils: move modtool launcher into its folderjapm482020-04-102-21/+0
|
* gr-utils: restructure {mod,block}tool foldersjapm482020-04-1093-21302/+0
| | | | | Move modtool and blocktool outside of the python folder, as per issue #2462.
* Switch from boost pointers to std C++11 pointersThomas Habets2020-04-011-2/+2
| | | | | | | | | | | | | | | | | | | Most of this code is automated code changes: ``` set -e SUB="s/dummy/dummy/" for i in shared_ptr make_shared dynamic_pointer_cast weak_ptr enable_shared_from_this get_deleter; do SUB="$SUB;s/boost::$i/std::$i/g" done SUB="$SUB;s^#include <boost/shared_ptr.hpp>^#include <memory>^g" SUB="$SUB;s^namespace boost^namespace std^g" find . \( -name "*.cc" -o -name "*.h" -o -name "*.i" -o -name "*.cxx" -o -name "*.py" \) -print0 | xargs -0 sed -i "$SUB" ``` Only one manual change. In `./gr-fec/lib/fec_mtrx_impl.cc`, add `#include <algorithm>`.
* modtool: use prefix path for modtool instead of prefsJosh Morman2020-03-312-6/+2
| | | | | | | | | | When a prefix gets installed, the [modtool] section in prefs hardcodes the path to the templates in the newly installed prefix as a global path for all modtools. This creates major problems when bouncing between prefixes, especially when newmod changes between releases Why not just use the prefix as the root of where to look for the templates
* gr-newmod: Update MANIFEST with `gr_supported_version`Sebastian Müller2020-02-091-0/+1
| | | | | | | Cgran was extended to display supported GNU Radio versions of OOTs. To leverage this feature, a `gr_supported_version` key needs to be provided by the OOT's MANIFEST. This commit extends gr-newmod's MAIFEST by this key.
* modtool: Display import errorsChris Donohue2020-02-071-0/+1
|
* Update license header to SPDX formatdevnulling2020-01-2777-1029/+80
|
* blocktool: additional xmlgen options needed to parseJosh Morman2020-01-241-1/+4
|
* blocktool: add include paths optionJosh Morman2020-01-243-2/+7
|
* Doxygen: 2 obsolete variables and DOT_GRAPH_MAX_NODES to 500Valerii Zapodovnikov2020-01-212-28/+0
|
* modtool: fix alignment of version infoClayton Smith2020-01-121-2/+2
|
* modtool: ensure add_py_qa and add_cc_qa are booleansClayton Smith2020-01-111-4/+8
|
* Disable Python 2kMarcus Müller2020-01-043-23/+2
| | | | | | | | | | - Update SWIG settings - Update CMake - Remove Python2 references Note: This does not touch a lot of Python files, and many Python files will still work with Python 2 after this commit. However, we won't allow that in our CMake, and the support will be gone too.
* modtool: prevent tagged_stream under pythonJosh Morman2020-01-031-4/+6
| | | | | | | | | | Currently tagged stream blocks are not implemented for python in modtool. There is a nasty exception that happens, so this is intended to validate and throw the appropriate exception before trying to generate the block Addresses #2489
* gr-modtool: Update the validation in Modtool AddSwapnil Negi2020-01-032-5/+4
|
* Modtool: Update - Add option to convert blacklisted filesNicolas Cuervo2020-01-022-2/+6
| | | | | | Also avoid the misleading behavior that implies conversion when it isn't happening while also deleting the XML with a blacklisted name.
* Block header parsing tool: GSoC 2019 (#2750)Arpit Gupta2019-12-1927-24/+2178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add base.py file in cli module to import override Click functions * Create cli and core base module for AST generation of header blocks * Create basic CLI for blocktool with minimal support * Add Sequence Completer to CLI and successful generation of AST * CLI structure complete with parseheader command * Basic core structure complete * Add test script gr_blocktool to run the tool * Add JSON schema and validation for parsed json output file * Change properties and methods key to list in JSON schema * Create an independent api from blocktool * Bug fix for abslute path of the header files * Create basic parser core api * Parse the block header documentation * Expose the core api, minor bug fixes * Create the code pylint compatible * Modify cli to accept file_path as an argument, parse default values of make function arguments * Fix: Namespace parsing of block header file * Parse the io_signature from the implementation file of the block header * Create json file generator * Add key-value io_signature and docstring in json schema, change sample generated json output * Fix: squash an I/O parsing bug * Change directory structure for blocktool tests * Add Blocktool unittest * Removed empty strings, make the code pylint compatible * Use str.format() to get output * Implement YAML generator * Add a new CLI argument to parse a complete header directory * Add Logger to log errors without raising exceptions * Create output schema file in blocktool core * Change directory structure of blocktool and cli commands * write unittests for Blocktool Excceptions * Add sample yaml files * Simplify blocktool cli structure * Refactor blocktool exception handling * Split long blocktool unit-tests * Parse message ports from the implementation file * Add tests for parsed message port id, update sample json files * Add blocktool subdirectory, files in CMakeLists.txt * Remove test files to run Blocktool * Fix: locates implementation file by traversing the module * Integrate blocktool with modtool as an external plugin * Create proper formatting of io_signature for yaml files * Extend modtool makeyaml command to extend support for blocktool * Remove external plugin for modtool support, add blocktool independent script * Minor formatiing, change function name due to conflict with modtool function * Add support to read and add blocktool special comments in header file * Fix: Key Errors, Modify Documentation Reader * Raise warning in case of conflict in the parsed information and blocktool comments * Remove all the blocktool boilerplate cli code and provide minimal support * Remove gr_blocktool script and use blocktool as a python module * Major refactoring of the modtool cli structure to support the blocktool API * Check for PyGCCXML dependency during build * Add README.md for gr-blocktool and remove modtool cli warnings
* Add gr::modname namespace to Boost UTF templateAnders Kalør2019-12-041-4/+9
|
* modtool: use Boost UTF for 3.8 OOT blocksAnders Kalør2019-12-043-7/+23
| | | | | | | | modtool was adding CppUnit qa code for gnuradio 3.8. Boost UTF support was already implemented in #2080, but for some reason not in add.py. This commit adds the code from #2080, adapted to the new modtool. Note that it is based on #2592. Fixes #2722, fixes #2697.
* modtool: c++ qa tests cmake errorJosh Morman2019-12-041-2/+2
| | | | | | | C++ QA tests were not being added to the correct spot in the lib/CMakeLists Fixes #2559
* modtool: allow empty arg list in interactive modeMarcus Müller2019-11-011-1/+7
|
* Improve GRC YAML templateAnders Kalør2019-08-291-15/+17
|
* 3.9. OOT needs to rely on 3.9Marcus Müller2019-08-221-1/+1
| | | | | It would be advantageous to not hard-code this, but that requires the templates to be CMake-time configured.
* Fix for more misc typosluz.paz2019-08-101-1/+1
|
* Tree: clang-format without the include sortingMarcus Müller2019-08-091-2/+2
|
* modtool: Remove checking for click in CMakeListsHåkon Vågsether2019-08-091-23/+0
|
* modtool: restore rm functionalityJosh Morman2019-08-051-1/+3
| | | | | | | | Add import for cli_input as the cli is called in rm.py I suspect that this should be pulled out into cli/rm.py but we'll stick with the low risk fix for now, to be refactored later Fixes #2652
* modtool: use correct yaml comments for grc templateJosh Morman2019-08-051-17/+17
| | | | | GRC template was creating parser issues from the getgo because of the lingering XML comments. Use proper YML comments
* modtool: put proper quotes when unescaped shell pathsJosh Morman2019-07-192-4/+4
| | | | | | | | | | Adds quotes to paths to prevent issues when the user has a space in their OOT shell paths Slight change to #2560 which should prevent CI from broadly failing Fixes #2443
* Renaming the VERSION_INFO_* to VERSION_ macros consistent w/ VERSIONINGMarcus Müller2019-07-171-4/+4
|
* modtool: remove quotes for python hier block templateJosh Morman2019-07-171-2/+2
| | | | fixes #2628
* Check seperately for click-plugins missingNick Østergaard2019-07-111-1/+10
| | | | | It was hard to determine from the cmake output what python module was missing. Let the error output be more exact.
* cmake: check for python module click as dependency of modtoolAndrej Rode2019-06-261-0/+12
| | | | | | | | Previously cmake did not check if click is installed as it is a runtime requirement. If CMAKE_CROSSCOMPILING is set the module checking is skipped. Closes #2292
* gr_modtool: fix for yaml generatorArpit Gupta2019-06-182-6/+10
|
* modtool: add 3.8 version for info commandJosh Morman2019-06-151-0/+2
| | | | | | | | Code was there to give the correct printout, just in another place Copy the logic for finding the post-3.8 version information to the code that is executed by the gr_modtool info command fixes #2403
* modtool: Remove cppunit-related filesMartin Braun2019-05-283-125/+0
| | | | These should have been removed as part of the CppUnit removal.
* modtool: Improve style of some comments in templateJohannes Schmitz2019-05-121-3/+3
|
* cmake: Enable CMAKE_EXPORT_COMPILE_COMMANDSJohannes Schmitz2019-05-111-0/+3
| | | | | | | | | | | When CMAKE_EXPORT_COMPILE_COMMANDS is ON, a file compile_commands.json will be created in the build directory that enables code completion engines to find all include directories and provide a very comprehensive auto completion experience without any manual IDE configuration. A nice example for this is the VS Code extension cpptools that is developed by Microsoft. Of course this is not limited to VS Code and works with other engines such as YouCompleteMe as well.
* modtool/Py2k: str.maketrans('','','*&') -> replace('*','').replace('&','')Marcus Müller2019-04-211-1/+1
| | | | | This makes modtool Py2k compatible, as it seems, and probably is light on the runtime
* modtool test: Don't silence ResourceWarning on systems without itMarcus Müller2019-04-211-1/+5
|
* modtool: Supply SimpleNamespace for legacy PythonMarcus Müller2019-04-211-1/+16
|
* modtool core: Don't import CLI functionality unless CLI is usedMarcus Müller2019-04-213-3/+5
| | | | | | | This allows usage of scripted modtool on systems without click installed. Only with this, headless unit testing can be done without installing click.
* modtool tests: Don't install tests, but make them work in build dirMarcus Müller2019-04-212-13/+39
| | | | | This includes explicitly stating the template directory in the test, and changing the CMakeLists to not install but test.
* modtool/newmod: Better error reporting on wrong template dirMarcus Müller2019-04-211-2/+2
|
* modtool/update: late import of GRC avoids breakage on GRC-less systemsMarcus Müller2019-04-211-1/+1
| | | | | | Only the update command of modtool needs GRC. However, since all commands are imported on modtool usage every time, this means modtool can't run on systems where GRC wasn't installed beforehand.
* modtool: fix modtool tests for missing pylint dependencyArpit Gupta2019-04-211-10/+41
|
* modtool: Set C/C++ standard to 11 for OOT's.Ron Economos2019-04-211-0/+20
| | | | Allows OOT's to compile with gcc 5.4 (Ubuntu 16.04).
* modtool: Update Python templatesJohannes Demel2019-03-311-7/+7
| | | | | | | Update templates for Python blocks and Python QA code. Previously, these templates created broken import statements. Also, a deprecated call to `gr_unittest.run(...)` is updated to not include a filename argument anymore. Finally, the python block signature generator was updated.