ApeWorX / ape

The smart contract development tool for Pythonistas, Data Scientists, and Security Professionals
https://apeworx.io
Apache License 2.0
892 stars 131 forks source link

Easier ways to exclude CompilerAPIs from `ape compile` command #2259

Open antazoey opened 2 months ago

antazoey commented 2 months ago

Overview

right now to compile only vyper contracts, i do this:

ape compile contracts/*.vy

but that approach is a bit limited.

Specification

Have it automatically work w/o full path:

# only compile .vy contracts
ape compile *.vy

idea: --exclude-compiler flag?

ape compile --exclude-compiler solidity

exclude_compiler config:

compile:
  exclude_compiler:
    - solidity

basically i dont want to uninstall ape-solidity but i dont want to compile solidity contracts in some projects. this may also be nice for some dependencies

Dependencies

Include links to any open issues that must be resolved before this feature can be implemented.

linear[bot] commented 2 months ago

APE-1804 Easier ways to exclude CompilerAPIs from `ape compile` command