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: adhoc compiler settings [APE-1474] #1705

Merged
merged 4 commits into from
Oct 30, 2023

Conversation

antazoey
Copy link
Member

What I did

fixes: #1704

How I did it

How to verify it

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@vany365 vany365 changed the title feat: compiler settings feat: compiler settings [APE-1474] Oct 27, 2023
@antazoey antazoey marked this pull request as ready for review October 27, 2023 20:07
@antazoey antazoey changed the title feat: compiler settings [APE-1474] feat: adhoc compiler settings [APE-1474] Oct 27, 2023
@antazoey
Copy link
Member Author

@sabotagebeats / @Ninjagod1251 let me know if this helps you! I imagine it reads best for you guys to do something like this:

from ape import compilers, project

compilers.vyper.compiler_settings = {"version": version}
manifest = project.exract_manifest()

docs/userguides/compile.md Outdated Show resolved Hide resolved
src/ape/managers/compilers.py Outdated Show resolved Hide resolved
docs/userguides/compile.md Show resolved Hide resolved
docs/userguides/compile.md Outdated Show resolved Hide resolved

# Or, more explicitly:
vyper = compilers.get_compiler("vyper", settings=settings["vyper"])
vyper.compile([Path("path/to/contract.vy")])
Copy link
Contributor

Choose a reason for hiding this comment

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

works for me!

@antazoey antazoey enabled auto-merge (squash) October 30, 2023 17:32
@antazoey antazoey merged commit d99cd2b into ApeWorX:main Oct 30, 2023
15 checks passed
@antazoey antazoey deleted the feat/compiler-settings branch October 30, 2023 17:52
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.

ad-hoc compiler settings
2 participants