eclipse-volttron / copier-poetry-volttron-agent

Other
0 stars 5 forks source link

65 update to use copier v7 #67

Closed kefeimo closed 1 year ago

kefeimo commented 1 year ago

Fixed Update to use copier v7 #65 : and Doesn't seem to be interpolating values from prompts #63

Verification

Use the same answers to copier prompts and compared to the last workable release version (copier==5.1.0, commit: 3b3315f)

Result

The result in "diff_5_7.txt" shows that all the generated files by the two versions are the same, except ".copier-answers.yml" file, which is due to using different commit

diff -r Example-copier5/.copier-answers.yml Example-copier7/.copier-answers.yml
2c2
< _commit: 0.1.1
---
> _commit: 0.1.1-4-gfb4c7e2
20a21
> 
(env-copier) kefei@ubuntu-20-ws ~/project-local/volttron-copier $ copier copier-poetry-volttron-agent/ Example-copier7/ --vcs-ref 5fad2e3
🎤 Your project name
   volttron-copier
🎤 Your project description
   volttron copier testing
🎤 Your full name
   kefei mo
🎤 Your email
   kefei.mo@pnnl.gov
🎤 Your username (e.g. on GitHub)
   kefeimo
🎤 Your repository provider
   github.com
🎤 Your repository namespace
   kefeimo
🎤 Your repository name
   volttron-copier
🎤 The name of the person/entity holding the copyright
   kefei mo
🎤 The email of the person/entity holding the copyright
   kefei.mo@pnnl.gov
🎤 The copyright date
   2022
🎤 Your project's license
   Apache License 2.0
🎤 Your Python package distribution name (for `pip install NAME`)
   volttron-copier
🎤 Your Python package import name (for `import NAME` in Python code)
   volttron_copier
🎤 Main class name for your agent
   Volttron_copier
🎤 Your CLI name if any (for use in the shell)
   volttron-copier
🎤 Do you want to use pre-commit?
   YesN)

Copying from template version 0.3.0b0.post20.dev0+5fad2e3
    create  .
    create  config
    create  scripts
    create  scripts/post_generation.py
    create  .gitlab-ci.yml
    create  .github
    create  .github/workflows
    create  .github/workflows/code_analysis.yml
    create  .github/workflows/publish_to_pypi.yml
    create  .github/workflows/create_release.yml
    create  .github/workflows/ci.yml
    create  .github/ISSUE_TEMPLATE
    create  .github/ISSUE_TEMPLATE/feature_request.md
    create  .github/ISSUE_TEMPLATE/bug_report.md
    create  CHANGELOG.md
    create  src
    create  src/volttron_copier
    create  src/volttron_copier/__init__.py
    create  src/volttron_copier/agent.py
    create  mypy.ini
    create  CONTRIBUTING.md
    create  tests
    create  tests/test_cli.py
    create  tests/conftest.py
    create  docs
    create  docs/source
    create  docs/source/conf.py
    create  docs/source/index.rst
    create  docs/Makefile
    create  LICENSE
    create  .gitignore
    create  README.md
    create  pyproject.toml
    create  .pre-commit-config.yaml
    create  .copier-answers.yml

 > Running task 1 of 1: python scripts/post_generation.py
Project successfully generated!
kefeimo commented 1 year ago

Note: for testing this PR

kefeimo commented 1 year ago

@acedrew, would you be willing to test this PR? Thank you.