Skip to content

Commit

Permalink
Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
pvandyken committed Aug 24, 2023
1 parent 928bd77 commit d5afa8e
Show file tree
Hide file tree
Showing 23 changed files with 259 additions and 103 deletions.
158 changes: 157 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ scipy = [
{ version = ">=1.10.0,<=1.10.1", python = "<3.9" },
{ version = ">=1.10.0", python = ">=3.9" }
]
copier = "^8.1.0"


[tool.poetry.group.dev.dependencies]
Expand Down
12 changes: 0 additions & 12 deletions snakebids/project_template/cookiecutter.json

This file was deleted.

45 changes: 45 additions & 0 deletions snakebids/project_template/copier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
full_name:
type: str
help: What is your name?
placeholder: " optional"

email:
type: str
help: What is your email?

github:
type: str
help: What is your github username?

app_full_name:
type: str
help: What is the name of your app?
default: "{{ dst_path }}"
validator: '{% if not app_full_name %}Required{% endif %}'

app_description:
type: str
help: Provide a brief description of your app

app_version:
default: "0.1.0"
help: Starting version number for your app

create_doc_template:
type: bool
help: Would you to set up basic documentation?

bids_version:
default: "1.8.0"
when: false

snakebids_version:
default: "0.0.0"
when: false

name_slug:
default: "{{ app_full_name|lower|replace(' ', '_')|replace('-', '_') }}"
when: false

_jinja_extensions:
- jinja2_time.TimeExtension
37 changes: 0 additions & 37 deletions snakebids/project_template/hooks/post_gen_project.py

This file was deleted.

3 changes: 3 additions & 0 deletions snakebids/project_template/{{ name_slug }}/README.md.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# {{app_full_name}}

{{ app_description }}
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
],
entry_points={
"console_scripts": [
"{{cookiecutter.__app_name}}={{cookiecutter.__app_name}}.run:main"
"{{name_slug}}={{name_slug}}.run:main"
]
},
install_requires=[
"snakebids>={{cookiecutter._snakebids_version}}",
"snakebids>={{snakebids_version}}",
"snakemake",
],
python_requires=">=3.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# -- Project information -----------------------------------------------------


project = "{{cookiecutter.__app_name}}"
copyright = "{% now 'utc', '%Y' %}, {{cookiecutter.full_name}}"
author = "{{cookiecutter.full_name}}"
project = "{{name_slug}}"
copyright = "{% now 'utc', '%Y' %}, {{full_name}}"
author = "{{full_name}}"


# -- General configuration ---------------------------------------------------
Expand Down
Loading

0 comments on commit d5afa8e

Please sign in to comment.