-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0147fe3
commit d968357
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
from importlib.metadata import version, PackageNotFoundError | ||
|
||
__author__ = ("Haibao Tang", "DV Klopfenstein") | ||
__copyright__ = "Copyright (C) 2009-{}, Haibao Tang, DV Klopfenstein".format( | ||
datetime.now().year | ||
__copyright__ = ( | ||
f"Copyright (C) 2009-{datetime.now().year}, Haibao Tang, DV Klopfenstein" | ||
) | ||
__email__ = "[email protected]" | ||
__license__ = "BSD" | ||
|
@@ -14,10 +14,10 @@ | |
except PackageNotFoundError: # pragma: no cover | ||
try: | ||
from .version import version as VERSION # noqa | ||
except ImportError: # pragma: no cover | ||
except ImportError as exc: # pragma: no cover | ||
raise ImportError( | ||
"Failed to find (autogenerated) version.py. " | ||
"This might be because you are installing from GitHub's tarballs, " | ||
"use the PyPI ones." | ||
) | ||
) from exc | ||
__version__ = VERSION |