Skip to content

Commit

Permalink
Python upgraded to 3.11 (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nagaev authored Nov 29, 2023
1 parent 4453320 commit 7e0dc65
Show file tree
Hide file tree
Showing 7 changed files with 187 additions and 206 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,24 @@ jobs:
Flake8:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: "3.11"
- uses: actions/checkout@v2
- name: Install Flake8
- name: Install Deps
run: |
pip install flake8 flake8-isort
pip install -r requirements-dev.txt
- name: Run Flake8
run: |
flake8
Mypy:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: "3.10"
python-version: "3.11"
- uses: actions/checkout@v2
- name: Install Deps
run: |
Expand All @@ -43,10 +47,10 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: "3.10"
python-version: "3.11"
- uses: actions/checkout@v2
- name: Install Deps
run: |
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-alpine3.18 AS builder
FROM python:3.11-alpine AS builder

RUN apk update \
&& apk upgrade \
Expand All @@ -16,7 +16,7 @@ COPY requirements.txt /app/requirements.txt
RUN pip install --upgrade pip --no-cache-dir
RUN pip install -r requirements.txt

FROM python:3.10-alpine3.18
FROM python:3.11-alpine

LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.name="Stubborn"
Expand Down
14 changes: 13 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.6.0] - 2023-11-25
## [1.7.0] - 2023-11-29

### Changed

- Python upgraded to 3.11
- uWSGI upgraded to 2.0.23

### Fixed

- uWSGI's workers crash.


## [1.6.0] - 2023-1-25

### Added

Expand Down
60 changes: 17 additions & 43 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Sergei Nagaev <nagaev.sv@gmail.com>"]
license = "MIT"

[tool.poetry.dependencies]
python = "^3.10"
python = "^3.11"
Faker = "17.0.0"
Jinja2 = "3.1.2"
Pygments = "2.16.1"
Expand All @@ -21,7 +21,7 @@ ipdb = "0.13.13"
psycopg2-binary = "2.9.9"
requests = "2.31.0"
setuptools = "69.0.2" # temporary solution, just to replace the default version with CVE-2022-40897
uWSGI = "2.0.22"
uWSGI = "2.0.23"

[tool.poetry.dev-dependencies]
black = "^23.9"
Expand Down
Loading

0 comments on commit 7e0dc65

Please sign in to comment.