Skip to content

chore: remove ops dependency in framework templates - #2733

Open
Thanhphan1147 wants to merge 15 commits into
canonical:mainfrom
Thanhphan1147:bump-ops-version-to-3.x
Open

chore: remove ops dependency in framework templates#2733
Thanhphan1147 wants to merge 15 commits into
canonical:mainfrom
Thanhphan1147:bump-ops-version-to-3.x

Conversation

@Thanhphan1147

@Thanhphan1147 Thanhphan1147 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove ops dependency from all framework requirements.txt.j2 templates since paas-charm already lists ops as a dependency

Thanhphan1147 and others added 11 commits May 26, 2026 12:09
…tensions

- Add conditional dpcharmlibs-interfaces injection via charm-python-packages
  when valkey_client interface is declared in requires
- Add commented valkey relation to all framework init templates
- Add Valkey integration to integrations.rst documentation
- Add Valkey environment variables to environment_variables.rst
- Add regression test for valkey python package injection

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…lient_interface' of github.com:Thanhphan1147/charmcraft into update_init_template_and_extensions_to_support_valkey_client_interface
Bumps ops dependency from ~= 2.17 to ~= 3.7 in all framework
requirements.txt.j2 templates to ensure compatibility with
dpcharmlibs-interfaces>=1.0.0 which requires ops>=3.

This enables compatibility with paas-charm 1.11.3+.
@Thanhphan1147
Thanhphan1147 marked this pull request as ready for review June 17, 2026 18:18
@Thanhphan1147

Copy link
Copy Markdown
Contributor Author

Hi @lengau, This PR is ready for review. I found this issue during testing which preventing charms to install paas_charm v1.11.3 which contains the support for valkey

@Thanhphan1147 Thanhphan1147 changed the title chore: bump ops version to ~= 3.7 in framework templates chore: remove ops dependency in framework templates Jun 29, 2026
Copilot AI review requested due to automatic review settings June 29, 2026 12:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the explicit ops dependency from the framework requirements.txt.j2 templates, relying instead on paas-charm to bring in ops as a dependency.

Changes:

  • Dropped ops from Django/Flask/FastAPI/Go/Spring Boot/ExpressJS framework requirements.txt.j2 templates.
  • Kept paas-charm>=1.0,<2 as the sole requirement in those templates.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
charmcraft/templates/init-spring-boot-framework/requirements.txt.j2 Removes explicit ops requirement; keeps paas-charm only.
charmcraft/templates/init-go-framework/requirements.txt.j2 Removes explicit ops requirement; keeps paas-charm only.
charmcraft/templates/init-flask-framework/requirements.txt.j2 Removes explicit ops requirement; keeps paas-charm only.
charmcraft/templates/init-fastapi-framework/requirements.txt.j2 Removes explicit ops requirement; keeps paas-charm only.
charmcraft/templates/init-expressjs-framework/requirements.txt.j2 Removes explicit ops requirement; keeps paas-charm only.
charmcraft/templates/init-django-framework/requirements.txt.j2 Removes explicit ops requirement; keeps paas-charm only.

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.

3 participants