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: respect paths.libraries for Vyper #159

Merged
merged 2 commits into from
Jun 28, 2024
Merged

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Jun 28, 2024

Vyper 0.4 added search_paths key which is basically equivalent to solc's include_paths which we are already populating during import resolution.

Adds this key to compiler input and also tries going through paths.libs while resolving Vyper imports.

This allows users to normally configure dependencies outside of their src directory (i.e. from venv/.../site-packages or lib)

@klkvr klkvr changed the title feat: respect paths.libs for Vyper feat: respect paths.libraries for Vyper Jun 28, 2024
@mattsse
Copy link
Member

mattsse commented Jun 28, 2024

pedantic clippy

@DaniPopes DaniPopes merged commit 908a83a into main Jun 28, 2024
15 checks passed
@DaniPopes DaniPopes deleted the klkvr/vyper-search-paths branch June 28, 2024 22:20
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.

3 participants