Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from iancleary/bug/debugging-pipx-install
- Loading branch information
Showing
24 changed files
with
42 additions
and
83 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
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 |
---|---|---|
|
@@ -204,6 +204,3 @@ components | |
|
||
# PDM | ||
.pdm-python | ||
|
||
# src folder for default components | ||
src/ |
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 was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
__app_name__ = "datnewnew" |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import importlib.metadata as importlib_metadata | ||
import importlib.resources | ||
|
||
# https://github.com/pdm-project/pdm/blob/cea09584c7e18f038b01a9ce0aabe18991c0d02b/src/pdm/compat.py | ||
|
||
resources_read_text = importlib.resources.read_text | ||
|
||
|
||
def read_version() -> str: | ||
try: | ||
return importlib_metadata.version(__package__ or "new_component") | ||
except importlib_metadata.PackageNotFoundError: | ||
return resources_read_text("new_component", "VERSION").strip() | ||
|
||
|
||
__version__ = read_version() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
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,15 +1,9 @@ | ||
from new_component import __version__, package_version | ||
from new_component.__version__ import __version__ | ||
|
||
|
||
def test_package_version() -> None: | ||
"""Test package version calculation.""" | ||
[major, minor, patch] = package_version().split(".") | ||
[major, minor, patch] = __version__.split(".") | ||
assert isinstance(major, str) | ||
assert isinstance(minor, str) | ||
assert isinstance(patch, str) | ||
|
||
|
||
def test_package_version_not_found() -> None: | ||
"""Test package version calculation when package is not installed.""" | ||
assert package_version(package="incorrect") == "Package not found." | ||
|
6241184
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
new-component – ./
new-component.vercel.app
new-component-iancleary.vercel.app
new-component-git-main-iancleary.vercel.app
www.new-component.iancleary.me
new-component.iancleary.me