Skip to content

Commit

Permalink
fix(WF-123): Fix writer versions in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
raaymax committed Nov 22, 2024
1 parent 2da7bfb commit 3e6833c
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 90 deletions.
15 changes: 0 additions & 15 deletions apps/ai-starter/pyproject.toml

This file was deleted.

15 changes: 0 additions & 15 deletions apps/default/pyproject.toml

This file was deleted.

15 changes: 0 additions & 15 deletions apps/hello/pyproject.toml

This file was deleted.

15 changes: 0 additions & 15 deletions apps/pdg-tutorial/pyproject.toml

This file was deleted.

15 changes: 0 additions & 15 deletions apps/quickstart/pyproject.toml

This file was deleted.

15 changes: 0 additions & 15 deletions apps/text-demo/pyproject.toml

This file was deleted.

6 changes: 6 additions & 0 deletions src/writer/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import shutil
import sys
from typing import Optional
from writer import VERSION

import click

Expand Down Expand Up @@ -95,6 +96,11 @@ def create_app(app_path: str, template_name: Optional[str], overwrite=False):
sys.exit(1)

shutil.copytree(template_path, app_path, dirs_exist_ok=True)
# create/update requirements.txt and add writer to it
requirements_path = os.path.join(app_path, "requirements.txt")
with open(requirements_path, "a") as f:
f.write(f"writer=={VERSION}\n")


if __name__ == "__main__":
main()

0 comments on commit 3e6833c

Please sign in to comment.