Skip to content

add missing __init__.py to models package#294

Merged
jtriley merged 1 commit intomainfrom
fix-models-package
Mar 9, 2026
Merged

add missing __init__.py to models package#294
jtriley merged 1 commit intomainfrom
fix-models-package

Conversation

@jtriley
Copy link
Contributor

@jtriley jtriley commented Mar 9, 2026

The current v0.12.0 release is getting the following error during testing:

coldfront-deployment-f9c5d795f-fqqfh coldfront   File "/opt/venv/lib/python3.12/site-packages/coldfront_plugin_cloud/base.py", line 10, in <module>
coldfront-deployment-f9c5d795f-fqqfh coldfront     from coldfront_plugin_cloud.models.quota_models import QuotaSpecs
coldfront-deployment-f9c5d795f-fqqfh coldfront ModuleNotFoundError: No module named 'coldfront_plugin_cloud.models'
coldfront-deployment-f9c5d795f-fqqfh coldfront No module named 'coldfront_plugin_cloud.models'

This is likely due to the models package being left out of the final build due to __init__.py missing.

@jtriley
Copy link
Contributor Author

jtriley commented Mar 9, 2026

Just confirming this fixes the issue.

$ pip install git+https://github.com/nerc-project/coldfront-plugin-cloud@a86b593a231e0ac8d6e33e552cbd4985bc5ec814
$ pip show -f coldfront_plugin_cloud | grep -i models
  coldfront_plugin_cloud/models/__init__.py
  coldfront_plugin_cloud/models/__pycache__/__init__.cpython-314.pyc
  coldfront_plugin_cloud/models/__pycache__/quota_models.cpython-314.pyc
  coldfront_plugin_cloud/models/__pycache__/usage_models.cpython-314.pyc
  coldfront_plugin_cloud/models/quota_models.py
  coldfront_plugin_cloud/models/usage_models.py
  coldfront_plugin_cloud/tests/unit/__pycache__/test_usage_models.cpython-314.pyc
  coldfront_plugin_cloud/tests/unit/test_usage_models.py

@jtriley jtriley merged commit 643fa00 into main Mar 9, 2026
4 checks passed
@jtriley jtriley deleted the fix-models-package branch March 9, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant