Giter VIP home page Giter VIP logo

ape-template's People

Contributors

antazoey avatar ca11ab1e avatar dtdang avatar ninjagod1251 avatar notpeopling2day avatar sabotagebeats avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ape-template's Issues

Ape Template Plugin

Overview

Create a custom CLI plugin for using Click with Cookiecutter.
We want a cli command to install git repos to install templates of projects

ape template git_repo_name

Testing:

  • Success
  • unrecognized template repo
  • duplicate project name
  • do not have ape template 2nd class plugin installed
  • install recommended plugins
  • compile project

Specification

It is important that it stays as a 2nd class so it will not break ape core.

it is to let the new users be able to clone, compile, and deploy a simple project.

Ape-Template aim is to make it seamless and easy to make a project from start to finish.

That is why it need to be able to git clone, install plugins, compile, test, and deploy

Dependencies

It is dependent on ape plugins install plugins_rec which is a new feature coming to this to make it better

Related feature to include:
ApeWorX/ape#729

Tried to ape template sample project [email protected]: Permission denied (publickey). fatal: Could not read from remote repository. [APE-1159]

Environment information

  • ape and plugin versions:
$ ape --version
0.6.11

$ ape plugins list

Installed Plugins:
  ens          0.6.1
  vyper        0.6.8
  solidity     0.6.6
  etherscan    0.6.7
  infura       0.6.2
  template     0.6.1
  hardhat      0.6.9
  alchemy      0.6.2
  foundry      0.6.11
  tokens       0.6.1
# ...copy and paste result of above command here...
  • Python Version: 3.10.6
  • OS: win

Problem:

~/contracts$ ape template [email protected]:ApeAcademy/ERC721.git
The authenticity of host 'github.com (192.30.255.112)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? y
Please type 'yes', 'no' or the fingerprint: y
Please type 'yes', 'no' or the fingerprint: yes
ERROR: git clone failed with error: Cloning into 'ERC721'...
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Traceback (most recent call last):
File "/home/snar/.local/bin/ape", line 8, in
sys.exit(cli())
File "/home/snar/.local/lib/python3.10/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/home/snar/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/snar/.local/lib/python3.10/site-packages/ape/_cli.py", line 36, in invoke
return super().invoke(ctx)
File "/home/snar/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/snar/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/snar/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/snar/.local/lib/python3.10/site-packages/cookiecutter/cli.py", line 194, in main
cookiecutter(
File "/home/snar/.local/lib/python3.10/site-packages/cookiecutter/main.py", line 69, in cookiecutter
repo_dir, cleanup = determine_repo_dir(
File "/home/snar/.local/lib/python3.10/site-packages/cookiecutter/repository.py", line 106, in determine_repo_dir
cloned_repo = clone(
File "/home/snar/.local/lib/python3.10/site-packages/cookiecutter/vcs.py", line 95, in clone
subprocess.check_output( # nosec
File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', 'clone', '[email protected]:ApeAcademy/ERC721.git']' returned non-zero exit status 128.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.