A GitLab upgrade is scheduled for Monday, May 12, 2025. The service will be unavailable for a few minutes in the morning. We'll keep you posted on the progress of the upgrade on the Mattermost channel: https://mattermost.inria.fr/devel/channels/gitlab. We recommend that you do not work on the platform until an announcement indicates that maintenance is complete.
I am not easily able to use the example package with nix.
In a clone of this repository, inside a new folder containing a copy of pyproject.toml and my own scheduler, and the correct modification of the toml file to register my scheduler.
What I've tried so far:
nix-shell ../default.nix -A pybatsim-core and then nix-shell -p python3Packages.poetry worked, i.e., I managed to run poetry install and poetry run pybatsim myscheduler.
Writing a custom file to simply add python3Packages.poetry in the propagatedBuildInputs of nur-kapack.pybatsim-core did not work (poetry was not found inside the nix-shell when running poetry install)
Note also that when I entered the nix-shell via the provided default.nix I got some error:
ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/mommess/Documents/BatSimGrid/pybatsim/my_test(A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)WARNING: You are using pip version 21.0.1; however, version 21.3.1 is available.You should consider upgrading via the '/nix/store/4s0h5aawbap3xhldxhcijvl26751qrjr-python3-3.8.9/bin/python3.8 -m pip install --upgrade pip' command.
I packaged pybatsim-example locally (in pybatsim's git repository) in commit 24f4f53f.
I also added an example-shell that enables the use of the example external scheduler.
This enables to run the example scheduler with a command like the following: nix-shell -A example-shell --command 'pybatsim rejector'.
These two files replace the pyproject.toml and poetry.lock files used when packaging with poetry.
In that case, the structure of the project is the following: