-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotes.md.txt
More file actions
28 lines (24 loc) · 1.01 KB
/
Notes.md.txt
File metadata and controls
28 lines (24 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Create:
- app.py
- create script and everything to make app.py work
- create : pyproject.toml
by using this command:
'ni pyproject.toml' or use poetry
- add content to the .toml file
- to list modules/packages run the ff:
'pip freeze > requirements.txt'
- get list from requirements.txt' then make its list into acceptable format using this command in PowerShell:
- # Read requirements.txt and format for pyproject.toml
- Get-Content requirements.txt | ForEach-Object { " `"$_`"," }
- content above copy to dependencies in .toml
- how to use poetry:
- pip install poetry
- poetry init (creates .toml file . you can delete .toml and create it using this command)
- currently we are using poetry:
here are the poetry commands:
poetry install
# Add a new package (automatically updates pyproject.toml)
poetry add new-package-name
# Run your Python scripts
poetry run python your_script.py
- comment out the last [build-system] if you want to use pip instead of poetry when installing python packages