dblume commited on 2022-01-23 10:15:27
Showing 3 changed files, with 51 additions and 0 deletions.
... | ... |
@@ -67,6 +67,26 @@ Download from [atom.io](https://atom.io/). These are useful modules: |
67 | 67 |
If you install project-manager, it looks for [a local "project.cson" file](/testpython.git/blob/main/project.cson), and |
68 | 68 |
merges those settings with what is in the .atom `projects.cson` file. |
69 | 69 |
|
70 |
+## Requirements |
|
71 |
+ |
|
72 |
+requirements.txt specifies the requirements for Python modules and apps. |
|
73 |
+Install the requirements with: |
|
74 |
+ |
|
75 |
+ python3 -m pip install -r requirements.txt |
|
76 |
+ |
|
77 |
+### Generating requirements.txt |
|
78 |
+ |
|
79 |
+Ideally, track why modules are required, create requirements.in with only the |
|
80 |
+the top-level requirements, and let pip-compile (from pip-tools) figure out the |
|
81 |
+next-level dependencies. |
|
82 |
+ |
|
83 |
+ (venv) $ python3 -m pip install pip-tools |
|
84 |
+ (venv) $ pip-compile requirements.in |
|
85 |
+ |
|
86 |
+ Otherwise, you can make requirements.txt directly with pip freeze: |
|
87 |
+ |
|
88 |
+ (venv) $ python3 -m pip freeze > requirements.txt |
|
89 |
+ |
|
70 | 90 |
## Current Features |
71 | 91 |
|
72 | 92 |
* Multiple directories for testing build systems and IDEs |
... | ... |
@@ -0,0 +1,11 @@ |
1 |
+# To use, install pip-tools: |
|
2 |
+# |
|
3 |
+# (venv) $ python3 -m pip install pip-tools |
|
4 |
+# (venv) $ pip-compile requirements.in |
|
5 |
+# |
|
6 |
+# Otherwise, you can make requirements.txt directly with pip freeze: |
|
7 |
+# |
|
8 |
+# (venv) $ python3 -m pip freeze > requirements.txt |
|
9 |
+# |
|
10 |
+marshmallow |
|
11 |
+bored |
... | ... |
@@ -0,0 +1,20 @@ |
1 |
+# |
|
2 |
+# This file is autogenerated by pip-compile with python 3.8 |
|
3 |
+# To update, run: |
|
4 |
+# |
|
5 |
+# pip-compile requirements.in |
|
6 |
+# |
|
7 |
+bored==1.0.1 |
|
8 |
+ # via -r requirements.in |
|
9 |
+certifi==2021.10.8 |
|
10 |
+ # via requests |
|
11 |
+charset-normalizer==2.0.10 |
|
12 |
+ # via requests |
|
13 |
+idna==3.3 |
|
14 |
+ # via requests |
|
15 |
+marshmallow==3.14.1 |
|
16 |
+ # via -r requirements.in |
|
17 |
+requests==2.27.1 |
|
18 |
+ # via bored |
|
19 |
+urllib3==1.26.8 |
|
20 |
+ # via requests |
|
0 | 21 |