-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SHA256 hashes: jupyterlab-google-analytics-1.2.0.tgz: fade00fe1b7ad5283495fd45fa09a98ec99cb6f4d6e0aa69365b7b606b086383 jupyterlab_google_analytics-1.2.0-py3-none-any.whl: 63395b2e9292624cf5b0d04b330172da72845d8bfa55b958229e80954aacad82 jupyterlab_google_analytics-1.2.0.tar.gz: b2cb7d620c800c5aa749a57852744ab2d99af3562fb2da334654f3fb17c04625
- Loading branch information
1 parent
66dd257
commit a80aa3a
Showing
3 changed files
with
21 additions
and
26 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
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,23 +1,4 @@ | ||
import json | ||
from pathlib import Path | ||
|
||
__all__ = ["__version__"] | ||
|
||
def _fetchVersion(): | ||
HERE = Path(__file__).parent.resolve() | ||
|
||
for settings in HERE.rglob("package.json"): | ||
try: | ||
with settings.open() as f: | ||
version = json.load(f)["version"] | ||
return ( | ||
version.replace("-alpha.", "a") | ||
.replace("-beta.", "b") | ||
.replace("-rc.", "rc") | ||
) | ||
except FileNotFoundError: | ||
pass | ||
|
||
raise FileNotFoundError(f"Could not find package.json under dir {HERE!s}") | ||
|
||
__version__ = _fetchVersion() | ||
# This file is auto-generated by Hatchling. As such, do not: | ||
# - modify | ||
# - track in version control e.g. be sure to add to .gitignore | ||
__version__ = VERSION = '1.2.0' |
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