You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -53,7 +52,7 @@ recommended. This helps avoid some known installation issues. Start by following
53
52
the installation instructions on the Homebrew homepage.
54
53
55
54
**Note:** You will also need Xcode or the Xcode Command Line Tools installed. The
56
-
quickest way to do this is is by installing the command line tools in the shell:
55
+
quickest way to do this is by installing the command line tools in the shell:
57
56
58
57
```sh
59
58
xcode-select –-install
@@ -71,11 +70,13 @@ Your system `$PATH` environment variable is likely set in one of these
71
70
locations:
72
71
73
72
For BASH shells:
73
+
74
74
-`~/.bashrc`
75
75
-`~/.bash_profile`
76
76
-`~/.profile`
77
77
78
78
For ZSH shells:
79
+
79
80
-`~/.zshrc`
80
81
-`~/.zprofile`
81
82
@@ -85,7 +86,7 @@ environments.
85
86
Which file you need to modify depends on whether or not you are running an
86
87
interactive shell or a login shell
87
88
(see [this Stack Overflow post](https://stackoverflow.com/questions/18186929/what-are-the-differences-between-a-login-shell-and-interactive-shell)
88
-
for an explanation of the differences). If you're still not sure, please ask
89
+
for an explanation of the differences). If you're still not sure, please ask
89
90
the team for help!
90
91
91
92
Once you determine which file you'll need to modify, add these lines before any
@@ -147,7 +148,7 @@ tfenv use 1.7.x # x = the patch version installed
147
148
#### Python Installation
148
149
149
150
Now we're going to install a tool to help us manage Python versions and
150
-
virtual environments on our system. First, we'll install
151
+
virtual environments on our system. First, we'll install
151
152
[pyenv](https://github.com/pyenv/pyenv) and one of its plugins,
152
153
[pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv), with Homebrew:
153
154
@@ -201,10 +202,6 @@ requires a version number to be included with it when installing it:
201
202
brew install postgresql@15
202
203
```
203
204
204
-
_NOTE: This project currently works with PostgreSQL version 15.x; version 12.x is currently used in our hosted environments._
205
-
206
-
_NOTE: If you have a pre-existing instance of PSQL installed because of another product like PGAdmin, your database configuration may differ from the instructions above, which uses Homebrew to install and configure PostgreSQL. If this is the case for you, you may have to either account for slightly different user permissions with the database, or uninstall PGAdmin and/or PostgreSQL itself, and reinstall it with Homebrew to follow the steps above._
207
-
208
205
You'll now need to modify (or create, if it doesn't already exist) the `$PATH`
209
206
environment variable to include the PostgreSQL binaries. Open the file you have
210
207
worked with before to adjust your shell environment with the previous steps and
@@ -224,6 +221,10 @@ this, which will include the PostgreSQL binaries:
_NOTE: This project currently works with PostgreSQL version 15.x; version 12.x is currently used in our hosted environments._
225
+
226
+
_NOTE: If you have a pre-existing instance of PSQL installed because of another product like PGAdmin, your database configuration may differ from the instructions above, which uses Homebrew to install and configure PostgreSQL. If this is the case for you, you may have to either account for slightly different user permissions with the database, or uninstall PGAdmin and/or PostgreSQL itself, and reinstall it with Homebrew to follow the steps above._
227
+
227
228
_NOTE: You don't want to overwrite your existing `$PATH` environment variable! Hence the reason why it is included on the end like this; paths are separated by a colon._
Now go into the project directory (`notifications-api` by default), create a
261
262
virtual environment, and set the local Python version to point to the virtual
262
-
environment (assumes version Python `3.12.2` is what is installed on your
263
+
environment (assumes version Python `3.12.9` is what is installed on your
263
264
machine):
264
265
265
266
```sh
266
267
cd notifications-api
267
-
pyenv virtualenv 3.12.2 notify-api
268
+
pyenv virtualenv 3.12.9 notify-api
268
269
pyenv local notify-api
269
270
```
270
271
271
-
_If you're not sure which version of Python was installed with `pyenv`, you can check by running `pyenv versions` and it'll list everything available currently._
272
+
_NOTE: If you're not sure which version of Python was installed with `pyenv`, you can check by running `pyenv versions` and it'll list everything available currently._
272
273
273
274
Now [log into cloud.gov](https://cloud.gov/docs/getting-started/setup/#set-up-the-command-line)
274
275
in the command line by using this command:
275
276
276
277
```sh
277
278
cf login -a api.fr.cloud.gov --sso
278
279
```
280
+
279
281
If you are offered a choice of orgs, select `gsa-tts-benefits-studio`.
280
282
For the space, choose `notify-local-dev` to start with (assuming you are
281
283
setting up local development).
@@ -317,7 +319,7 @@ we'll use `3.13` in our example here since we recently upgraded to this version:
317
319
pyenv install 3.13
318
320
```
319
321
320
-
Next, delete the virtual environment you previously had set up. If you followed
322
+
Next, delete the virtual environment you previously had set up. If you followed
321
323
the instructions above with the first-time set up, you can do this with `pyenv`:
322
324
323
325
```sh
@@ -329,17 +331,16 @@ environment with the newer version of Python you just installed:
329
331
330
332
```sh
331
333
cd notifications-api
332
-
pyenv virtualenv 3.12.2 notify-api
334
+
pyenv virtualenv 3.12.9 notify-api
333
335
pyenv local notify-api
334
336
```
335
337
336
338
At this point, proceed with the rest of the instructions here in the README and
337
339
you'll be set with an upgraded version of Python.
338
340
339
-
_If you're not sure about the details of your current virtual environment, you can run `poetry env info` to get more information. If you've been using `pyenv` for everything, you can also see all available virtual environments with `pyenv virtualenvs`._
340
-
341
+
_NOTE: If you're not sure about the details of your current virtual environment, you can run `poetry env info` to get more information. If you've been using `pyenv` for everything, you can also see all available virtual environments with `pyenv virtualenvs`._
341
342
342
-
#### Poetry upgrades ####
343
+
#### Poetry upgrades
343
344
344
345
If you are doing a new project setup, then after you install poetry you need to install the export plugin
0 commit comments