Skip to content

Commit 8f8ee55

Browse files
authored
Merge pull request #2633 from GSA/main
5/30/2025 Production Deploy
2 parents 0423065 + 33ab578 commit 8f8ee55

File tree

18 files changed

+412
-320
lines changed

18 files changed

+412
-320
lines changed

.github/actions/setup-project/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ runs:
1515
python-version: "3.12.3"
1616
- name: Install poetry
1717
shell: bash
18-
run: pip install poetry==1.8.5
18+
run: pip install poetry==2.1.3
19+
- name: Install poetry export plugin
20+
shell: bash
21+
run: poetry self add poetry-plugin-export
1922
- name: Downgrade virtualenv to compatible version
2023
shell: bash
2124
run: pip install "virtualenv<20.30"

.github/workflows/checks.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,12 @@ jobs:
139139
- uses: actions/checkout@v4
140140
- uses: ./.github/actions/setup-project
141141
- name: Create requirements.txt
142-
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
142+
run: poetry export --output requirements.txt
143143
- uses: pypa/gh-action-pip-audit@v1.1.0
144144
with:
145145
inputs: requirements.txt
146146
ignore-vulns: |
147-
PYSEC-2024-60
148-
PYSEC-2022-43162
147+
PYSEC-2023-312
149148
- name: Run npm audit
150149
run: make npm-audit
151150

.github/workflows/daily_checks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- uses: ./.github/actions/setup-project
2727
- name: Create requirements.txt
28-
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
28+
run: poetry export --output requirements.txt
2929
- uses: pypa/gh-action-pip-audit@v1.1.0
3030
with:
3131
inputs: requirements.txt
32+
ignore-vulns: |
33+
PYSEC-2023-312
3234
- name: Run npm audit
3335
run: make npm-audit
3436

.github/workflows/deploy-demo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- uses: ./.github/actions/setup-project
4343

4444
- name: Create requirements.txt
45-
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
45+
run: poetry export --output requirements.txt
4646

4747
- name: Deploy to cloud.gov
4848
uses: cloud-gov/cg-cli-tools@main

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- uses: ./.github/actions/setup-project
4343

4444
- name: Create requirements.txt
45-
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
45+
run: poetry export --output requirements.txt
4646

4747
- name: Deploy to cloud.gov
4848
uses: cloud-gov/cg-cli-tools@main

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- uses: ./.github/actions/setup-project
4848

4949
- name: Create requirements.txt
50-
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
50+
run: poetry export --output requirements.txt
5151

5252

5353
- name: Deploy to cloud.gov

Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ NVMSH := $(shell [ -f "$(HOME)/.nvm/nvm.sh" ] && echo "$(HOME)/.nvm/nvm.sh" || e
1717
.PHONY: bootstrap
1818
bootstrap: ## Set up everything to run the app
1919
make generate-version-file
20-
poetry lock --no-update
21-
poetry install --sync --no-root
20+
poetry sync --no-root
2221
poetry run playwright install --with-deps
2322
poetry run pre-commit install
2423
source $(NVMSH) --no-use && nvm install && npm install
@@ -28,8 +27,7 @@ bootstrap: ## Set up everything to run the app
2827
.PHONY: bootstrap-with-git-hooks
2928
bootstrap-with-git-hooks: ## Sets everything up and accounts for pre-existing git hooks
3029
make generate-version-file
31-
poetry lock --no-update
32-
poetry install --sync --no-root
30+
poetry sync --no-root
3331
poetry run playwright install --with-deps
3432
git config --global --unset-all core.hooksPath
3533
poetry run pre-commit install
@@ -129,7 +127,7 @@ py-lock: ## Syncs dependencies and updates lock file without performing recursiv
129127

130128
.PHONY: freeze-requirements
131129
freeze-requirements: ## create static requirements.txt
132-
poetry export --without-hashes --format=requirements.txt > requirements.txt
130+
poetry export --output requirements.txt
133131

134132
.PHONY: pip-audit
135133
pip-audit:

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,22 @@ you'll be set with an upgraded version of Python.
308308

309309
_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`._
310310

311+
312+
#### Poetry upgrades ####
313+
314+
If you are doing a new project setup, then after you install poetry you need to install the export plugin
315+
316+
```sh
317+
poetry self add poetry-plugin-export
318+
```
319+
320+
If you are upgrading from poetry 1.8.5, you need to do this:
321+
322+
```sh
323+
curl -sSL https://install.python-poetry.org | python3 - --version 2.1.3
324+
poetry self add poetry-export-plugin
325+
```
326+
311327
#### Updating the .env file for Login.gov
312328

313329
To configure the application for Login.gov, you will need to update the following environment variables in the .env file:

app/assets/javascripts/liveSearch.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
let query = normalize($searchBox.val());
1717
let results = 0;
18+
let $noResultsMessage = $('.js-live-search-no-results');
1819

1920
$targets.each(function() {
2021

@@ -39,6 +40,12 @@
3940

4041
});
4142

43+
if (query !== '' && results === 0) {
44+
$noResultsMessage.show();
45+
} else {
46+
$noResultsMessage.hide();
47+
}
48+
4249
if (state === 'loaded') {
4350
if (query !== '') {
4451
$searchBox.attr('aria-label', $searchLabel.text().trim() + ', ' + resultsSummary(results));
120 KB
Binary file not shown.

0 commit comments

Comments
 (0)