Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(craft-application): support root packages for core24 #4617

Merged
merged 4 commits into from
Feb 29, 2024

Conversation

syu-w
Copy link
Contributor

@syu-w syu-w commented Feb 27, 2024

This allows the user to use "build-packages" and "build-snaps" at the root level of the snapcraft.yaml file.

Fixes: #4605

This allows the user to use "build-packages" and "build-snaps"
at the root level of the snapcraft.yaml file.
Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.12%. Comparing base (6ff3e0b) to head (4009726).
Report is 22 commits behind head on feature/craft-application.

Additional details and impacted files
@@                      Coverage Diff                      @@
##           feature/craft-application    #4617      +/-   ##
=============================================================
+ Coverage                      88.83%   89.12%   +0.29%     
=============================================================
  Files                            327      331       +4     
  Lines                          22033    22078      +45     
=============================================================
+ Hits                           19573    19678     +105     
+ Misses                          2460     2400      -60     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@syu-w syu-w requested review from mr-cal and lengau February 27, 2024 22:28
Copy link
Contributor

@lengau lengau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

snapcraft/models/project.py Outdated Show resolved Hide resolved
snapcraft/models/project.py Show resolved Hide resolved
Copy link
Collaborator

@mr-cal mr-cal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

class TestProjectTransform:
"""Test Transform the Project."""

def test_root_packages_transform(self, project_yaml_data):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be useful to have a test to ensure projects without build-packages and build-snaps are unmodified (i.e. the if statement on line 181)

Copy link
Collaborator

@sergiusens sergiusens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wording comments

snapcraft/application.py Outdated Show resolved Hide resolved
snapcraft/models/project.py Outdated Show resolved Hide resolved
snapcraft/models/project.py Outdated Show resolved Hide resolved
tests/unit/models/test_projects.py Outdated Show resolved Hide resolved
tests/unit/models/test_projects.py Outdated Show resolved Hide resolved
tests/unit/models/test_projects.py Outdated Show resolved Hide resolved
@syu-w
Copy link
Contributor Author

syu-w commented Feb 28, 2024

Updated

@sergiusens sergiusens merged commit 397f4c8 into feature/craft-application Feb 29, 2024
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants