-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
refactor: use manifest project #47
Conversation
I verified the tests still pass |
Co-authored-by: El De-dog-lo <[email protected]>
@@ -178,19 +178,11 @@ async def compile_project(project_root: Path, manifest: PackageManifest): | |||
# Create a contracts directory | |||
contracts_dir = project_root / "contracts" | |||
contracts_dir.mkdir() | |||
project = Project.from_manifest(manifest) |
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.
btw when it comes time to add the dependencies, you can do it like this:
project = Project.from_manifest(manifest, config_override={"dependencies": [{"pypi": "snekmate"}]})
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.
can config_override
accept a list of DependencyAPI
objects? that's how I was thinking to parse the incoming dependency specifications
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.
i think you can pass in objects as well but you dont have to: itll validate them if you use raw dicts
What I did
This code is a good candidate for Ape's 0.8's manifest-based project
How I did it
How to verify it
run:
then run
not sure why i cant get tests to run
Checklist