Skip to content

Commit

Permalink
Merge pull request WorldconVotingSystems#185 from WorldconVotingSyste…
Browse files Browse the repository at this point in the history
…ms/dep-psycopg3

dep: bump to a modern psycopg2
  • Loading branch information
offbyone authored Oct 16, 2024
2 parents e5d94e6 + c903d90 commit 9e066de
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 87 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

env:
SETUPTOOLS_SCM_PRETEND_VERSION: "2025.0.0"
UV_PYTHON: "3.12"
UV_PYTHON_PREFERENCE: managed
NOM_DB_NAME: gha_test
NOM_DB_HOST: localhost
NOM_DB_PORT: "52432"
Expand All @@ -53,9 +53,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- name: Set up uv
run: |
curl -LsSf https://astral.sh/uv/0.4.15/install.sh | sh
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: lint
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up uv
run: |
curl -LsSf https://astral.sh/uv/0.4.1/install.sh | sh
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Configure git
run: |
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ jobs:
convention_root: ${{ steps.convention-setup.outputs.convention_root }}
steps:
- uses: actions/checkout@v4
- name: Set up uv
run: |
curl -LsSf https://astral.sh/uv/0.4.15/install.sh | sh
- name: Install uv
uses: astral-sh/setup-uv@v3

- id: convention-setup
run: |
Expand Down Expand Up @@ -58,7 +57,7 @@ jobs:
- generate-convention

env:
UV_PYTHON: "3.12"
UV_PYTHON_PREFERENCE: managed

steps:
- uses: actions/download-artifact@v4
Expand All @@ -70,9 +69,8 @@ jobs:
find .
rm -f nomnomcon.tar
- uses: extractions/setup-just@v2
- name: Set up uv
run: |
curl -LsSf https://astral.sh/uv/0.4.15/install.sh | sh
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Post-installation setup
run: |
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies = [
"fontawesomefree>=6.5.1",
"icecream>=2.1.3",
"jinja2>=3.1.2",
"psycopg2-binary>=2.9.9",
"psycopg[binary]",
"pyrankvote>=2.0.6",
"redis>=5.0.1",
"sentry-sdk[celery,django]>=1.39.1",
Expand All @@ -57,7 +57,7 @@ dependencies = [
# Upgrading to 24 causes an inexplicable background color change in
# bg-body-tertiary
]
requires-python = ">=3.12"
requires-python = "~=3.12.4"
readme = "README.md"
license = {text = "MIT"}

Expand Down
Loading

0 comments on commit 9e066de

Please sign in to comment.