This repository was archived by the owner on May 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ _templates_suffix: .jinja
88_jinja_extensions :
99- copier_templates_extensions.TemplateExtensionLoader
1010- extensions.py:CurrentYearExtension
11- - extensions.py:CurrentUserExtension
1211- extensions.py:GitExtension
1312- extensions.py:SlugifyExtension
1413_skip_if_exists :
@@ -127,8 +126,3 @@ docker_base_image:
127126 type : str
128127 help : Base image for the dev container. Edit Dockerfile.dev if your image is not ubuntu-based or have no python installed.
129128 default : " python:3.11"
130-
131- current_username :
132- type : str
133- help : Username to use in the Dev container.
134- default : " {{ current_user }}"
Original file line number Diff line number Diff line change 1- import os
21import re
32import subprocess
43import unicodedata
@@ -42,9 +41,3 @@ class CurrentYearExtension(Extension):
4241 def __init__ (self , environment ):
4342 super ().__init__ (environment )
4443 environment .globals ["current_year" ] = date .today ().year
45-
46-
47- class CurrentUserExtension (Extension ):
48- def __init__ (self , environment ):
49- super ().__init__ (environment )
50- environment .globals ["current_user" ] = os .getlogin ()
You can’t perform that action at this time.
0 commit comments