-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugins): add core20 support for pyproject.toml projects (#4087)
LP: #2008237 Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]> Signed-off-by: Callahan Kovacs <[email protected]> Co-authored-by: Callahan Kovacs <[email protected]>
- Loading branch information
Showing
7 changed files
with
39 additions
and
4 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
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 main(): | ||
print("hello world") |
11 changes: 11 additions & 0 deletions
11
tests/spread/plugins/v2/snaps/python-hello-pyproject/pyproject.toml
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,11 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "python_hello_pyproject" | ||
description = "A simple hello world in python" | ||
version = "0.0.1" | ||
|
||
[project.scripts] | ||
python-hello-pyproject = "pythonhellopyproject:main" |
18 changes: 18 additions & 0 deletions
18
tests/spread/plugins/v2/snaps/python-hello-pyproject/snap/snapcraft.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,18 @@ | ||
name: python-hello-pyproject | ||
version: "1.0" | ||
summary: hello world | ||
description: A simple hello world in python using a pyproject.toml. | ||
grade: devel | ||
base: core20 | ||
confinement: strict | ||
|
||
apps: | ||
python-hello-pyproject: | ||
command: bin/python-hello-pyproject | ||
|
||
parts: | ||
hello: | ||
source: . | ||
plugin: python | ||
python-packages: | ||
- pip==20.0.2 |
1 change: 1 addition & 0 deletions
1
tests/spread/plugins/v2/snaps/python-hello-pyproject/src/pythonhellopyproject/__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 @@ | ||
../../hello |