Skip to content

Commit

Permalink
fix: consolidate 'ape plugins' commands and fix issues with upgrading (
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Feb 8, 2022
1 parent 2448708 commit d19027f
Show file tree
Hide file tree
Showing 7 changed files with 295 additions and 256 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@ WORKDIR /code
# TODO: Figure out a better solution or wait for it to resolve itself.
RUN pip install typing-extensions==3.10.0.2
RUN python3 ./setup.py install
RUN ape plugins add solidity --yes
RUN ape plugins add vyper --yes
RUN ape plugins add infura --yes
RUN ape plugins add etherscan --yes
RUN ape plugins add ens --yes
RUN ape plugins install solidity vyper infura etherscan ens
ENTRYPOINT ["ape"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $ ape test -k test_only_one_thing --coverage --gas
$ ape console --network ethereum:mainnet:infura

# Add new plugins to ape
$ ape plugins add plugin-name
$ ape plugins install plugin-name
```

Ape also works as a package. You can use the same networks, accounts, and projects from the ape package as you can in the cli:
Expand Down
5 changes: 2 additions & 3 deletions docs/userguides/projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ directory determine which compiler plugin `ape` uses. Make sure to install the c
missing by adding them to your `ape-config.yaml`'s `plugin` section, or manually adding via the following:

```bash
ape plugins add solidity
ape plugins add vyper
ape plugins install solidity vyper
```

Then, use the following command to compile all contracts in the `contracts/` directory:
Expand Down Expand Up @@ -195,5 +194,5 @@ not come with `ape` but can be installed by including it in the `plugins` list i
manually installing it using the command:

```bash
ape plugins add hardhat
ape plugins install hardhat
```
2 changes: 1 addition & 1 deletion docs/userguides/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Add any plugins you may need, such as `vyper`.

```bash
ape plugins list -a
ape plugins add vyper
ape plugins install vyper
ape plugins list -a
```

Expand Down
2 changes: 1 addition & 1 deletion src/ape/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def available_plugins(self) -> Set[str]:
The available ``ape`` plugins, found from looking at the ``ApeWorx`` Github organization.
Returns:
Set[str]: The plugin names.
Set[str]: The plugin names as 'ape_plugin_name' (module-like).
"""
return {
repo.name.replace("-", "_")
Expand Down
Loading

0 comments on commit d19027f

Please sign in to comment.