Skip to content

Commit 2e58367

Browse files
committed
add third step
1 parent c5b6068 commit 2e58367

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ build:
88
uv build
99

1010
package-install:
11-
uv tool install dist/*.whl
11+
uv tool install dist/*.whl --reinstall

brain_games/cli.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import prompt
2+
3+
4+
def welcome_user():
5+
name = prompt.string('May I have your name? ')
6+
print('Hello, ' + name + '!')

brain_games/scripts/brain_games.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
def main():
55
print('Welcome to the Brain Games!')
6-
6+
from .. import cli
7+
cli.welcome_user()
78

89
if __name__ == '__main__':
910
main()

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ version = "0.1.0"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.12"
7-
dependencies = []
7+
dependencies = [
8+
"prompt>=0.4.1",
9+
]
810

911
[build-system]
1012
requires = ["hatchling"]

uv.lock

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)