Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
13d8ee6
Delete makefile code
ni-jfitzger Oct 14, 2026
1482ec1
Add makefile replacement code and unit tests
ni-jfitzger Oct 14, 2026
27bcf6f
Speed up codegen by skipping writing processed_metadata on every temp…
ni-jfitzger Oct 14, 2026
d5710ae
Merge branch 'master' of https://github.com/ni-jfitzger/nimi-python i…
ni-jfitzger Oct 23, 2026
b39dbe4
Rename SPHINX_FILES_TO_GENERATE to reflect inclusion of a non-SPHINX …
ni-jfitzger Oct 23, 2026
d07b4c3
Change name of BUILD_DIR variable back to the original BUILD_HELPER_DIR
ni-jfitzger Oct 23, 2026
8fad161
Only unload and load metadata once for each driver api, when doing co…
ni-jfitzger Oct 23, 2026
a903de1
Revert "Only unload and load metadata once for each driver api, when …
ni-jfitzger Oct 23, 2026
f7940e2
Include codegen.py in coverage analysis.
ni-jfitzger Oct 23, 2026
507b44c
Fix coverage reporting.
ni-jfitzger Oct 29, 2026
3f11006
Cap pytest dep version until they fix the new bug
ni-jfitzger Oct 29, 2026
61b18e5
Merge branch 'master' of https://github.com/ni/nimi-python into repla…
ni-jfitzger Nov 2, 2026
d976b05
TEMPLATE_DIR -> TEMPLATES_DIR
ni-jfitzger Nov 30, 2026
51e3a9c
Eliminate comment about everything being regenerated on every attempt.
ni-jfitzger Nov 30, 2026
95a9b07
Rename Driver class to PythonBindingConfig and update variables and c…
ni-jfitzger Nov 30, 2026
d33a589
Edit stale comment and stop codegen'ing nimodinst at the end.
ni-jfitzger Nov 30, 2026
7ab76b8
Move various lookup functions inside PythonBindingConfig class
ni-jfitzger Nov 30, 2026
8b4ac85
Rename find_template to get_template
ni-jfitzger Nov 30, 2026
657f7b4
Update directions for bypassing tox.
ni-jfitzger Nov 30, 2026
2560911
Update wording in section about codegen.
ni-jfitzger Nov 30, 2026
0d074d9
Flesh out type annotations for codegen.py.
ni-jfitzger Nov 30, 2026
79f685f
We don't need WSL, anymore.
ni-jfitzger Nov 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*.txt text=set eol=lf
*.yml text=set eol=lf
VERSION text=set eol=lf
*.mak text=set eol=lf
Makefile text=set eol=lf
License text=set eol=lf
*.rc text=set eol=lf
*.mako text=set eol=lf
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ generated/*/build/
generated/*/dist/
generated/*/log/
generated/*/*.egg-info/
generated/driver_file_built
generated/printed_global_files
generated/junit/
generated/*/coverage.xml

Expand All @@ -33,7 +31,6 @@ nirfsaunittest.xml
niscopeunittest.xml
nitclkunittest.xml
codegen.xml
commands.log
.vscode/launch.json
.vscode/settings.json

Expand Down
32 changes: 24 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ In order to have the ability to build and run the tests you will need a few thin

### Windows:

- Install and enable [Windows Subsystem for Linux](https://msdn.microsoft.com/en-us/commandline/wsl/install_guide)
- Install the following in **Windows Subsystem for Linux**:
- GNU Make: ``sudo apt-get install make``
- zip: ``sudo apt-get install zip``
- 64-bit [Python](https://www.python.org/downloads/)
-- Use the version that `build_test` uses. See `envlist` definition in [tox.ini](./tox.ini)
- Install 64-bit [Python](https://www.python.org/downloads/)
- Use the version that `build_test` uses. See `envlist` definition in [tox.ini](./tox.ini)

If you use pyenv-win, make sure the required interpreters are available.
Any version listed when you run `pyenv versions` is available.

### macOS:

Expand All @@ -42,9 +41,14 @@ In order to have the ability to build and run the tests you will need a few thin

### All:

Once your system has been setup with the above, install required additional Python modules using PyPI.
Install tox using your Python package manager. For example:

Windows: py -m pip install --upgrade tox
macOS/Linux: python3 -m pip install --user --upgrade tox

sudo pip install pytest tox --upgrade
Tox installs the dependencies for each environment. Install any additional Python versions listed in `envlist` if you want tox to run those test environments; missing interpreters are skipped.

If you install tox with pipx, make sure its virtual environment uses a Python version supported by this project. If tox was installed while an older pyenv version was selected, uninstall and reinstall tox after selecting a supported version.


Building **[`nimi-python`](https://github.com/ni/nimi-python)**
Expand Down Expand Up @@ -78,6 +82,18 @@ Building **[`nimi-python`](https://github.com/ni/nimi-python)**

tox -e clean

1. To generate the code for a subset of the Python bindings, pass arguments to the code generator through `tox`. For example:

tox -e py312-codegen -- --driver nidmm --driver nitclk

You can bypass `tox` and run the code generator directly if for some reason you prefer it.
In order to do this, you must install all dependencies as listed in the `deps` section of
[tox.ini](./tox.ini); then run:

`python -m build.codegen generate [--driver DRIVER ...]`

The code generator also supports `clean` and `installers` commands. Use `--help` for details.


Updating submodules
-------------------
Expand Down
18 changes: 0 additions & 18 deletions Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions build.sh

This file was deleted.

168 changes: 0 additions & 168 deletions build/Makefile

This file was deleted.

84 changes: 0 additions & 84 deletions build/__main__.py

This file was deleted.

Loading
Loading