-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restore setuptools_scm write_to usage
- Loading branch information
1 parent
4242bf6
commit e02cb6d
Showing
3 changed files
with
25 additions
and
17 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,10 +1,8 @@ | ||
import pkg_resources | ||
|
||
__all__ = ['__version__'] | ||
|
||
try: | ||
__version__ = pkg_resources.get_distribution('pytest').version | ||
except Exception: | ||
from ._version import __version__ | ||
except ImportError: | ||
# broken installation, we don't even try | ||
# unknown only works because we do poor mans version compare | ||
__version__ = 'unknown' |
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