srobo / competition-simulator

A simulator for Student Robotics Virtual Competitions
https://studentrobotics.org/docs/simulator/
MIT License
8 stars 2 forks source link

Ensure compatibility with other sr.* packages #399

Closed PeterJCLaw closed 1 year ago

PeterJCLaw commented 1 year ago

Move (rather than delete) the namespace marker file so that it's still easy to use mypy while avoiding the conflicts which previously prevented this package being used alongside others.

Tested by installing sr.comp into the same virtualenv and then running:

PYTHONPATH=$PWD/modules:$PWD/stubs python -c 'import sr.comp, sr.robot3'

Previously this would have raised an ImportError about sr.robot3, but now it succeeds.

https://github.com/srobo/competition-simulator/issues/381

Builds on #396 for cleaner CI.