Skip to content

Commit

Permalink
chore: init charm (#1908)
Browse files Browse the repository at this point in the history
with `charmcraft init --profile flask-framework`
  • Loading branch information
M7mdisk authored Jul 26, 2024
1 parent 644d850 commit 85f67bd
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
9 changes: 9 additions & 0 deletions charm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
venv/
build/
*.charm
.tox/
.coverage
__pycache__/
*.py[cod]
.idea
.vscode/
18 changes: 18 additions & 0 deletions charm/charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: charmhub-io

type: charm

bases:
- build-on:
- name: ubuntu
channel: "22.04"
run-on:
- name: ubuntu
channel: "22.04"

summary: The charm for the charmhub.io website

description: The charm for the charmhub.io website, built with PaaS app charmer

extensions:
- flask-framework
1 change: 1 addition & 0 deletions charm/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
paas-app-charmer==1.*
30 changes: 30 additions & 0 deletions charm/src/charm.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env python3
# Copyright 2024 Moe Isk
# See LICENSE file for licensing details.

"""Flask Charm entrypoint."""

import logging
import typing

import ops

import paas_app_charmer.flask

logger = logging.getLogger(__name__)


class FlaskCharm(paas_app_charmer.flask.Charm):
"""Flask Charm service."""

def __init__(self, *args: typing.Any) -> None:
"""Initialize the instance.
Args:
args: passthrough to CharmBase.
"""
super().__init__(*args)


if __name__ == "__main__":
ops.main.main(FlaskCharm)

0 comments on commit 85f67bd

Please sign in to comment.