mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 17:24:23 -04:00
5
.github/actions/setup-project/action.yml
vendored
5
.github/actions/setup-project/action.yml
vendored
@@ -15,7 +15,10 @@ runs:
|
|||||||
python-version: "3.12.3"
|
python-version: "3.12.3"
|
||||||
- name: Install poetry
|
- name: Install poetry
|
||||||
shell: bash
|
shell: bash
|
||||||
run: pip install poetry==1.8.5
|
run: pip install poetry==2.1.3
|
||||||
|
- name: Install poetry export plugin
|
||||||
|
shell: bash
|
||||||
|
run: poetry self add poetry-plugin-export
|
||||||
- name: Downgrade virtualenv to compatible version
|
- name: Downgrade virtualenv to compatible version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: pip install "virtualenv<20.30"
|
run: pip install "virtualenv<20.30"
|
||||||
|
|||||||
2
.github/workflows/checks.yml
vendored
2
.github/workflows/checks.yml
vendored
@@ -139,7 +139,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/actions/setup-project
|
- uses: ./.github/actions/setup-project
|
||||||
- name: Create requirements.txt
|
- name: Create requirements.txt
|
||||||
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
|
run: poetry export --output requirements.txt
|
||||||
- uses: pypa/gh-action-pip-audit@v1.1.0
|
- uses: pypa/gh-action-pip-audit@v1.1.0
|
||||||
with:
|
with:
|
||||||
inputs: requirements.txt
|
inputs: requirements.txt
|
||||||
|
|||||||
2
.github/workflows/daily_checks.yml
vendored
2
.github/workflows/daily_checks.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/actions/setup-project
|
- uses: ./.github/actions/setup-project
|
||||||
- name: Create requirements.txt
|
- name: Create requirements.txt
|
||||||
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
|
run: poetry export --output requirements.txt
|
||||||
- uses: pypa/gh-action-pip-audit@v1.1.0
|
- uses: pypa/gh-action-pip-audit@v1.1.0
|
||||||
with:
|
with:
|
||||||
inputs: requirements.txt
|
inputs: requirements.txt
|
||||||
|
|||||||
2
.github/workflows/deploy-demo.yml
vendored
2
.github/workflows/deploy-demo.yml
vendored
@@ -42,7 +42,7 @@ jobs:
|
|||||||
- uses: ./.github/actions/setup-project
|
- uses: ./.github/actions/setup-project
|
||||||
|
|
||||||
- name: Create requirements.txt
|
- name: Create requirements.txt
|
||||||
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
|
run: poetry export --output requirements.txt
|
||||||
|
|
||||||
- name: Deploy to cloud.gov
|
- name: Deploy to cloud.gov
|
||||||
uses: cloud-gov/cg-cli-tools@main
|
uses: cloud-gov/cg-cli-tools@main
|
||||||
|
|||||||
2
.github/workflows/deploy-prod.yml
vendored
2
.github/workflows/deploy-prod.yml
vendored
@@ -42,7 +42,7 @@ jobs:
|
|||||||
- uses: ./.github/actions/setup-project
|
- uses: ./.github/actions/setup-project
|
||||||
|
|
||||||
- name: Create requirements.txt
|
- name: Create requirements.txt
|
||||||
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
|
run: poetry export --output requirements.txt
|
||||||
|
|
||||||
- name: Deploy to cloud.gov
|
- name: Deploy to cloud.gov
|
||||||
uses: cloud-gov/cg-cli-tools@main
|
uses: cloud-gov/cg-cli-tools@main
|
||||||
|
|||||||
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@@ -47,7 +47,7 @@ jobs:
|
|||||||
- uses: ./.github/actions/setup-project
|
- uses: ./.github/actions/setup-project
|
||||||
|
|
||||||
- name: Create requirements.txt
|
- name: Create requirements.txt
|
||||||
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
|
run: poetry export --output requirements.txt
|
||||||
|
|
||||||
|
|
||||||
- name: Deploy to cloud.gov
|
- name: Deploy to cloud.gov
|
||||||
|
|||||||
8
Makefile
8
Makefile
@@ -17,8 +17,7 @@ NVMSH := $(shell [ -f "$(HOME)/.nvm/nvm.sh" ] && echo "$(HOME)/.nvm/nvm.sh" || e
|
|||||||
.PHONY: bootstrap
|
.PHONY: bootstrap
|
||||||
bootstrap: ## Set up everything to run the app
|
bootstrap: ## Set up everything to run the app
|
||||||
make generate-version-file
|
make generate-version-file
|
||||||
poetry lock --no-update
|
poetry sync --no-root
|
||||||
poetry install --sync --no-root
|
|
||||||
poetry run playwright install --with-deps
|
poetry run playwright install --with-deps
|
||||||
poetry run pre-commit install
|
poetry run pre-commit install
|
||||||
source $(NVMSH) --no-use && nvm install && npm install
|
source $(NVMSH) --no-use && nvm install && npm install
|
||||||
@@ -28,8 +27,7 @@ bootstrap: ## Set up everything to run the app
|
|||||||
.PHONY: bootstrap-with-git-hooks
|
.PHONY: bootstrap-with-git-hooks
|
||||||
bootstrap-with-git-hooks: ## Sets everything up and accounts for pre-existing git hooks
|
bootstrap-with-git-hooks: ## Sets everything up and accounts for pre-existing git hooks
|
||||||
make generate-version-file
|
make generate-version-file
|
||||||
poetry lock --no-update
|
poetry sync --no-root
|
||||||
poetry install --sync --no-root
|
|
||||||
poetry run playwright install --with-deps
|
poetry run playwright install --with-deps
|
||||||
git config --global --unset-all core.hooksPath
|
git config --global --unset-all core.hooksPath
|
||||||
poetry run pre-commit install
|
poetry run pre-commit install
|
||||||
@@ -129,7 +127,7 @@ py-lock: ## Syncs dependencies and updates lock file without performing recursiv
|
|||||||
|
|
||||||
.PHONY: freeze-requirements
|
.PHONY: freeze-requirements
|
||||||
freeze-requirements: ## create static requirements.txt
|
freeze-requirements: ## create static requirements.txt
|
||||||
poetry export --without-hashes --format=requirements.txt > requirements.txt
|
poetry export --output requirements.txt
|
||||||
|
|
||||||
.PHONY: pip-audit
|
.PHONY: pip-audit
|
||||||
pip-audit:
|
pip-audit:
|
||||||
|
|||||||
16
README.md
16
README.md
@@ -308,6 +308,22 @@ you'll be set with an upgraded version of Python.
|
|||||||
|
|
||||||
_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`._
|
_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`._
|
||||||
|
|
||||||
|
|
||||||
|
#### Poetry upgrades ####
|
||||||
|
|
||||||
|
If you are doing a new project setup, then after you install poetry you need to install the export plugin
|
||||||
|
|
||||||
|
```sh
|
||||||
|
poetry self add poetry-plugin-export
|
||||||
|
```
|
||||||
|
|
||||||
|
If you are upgrading from poetry 1.8.5, you need to do this:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl -sSL https://install.python-poetry.org | python3 - --version 2.1.3
|
||||||
|
poetry self add poetry-export-plugin
|
||||||
|
```
|
||||||
|
|
||||||
#### Updating the .env file for Login.gov
|
#### Updating the .env file for Login.gov
|
||||||
|
|
||||||
To configure the application for Login.gov, you will need to update the following environment variables in the .env file:
|
To configure the application for Login.gov, you will need to update the following environment variables in the .env file:
|
||||||
|
|||||||
Reference in New Issue
Block a user