UCL-ARC / python-tooling

Python package template for new research software projects
http://github-pages.arc.ucl.ac.uk/python-tooling/
MIT License
43 stars 2 forks source link

Automatically generate suggested email from supplied names in template #407

Closed matt-graham closed 5 months ago

matt-graham commented 5 months ago

Minor usability enhancement to template to auto-populate default for author_email based on supplied values for author_given_names and author_family_names, based on mapping names to lower case, joining with . and appending @ucl.ac.uk.

For example

I've stuck with joining full given names rather than extracting just initials with something like [name[0] for name in cookiecutter.author_given_names.lower().split()] even though using just initials seems more common in people's choices for 'friendly' UCL emails from a quick check of emails of contributors here, partly for simplicity but also as I guess manually removing additional characters from name is slightly easier than manually adding characters back in, but could switch this.