Skip to content

Commit c6457e4

Browse files
committed
Fix docs build
1 parent db4bf2a commit c6457e4

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

pygame_menu/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,13 @@
1919
try:
2020
_meta = metadata("pygame-menu")
2121
__version__ = _meta.get("Version")
22-
__author__ = _meta.get("Author")
23-
__email__ = _meta.get("Author-email")
22+
__author__ = _meta.get("Author-email").split("<")[0][1:-2].strip()
23+
__email__ = _meta.get("Author-email").split("<")[1][:-1].strip()
2424
__description__ = _meta.get("Summary")
2525
__license__ = _meta.get("License")
2626
__url__ = _meta.get("Home-page")
2727
__module_name__ = _meta.get("Name")
2828
except PackageNotFoundError:
29-
__version__ = None
30-
31-
# Local fallback
32-
if __version__ is None:
3329
__version__ = "4.4.3"
3430
__author__ = "Pablo Pizarro R."
3531
__email__ = "pablo@ppizarror.com"

0 commit comments

Comments
 (0)