Skip to content

Commit

Permalink
Regenerated examples for a2b741c
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Dec 2, 2024
1 parent a2b741c commit a3591d9
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 64 deletions.
2 changes: 1 addition & 1 deletion examples/default/default/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import annotations

__version__ = "2024.11.1"
__version__ = "2024.12.1"
8 changes: 3 additions & 5 deletions examples/default/default/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@
# 1. Django Core Settings
# https://docs.djangoproject.com/en/5.1/ref/settings/

ALLOWED_HOSTS = env.list(
"ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str
)
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str)

ASGI_APPLICATION = "default.asgi.application"

Expand Down Expand Up @@ -261,7 +259,7 @@

SECRET_KEY = env.str(
"SECRET_KEY",
default="66056387b138f85f61f4c03b913c4c0cd49d7307b2df45d38ca3047cce657ba2",
default="495c3aa11779235fe674bb5ea3d9ab4ff137c7a8acbff81c8c79ebd1661eb703",
)

SECURE_HSTS_INCLUDE_SUBDOMAINS = PROD
Expand Down Expand Up @@ -448,7 +446,7 @@
)

# sentry
if PROD and (SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme:
if PROD and(SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme:
sentry_sdk.init(
dsn=SENTRY_DSN.geturl(),
environment=env.str(
Expand Down
8 changes: 4 additions & 4 deletions examples/default/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ dependencies = [
"openpyxl",
"psycopg[binary, pool]",
"sentry-sdk[django]",
"whitenoise"
"whitenoise",
]
dynamic = ["version"]
name = "default"
requires-python = ">=3.12"
dynamic = ["version"]

[project.optional-dependencies]
docs = [
Expand Down Expand Up @@ -76,13 +76,13 @@ types = [
"django-stubs",
"mypy",
"types-croniter",
"types-openpyxl"
"types-openpyxl",
]

[tool.bumpver]
commit = true
commit_message = ":bookmark: bump version {old_version} -> {new_version}"
current_version = "2024.11.1"
current_version = "2024.12.1"
push = false # set to false for CI
tag = false
version_pattern = "YYYY.MM.INC1"
Expand Down
1 change: 0 additions & 1 deletion examples/default/templates/500.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% extends "base.html" %}

{% block content %}
<h1>500</h1>
<p>Uh oh! Something went wrong on our end.</p>
Expand Down
13 changes: 0 additions & 13 deletions examples/default/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
{% load static %}
{% load django_htmx %}
{% load tailwind_cli %}

<!DOCTYPE html>
<html lang="en" class="h-full">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>

{% block title %}
Default
{% endblock title %}

</title>
<meta name="description" content="">
<meta name="author" content="">
<link rel="preconnect" href="https://rsms.me" preconnect>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">

{% block css %}
{% endblock css %}

{% tailwind_css %}
<script src="https://unpkg.com/[email protected]"
integrity="sha384-D1Kt99CQMDuVetoL1lrYwg5t+9QdHe7NLX/SoJYkXDFfX37iInKRy5xLSi8nO7UC"
Expand Down Expand Up @@ -70,26 +65,18 @@
src="https://unpkg.com/[email protected]"
integrity="sha384-Rpe/8orFUm5Q1GplYBHxbuA8Az8O8C5sAoOsdbRWkqPjKFaxPgGZipj4zeHL7lxX"
crossorigin="anonymous"></script>

{% block javascript_head %}
{% endblock javascript_head %}

</head>

{% block body %}
<body {% if debug %}class="debug-screens"{% endif %}
hx-ext="head-support, preload">
<main class="mt-16">

{% block content %}
{% endblock content %}

</main>

{% block javascript_foot %}
{% endblock javascript_foot %}

</body>
{% endblock body %}

</html>
2 changes: 1 addition & 1 deletion examples/default/tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


def test_version():
assert __version__ == "2024.11.1"
assert __version__ == "2024.12.1"
2 changes: 1 addition & 1 deletion examples/postgis/default/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import annotations

__version__ = "2024.11.1"
__version__ = "2024.12.1"
8 changes: 3 additions & 5 deletions examples/postgis/default/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@
# 1. Django Core Settings
# https://docs.djangoproject.com/en/5.1/ref/settings/

ALLOWED_HOSTS = env.list(
"ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str
)
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str)

ASGI_APPLICATION = "default.asgi.application"

Expand Down Expand Up @@ -261,7 +259,7 @@

SECRET_KEY = env.str(
"SECRET_KEY",
default="1a84616666afc91bf471cb434814ecfd0136f42f97d73eac49f0297bc20fdd76",
default="ec352a3c15c61fe61dc917887da4796091ae6a4abe2263d40804c424c700d386",
)

SECURE_HSTS_INCLUDE_SUBDOMAINS = PROD
Expand Down Expand Up @@ -448,7 +446,7 @@
)

# sentry
if PROD and (SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme:
if PROD and(SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme:
sentry_sdk.init(
dsn=SENTRY_DSN.geturl(),
environment=env.str(
Expand Down
8 changes: 4 additions & 4 deletions examples/postgis/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ dependencies = [
"openpyxl",
"psycopg[binary, pool]",
"sentry-sdk[django]",
"whitenoise"
"whitenoise",
]
dynamic = ["version"]
name = "default"
requires-python = ">=3.12"
dynamic = ["version"]

[project.optional-dependencies]
docs = [
Expand Down Expand Up @@ -76,13 +76,13 @@ types = [
"django-stubs",
"mypy",
"types-croniter",
"types-openpyxl"
"types-openpyxl",
]

[tool.bumpver]
commit = true
commit_message = ":bookmark: bump version {old_version} -> {new_version}"
current_version = "2024.11.1"
current_version = "2024.12.1"
push = false # set to false for CI
tag = false
version_pattern = "YYYY.MM.INC1"
Expand Down
13 changes: 0 additions & 13 deletions examples/postgis/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
{% load static %}
{% load django_htmx %}
{% load tailwind_cli %}

<!DOCTYPE html>
<html lang="en" class="h-full">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>

{% block title %}
Default
{% endblock title %}

</title>
<meta name="description" content="">
<meta name="author" content="">
<link rel="preconnect" href="https://rsms.me" preconnect>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">

{% block css %}
{% endblock css %}

{% tailwind_css %}
<script src="https://unpkg.com/[email protected]"
integrity="sha384-D1Kt99CQMDuVetoL1lrYwg5t+9QdHe7NLX/SoJYkXDFfX37iInKRy5xLSi8nO7UC"
Expand Down Expand Up @@ -70,26 +65,18 @@
src="https://unpkg.com/[email protected]"
integrity="sha384-Rpe/8orFUm5Q1GplYBHxbuA8Az8O8C5sAoOsdbRWkqPjKFaxPgGZipj4zeHL7lxX"
crossorigin="anonymous"></script>

{% block javascript_head %}
{% endblock javascript_head %}

</head>

{% block body %}
<body {% if debug %}class="debug-screens"{% endif %}
hx-ext="head-support, preload">
<main class="mt-16">

{% block content %}
{% endblock content %}

</main>

{% block javascript_foot %}
{% endblock javascript_foot %}

</body>
{% endblock body %}

</html>
2 changes: 1 addition & 1 deletion examples/postgis/tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


def test_version():
assert __version__ == "2024.11.1"
assert __version__ == "2024.12.1"
14 changes: 7 additions & 7 deletions examples/with_vite/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ dependencies = [
"openpyxl",
"psycopg[binary, pool]",
"sentry-sdk[django]",
"whitenoise"
"whitenoise",
]
dynamic = ["version"]
name = "with_vite"
requires-python = ">=3.12"
dynamic = ["version"]

[project.optional-dependencies]
docs = [
Expand Down Expand Up @@ -77,13 +77,13 @@ types = [
"django-stubs",
"mypy",
"types-croniter",
"types-openpyxl"
"types-openpyxl",
]

[tool.bumpver]
commit = true
commit_message = ":bookmark: bump version {old_version} -> {new_version}"
current_version = "2024.11.1"
current_version = "2024.12.1"
push = false # set to false for CI
tag = false
version_pattern = "YYYY.MM.INC1"
Expand All @@ -92,12 +92,12 @@ version_pattern = "YYYY.MM.INC1"
".copier/project.yml" = [
'current_version: {version}'
]
"tests/test_version.py" = [
'assert __version__ == "{version}"'
]
"with_vite/__init__.py" = [
'__version__ = "{version}"'
]
"tests/test_version.py" = [
'assert __version__ == "{version}"'
]

[tool.coverage.report]
exclude_lines = [
Expand Down
1 change: 0 additions & 1 deletion examples/with_vite/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% extends "base.html" %}

{% block content %}
<h1>Index</h1>
<p>
Expand Down
2 changes: 1 addition & 1 deletion examples/with_vite/tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


def test_version():
assert __version__ == "2024.11.1"
assert __version__ == "2024.12.1"
2 changes: 1 addition & 1 deletion examples/with_vite/with_vite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import annotations

__version__ = "2024.11.1"
__version__ = "2024.12.1"
8 changes: 3 additions & 5 deletions examples/with_vite/with_vite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@
# 1. Django Core Settings
# https://docs.djangoproject.com/en/5.1/ref/settings/

ALLOWED_HOSTS = env.list(
"ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str
)
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhost"], subcast=str)

ASGI_APPLICATION = "with_vite.asgi.application"

Expand Down Expand Up @@ -262,7 +260,7 @@

SECRET_KEY = env.str(
"SECRET_KEY",
default="6087b6d10b65d5196af244b025c98cd0afc083ca2695d52d5d3a9d7f30c13bf2",
default="71ce6e606fffba5f7c73e9f6be3c290678c0c6893cd43d4394e394abc4f1a5bc",
)

SECURE_HSTS_INCLUDE_SUBDOMAINS = PROD
Expand Down Expand Up @@ -458,7 +456,7 @@
DJANGO_VITE_DEV_SERVER_PORT = 5173

# sentry
if PROD and (SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme:
if PROD and(SENTRY_DSN := env.url("SENTRY_DSN", default=None)).scheme:
sentry_sdk.init(
dsn=SENTRY_DSN.geturl(),
environment=env.str(
Expand Down

0 comments on commit a3591d9

Please sign in to comment.