Skip to content

Commit

Permalink
Changed version flag to use authors from pyproject toml.
Browse files Browse the repository at this point in the history
  • Loading branch information
WyvernIXTL committed May 22, 2024
1 parent 7960db9 commit 3e410aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion installation_instruction/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# This is terrible and I really hate it.
__description__ = metadata.metadata(__package__)["Summary"]
__repository__ = metadata.metadata(__package__)["Project-URL"]
__repository__ = metadata.metadata(__package__)["Project-URL"].replace("Repository, ", "")

__author__ = metadata.metadata(__package__)["Author"]
__author_email__ = metadata.metadata(__package__)["Author-email"]
Expand Down
4 changes: 2 additions & 2 deletions installation_instruction/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
from .helpers import _make_pretty_print_line_breaks

VERSION_STRING = f"""Version: installation-instruction {__version__}
Copyright: (C) 2024 Adam McKellar, Kanushka Gupta, Timo Ege
Copyright: (C) 2024 {__author_email__}, {__author__}
License: {__license__}
Repository: {__repository__.replace("Repository, ", "")}"""
Repository: {__repository__}"""


class ConfigReadCommand(click.MultiCommand):
Expand Down

0 comments on commit 3e410aa

Please sign in to comment.