Skip to content

PySC packaging for PyPi #128

@gupichon

Description

@gupichon

Description, motivation and use case
The following error appears when running tests on GitHub in dependent projects. This is due to the packaging of PySC, which is not published on PyPI (neither as an independent package nor bundled inside the PyAML package).

Run python -m pytest tests
ImportError while loading conftest '/home/runner/work/tango-pyaml/tango-pyaml/tests/conftest.py'.
tests/conftest.py:7: in <module>
    from tango.pyaml.controlsystem import ConfigModel as CsCM, TangoControlSystem
tango/pyaml/controlsystem.py:5: in <module>
    from pyaml.control.controlsystem import ControlSystem
/opt/hostedtoolcache/Python/3.14.2/x64/lib/python3.14/site-packages/pyaml/control/controlsystem.py:30: in <module>
    from ..tuning_tools.orbit import Orbit
/opt/hostedtoolcache/Python/3.14.2/x64/lib/python3.14/site-packages/pyaml/tuning_tools/orbit.py:19: in <module>
    from ..external.pySC.pySC import ResponseMatrix as pySC_ResponseMatrix
E   ModuleNotFoundError: No module named 'pyaml.external.pySC'
Error: Process completed with exit code 4.

Proposed solution
Package PySC inside the PyAML package. The exact implementation details will be defined later.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions