-
Notifications
You must be signed in to change notification settings - Fork 15
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
8122ea1
commit 14f85b7
Showing
3 changed files
with
16 additions
and
29 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 |
---|---|---|
@@ -1,18 +1 @@ | ||
# ============================================================================= | ||
# DEPRECATION WARNING: | ||
# | ||
# The file `requirements.txt` does not influence the package dependencies and | ||
# will not be automatically created in the next version of PyScaffold (v4.x). | ||
# | ||
# Please have look at the docs for better alternatives | ||
# (`Dependency Management` section). | ||
# ============================================================================= | ||
# | ||
# Add your pinned requirements so that they can be easily installed with: | ||
# pip install -r requirements.txt | ||
# Remember to also add them in setup.cfg but unpinned. | ||
# Example: | ||
# numpy==1.13.3 | ||
# scipy==1.0 | ||
|
||
urwid==2.0.1 | ||
urwid==2.1.2 |
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
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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
# -*- coding: utf-8 -*- | ||
from pkg_resources import get_distribution, DistributionNotFound | ||
|
||
try: | ||
# Change here if project is renamed and does not equal the package name | ||
dist_name = __name__ | ||
__version__ = get_distribution(dist_name).version | ||
except DistributionNotFound: | ||
__version__ = 'unknown' | ||
finally: | ||
del get_distribution, DistributionNotFound | ||
from importlib.metadata import version, PackageNotFoundError | ||
try: | ||
__version__ = version("redial") | ||
except PackageNotFoundError: | ||
__version__ = 'unknown' | ||
except ImportError: | ||
# Fallback for Python < 3.8 | ||
from pkg_resources import get_distribution, DistributionNotFound | ||
try: | ||
__version__ = get_distribution("redial").version | ||
except DistributionNotFound: | ||
__version__ = 'unknown' |