forked from prefix-dev/pixi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: pypi source dependencies (prefix-dev#985)
Co-authored-by: Pavel Zwerschke <[email protected]> Co-authored-by: Bas Zalmstra <[email protected]> Co-authored-by: nichmor <[email protected]> Co-authored-by: Bas Zalmstra <[email protected]> Co-authored-by: Wolf Vollprecht <[email protected]>
- Loading branch information
1 parent
7894c24
commit c55708b
Showing
34 changed files
with
2,879 additions
and
1,222 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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,2 @@ | ||
# GitHub syntax highlighting | ||
pixi.lock linguist-language=YAML |
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,2 @@ | ||
# pixi environments | ||
.pixi |
7 changes: 7 additions & 0 deletions
7
examples/pypi-source-deps/minimal-project/minimal_project/__init__.py
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,7 @@ | ||
import importlib.metadata | ||
|
||
try: | ||
__version__ = importlib.metadata.version(__name__) | ||
except importlib.metadata.PackageNotFoundError: | ||
__version__ = "unknown" | ||
raise Exception(f"Could not determine version of {__name__}") |
2 changes: 2 additions & 0 deletions
2
examples/pypi-source-deps/minimal-project/minimal_project/module.py
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,2 @@ | ||
def hello(): | ||
print('Hello World!') |
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,8 @@ | ||
[project] | ||
name = "minimal_project" | ||
version = "0.1" | ||
description = "just says hello" | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" |
Oops, something went wrong.