Skip to content

Commit

Permalink
Rename paas-app-charmer -> paas-charm (#1961)
Browse files Browse the repository at this point in the history
The library
[`paas-app-charmer`](https://github.com/canonical/paas-app-charmer) has
been renamed to [`paas-charm`](https://github.com/canonical/paas-charm).

The change is backward compatible, as last version of the
`paas-app-charmer` will be empty and will point to the new version (and
will keep the old entrypoint classes).

This PR changes the references from paas-app-charm to paas-charm and
also the main charm module to the new location (`paas_app_charmer`
module renamed to `paas_charm`).
  • Loading branch information
javierdelapuente authored Oct 17, 2024
1 parent f3b7108 commit 2675880
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ops ~= 2.17
paas-app-charmer>=1.1,<2
paas-charm>=1.0,<2
4 changes: 2 additions & 2 deletions charmcraft/templates/init-django-framework/src/charm.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import typing

import ops

import paas_app_charmer.django
import paas_charm.django

logger = logging.getLogger(__name__)


class {{ class_name }}(paas_app_charmer.django.Charm):
class {{ class_name }}(paas_charm.django.Charm):
"""Django Charm service."""

def __init__(self, *args: typing.Any) -> None:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ops ~= 2.17
paas-app-charmer>=1.1,<2
paas-charm>=1.0,<2
4 changes: 2 additions & 2 deletions charmcraft/templates/init-fastapi-framework/src/charm.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import typing

import ops

import paas_app_charmer.fastapi
import paas_charmer.fastapi

logger = logging.getLogger(__name__)


class {{ class_name }}(paas_app_charmer.fastapi.Charm):
class {{ class_name }}(paas_charm.fastapi.Charm):
"""FastAPI Charm service."""

def __init__(self, *args: typing.Any) -> None:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ops ~= 2.17
paas-app-charmer>=1.1,<2
paas-charm>=1.0,<2
4 changes: 2 additions & 2 deletions charmcraft/templates/init-flask-framework/src/charm.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import typing

import ops

import paas_app_charmer.flask
import paas_charm.flask

logger = logging.getLogger(__name__)


class {{ class_name }}(paas_app_charmer.flask.Charm):
class {{ class_name }}(paas_charm.flask.Charm):
"""Flask Charm service."""

def __init__(self, *args: typing.Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion charmcraft/templates/init-go-framework/requirements.txt.j2
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ops ~= 2.17
paas-app-charmer>=1.1,<2
paas-charm>=1.0,<2
4 changes: 2 additions & 2 deletions charmcraft/templates/init-go-framework/src/charm.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import typing

import ops

import paas_app_charmer.go
import paas_charm.go

logger = logging.getLogger(__name__)


class {{ class_name }}(paas_app_charmer.go.Charm):
class {{ class_name }}(paas_charm.go.Charm):
"""Go Charm service."""

def __init__(self, *args: typing.Any) -> None:
Expand Down

0 comments on commit 2675880

Please sign in to comment.