-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python bindings: add Value
type
#17
base: python-bindings
Are you sure you want to change the base?
Commits on Feb 24, 2023
-
ci: Always run with sandbox, even on Darwin
And fix a test failure in the sandbox due to /home existing on Darwin but not being accessible in the sandbox since it's a symlink to /System/Volumes/Data/home, see https://github.com/NixOS/nix/actions/runs/4205378453/jobs/7297384658#step:6:2127: C++ exception with description "error: getting status of /home/schnitzel/darmstadt/pommes: Operation not permitted" thrown in the test body. On Linux this wasn't a problem because there /home doesn't exist in the sandbox
Configuration menu - View commit details
-
Copy full SHA for 2c1d537 - Browse repository at this point
Copy the full SHA 2c1d537View commit details -
python: Initialise bindings from Pythonix
Copies part of the tree from Pythonix at Mic92/pythonix@fbc8490 into the ./python subdirectory. These Python bindings don't build yet with the current Nix version, which is why they're not built yet in this commit. Mic92 confirmed that he's okay with the license being changed to the Nix one: NixOS#7735 (comment) Co-Authored-By: Jörg Thalheim <joerg@thalheim.io>
Configuration menu - View commit details
-
Copy full SHA for ae07006 - Browse repository at this point
Copy the full SHA ae07006View commit details -
The python bindings initialised from Pythonix haven't been updated in some Nix versions and would not compile anymore. This commit still doesn't include a working python bindings build, but these are the Nix-update-caused changes that will be necessary for that
Configuration menu - View commit details
-
Copy full SHA for 80e5b4d - Browse repository at this point
Copy the full SHA 80e5b4dView commit details -
python: Integrate incremental and CI build
Makes the python bindings build, both incrementally and for CI. Documentation is not yet included
Configuration menu - View commit details
-
Copy full SHA for e3020bf - Browse repository at this point
Copy the full SHA e3020bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7751140 - Browse repository at this point
Copy the full SHA 7751140View commit details -
python: Format using clang-format
Using the configuration file from NixOS#6721 for less conflicts
Configuration menu - View commit details
-
Copy full SHA for afa4916 - Browse repository at this point
Copy the full SHA afa4916View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26cb4f0 - Browse repository at this point
Copy the full SHA 26cb4f0View commit details -
python: Add exampleEnv to try out the bindings
Will be useful for documentation
Configuration menu - View commit details
-
Copy full SHA for 36a74d1 - Browse repository at this point
Copy the full SHA 36a74d1View commit details -
python: Install the bindings in hopefully the correct location
And don't use the deprecated python3 meson module
Configuration menu - View commit details
-
Copy full SHA for e4df267 - Browse repository at this point
Copy the full SHA e4df267View commit details -
Configuration menu - View commit details
-
Copy full SHA for 402a16d - Browse repository at this point
Copy the full SHA 402a16dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 47bd4a4 - Browse repository at this point
Copy the full SHA 47bd4a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fab794 - Browse repository at this point
Copy the full SHA 3fab794View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fce5fd - Browse repository at this point
Copy the full SHA 2fce5fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for e11273f - Browse repository at this point
Copy the full SHA e11273fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a10ae63 - Browse repository at this point
Copy the full SHA a10ae63View commit details -
Configuration menu - View commit details
-
Copy full SHA for e460074 - Browse repository at this point
Copy the full SHA e460074View commit details
Commits on Feb 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8a9d1fe - Browse repository at this point
Copy the full SHA 8a9d1feView commit details
Commits on Mar 3, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6be7198 - Browse repository at this point
Copy the full SHA 6be7198View commit details -
Configuration menu - View commit details
-
Copy full SHA for 813cbc4 - Browse repository at this point
Copy the full SHA 813cbc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe03f3d - Browse repository at this point
Copy the full SHA fe03f3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e46ddb - Browse repository at this point
Copy the full SHA 7e46ddbView commit details -
python: Handle null's in expressions correctly
And test that null bytes currently end strings
Configuration menu - View commit details
-
Copy full SHA for b69d933 - Browse repository at this point
Copy the full SHA b69d933View commit details -
python: Fix boolean to nix conversion
It didn't cause a problem because it converted True to 1, which still allowed 1 == True to succeed in Python (using assertEqual)
Configuration menu - View commit details
-
Copy full SHA for af8d911 - Browse repository at this point
Copy the full SHA af8d911View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb06d43 - Browse repository at this point
Copy the full SHA bb06d43View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd1442a - Browse repository at this point
Copy the full SHA cd1442aView commit details
Commits on Mar 9, 2023
-
python: We don't need to install the bindings into a subdirectly
That in fact doesn't work for importing
Configuration menu - View commit details
-
Copy full SHA for 1e76e28 - Browse repository at this point
Copy the full SHA 1e76e28View commit details -
Remove python from manual build again
Using a symlink hacky and breaks in some ways
Configuration menu - View commit details
-
Copy full SHA for 724d1d8 - Browse repository at this point
Copy the full SHA 724d1d8View commit details -
Very simple Nix source filtering
So that we don't have to rebuild Nix every time the python bindings change
Configuration menu - View commit details
-
Copy full SHA for 56a0ab0 - Browse repository at this point
Copy the full SHA 56a0ab0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75696bd - Browse repository at this point
Copy the full SHA 75696bdView commit details -
Fix some unset variable problems with vars-and-functions.sh
- BASH_SOURCE[0] doesn't exist for evaluations under `eval` - NIX_STORE may not be set
Configuration menu - View commit details
-
Copy full SHA for b9dc4e4 - Browse repository at this point
Copy the full SHA b9dc4e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 090ee61 - Browse repository at this point
Copy the full SHA 090ee61View commit details -
Alternate approach to calling init.sh
Previously the python bindings derivation would use Nix as its source, call configure on that, just to extract the two files tests/init.sh and (the generated one) tests/common/vars-and-functions.sh The new approach is to instead have a separate derivation extracting these two files and having a small wrapper around them
Configuration menu - View commit details
-
Copy full SHA for 22432b3 - Browse repository at this point
Copy the full SHA 22432b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1df5ea8 - Browse repository at this point
Copy the full SHA 1df5ea8View commit details -
Make buildPythonApplication test work
Tests that the Nix bindings can be used as a Python dependency in Nix builds
Configuration menu - View commit details
-
Copy full SHA for 754e342 - Browse repository at this point
Copy the full SHA 754e342View commit details
Commits on Mar 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 29d3a70 - Browse repository at this point
Copy the full SHA 29d3a70View commit details -
Configuration menu - View commit details
-
Copy full SHA for e412e35 - Browse repository at this point
Copy the full SHA e412e35View commit details -
Configuration menu - View commit details
-
Copy full SHA for c87a1b4 - Browse repository at this point
Copy the full SHA c87a1b4View commit details
Commits on Mar 11, 2023
-
python: Use global EvalState for now
Creating a new one for each call is wasteful and doesn't scale to a composable interface, as the same EvalState must be used for operations on the same Values. Ideally we'd store EvalState in the python module, or make it a first class object.
Configuration menu - View commit details
-
Copy full SHA for 7cc4ac2 - Browse repository at this point
Copy the full SHA 7cc4ac2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e7eff4 - Browse repository at this point
Copy the full SHA 6e7eff4View commit details