Skip to content

Commit

Permalink
chore: standardise to py3.12 (#3777)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell authored Apr 22, 2024
1 parent 97c5db7 commit 98e9cbf
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 180 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/api-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
- name: Cloning repo
uses: actions/checkout@v4

- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'

# Ignore CVE-2023-6129 as per https://github.com/pyca/pyopenssl/issues/1300
- name: Run Audit
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/api-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ jobs:
ports: ['5432:5432']
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

strategy:
max-parallel: 2
matrix:
python-version: ['3.10', '3.11']

steps:
- name: Cloning repo
uses: actions/checkout@v4
Expand All @@ -37,7 +32,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: 3.12
cache: 'poetry'

- name: Install Dependencies
Expand Down Expand Up @@ -66,7 +61,7 @@ jobs:
- name: Upload Coverage
uses: codecov/codecov-action@v4
env:
PYTHON: ${{ matrix.python-version }}
PYTHON: '3.12'
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: PYTHON
9 changes: 2 additions & 7 deletions .github/workflows/api-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ jobs:
ports: ['5432:5432']
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

strategy:
max-parallel: 2
matrix:
python-version: ['3.10', '3.11', '3.12']

steps:
- name: Cloning repo
uses: actions/checkout@v4
Expand All @@ -46,7 +41,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: 3.12
cache: 'poetry'

- name: Install Dependencies
Expand Down Expand Up @@ -75,7 +70,7 @@ jobs:
- name: Upload Coverage
uses: codecov/codecov-action@v4
env:
PYTHON: ${{ matrix.python-version }}
PYTHON: 3.12
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: PYTHON
7 changes: 1 addition & 6 deletions .github/workflows/api-tests-with-private-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ jobs:
ports: ['5432:5432']
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

strategy:
max-parallel: 4
matrix:
python-version: ['3.10', '3.11']

steps:
- name: Cloning repo
uses: actions/checkout@v4
Expand All @@ -47,7 +42,7 @@ jobs:
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: '3.12'
cache: 'poetry'

- name: Install Dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-flagsmith-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12
cache: pip

- name: Install Dependencies
Expand Down
161 changes: 6 additions & 155 deletions api/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ authors = ["Flagsmith <[email protected]>"]
readme = "readme.md"

[tool.poetry.dependencies]
python = ">=3.10,<3.13"
python = "~3.12"
django = "~3.2.25"
rudder-sdk-python = "~2.0.2"
segment-analytics-python = "~2.2.3"
Expand Down

0 comments on commit 98e9cbf

Please sign in to comment.