Skip to content

Commit

Permalink
Chores/dep updates - python 3.11 -> 3.12
Browse files Browse the repository at this point in the history
* chores: dependencies

* chores: jawher/[email protected]
  • Loading branch information
polomarcus authored Oct 7, 2024
1 parent 5008535 commit 4d0ac94
Show file tree
Hide file tree
Showing 9 changed files with 526 additions and 518 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:


env:
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'
POETRY_VERSION: '1.8.3'

jobs:
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
run: docker push ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/ingest_to_db

- name: update scaleway job definition with version mediatree_import
uses: jawher/action-scw@v2.32.1
uses: jawher/action-scw@v2.34.0
env:
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scaleway-down.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Use CLI
uses: jawher/action-scw@v2.32.1
uses: jawher/action-scw@v2.34.0
env:
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
Expand All @@ -25,7 +25,7 @@ jobs:


- name: 0 instances
uses: jawher/action-scw@v2.32.1
uses: jawher/action-scw@v2.34.0
env:
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scaleway-start-import-job-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: start import job to reapply logic to all elements start_date matrix
uses: jawher/action-scw@v2.32.1
uses: jawher/action-scw@v2.34.0
env:
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scaleway-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Use CLI
uses: jawher/action-scw@v2.32.1
uses: jawher/action-scw@v2.34.0
env:
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
Expand All @@ -24,7 +24,7 @@ jobs:
run: echo "CONTAINER_ID=$(cat "${GITHUB_WORKSPACE}/scw.output" | jq -r '.[0].id')" >> $GITHUB_ENV

- name: start 1 instances
uses: jawher/action-scw@v2.32.1
uses: jawher/action-scw@v2.34.0
env:
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

env:
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.12'
POETRY_VERSION: '1.8.3'

jobs:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#from https://medium.com/@albertazzir/blazing-fast-python-docker-builds-with-poetry-a78a66f5aed0
FROM python:3.11.9 as builder
FROM python:3.12.7 as builder

ENV VIRTUAL_ENV=/app/.venv

Expand All @@ -17,7 +17,7 @@ RUN pip install poetry==1.8.3
RUN poetry install

# The runtime image, used to just run the code provided its virtual environment
FROM python:3.11.9-slim as runtime
FROM python:3.12.7-slim as runtime

WORKDIR /app

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile_api_import
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#from https://medium.com/@albertazzir/blazing-fast-python-docker-builds-with-poetry-a78a66f5aed0
FROM python:3.11.9 as builder
FROM python:3.12.7 as builder

ENV VIRTUAL_ENV=/app/.venv

Expand All @@ -17,7 +17,7 @@ RUN pip install poetry==1.8.3
RUN poetry install

# The runtime image, used to just run the code provided its virtual environment
FROM python:3.11.9-slim as runtime
FROM python:3.12.7-slim as runtime

WORKDIR /app

Expand Down
1,017 changes: 513 additions & 504 deletions poetry.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ log_cli = 1
log_cli_level = "INFO"

[tool.poetry.dependencies]
python = ">=3.11.0,<3.13.0"
python = ">=3.11,<=3.13"
pandas = "^2.2.3"
advertools = "^0.14.1"
xmltodict = "^0.13.0"
Expand All @@ -29,7 +29,6 @@ swifter = "^1.4.0"
tenacity = "^8.2.3"
sentry-sdk = "^2.13.0"
modin = {extras = ["ray"], version = "^0.32.0"}
numpy = "1.26.4"
openpyxl = "^3.1.5"
requests = "^2.32.3"
[build-system]
Expand Down

1 comment on commit 4d0ac94

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
postgres
   insert_data.py43784%36–38, 56–58, 63
   insert_existing_data_example.py19384%25–27
postgres/schemas
   models.py1551094%126–133, 145–146, 211–212, 226–227
quotaclimat/data_ingestion
   scrap_sitemap.py1341787%27–28, 33–34, 66–71, 95–97, 138–140, 202, 223–228
quotaclimat/data_ingestion/ingest_db
   ingest_sitemap_in_db.py553733%21–42, 45–58, 62–73
quotaclimat/data_ingestion/scrap_html
   scrap_description_article.py36392%19–20, 32
quotaclimat/data_processing/mediatree
   api_import.py21113337%44–48, 53–74, 78–81, 87, 90–132, 138–153, 158, 171–183, 187–193, 206–218, 221–225, 231, 266–267, 270–301, 304–306
   channel_program.py1655765%25–27, 38–40, 57–58, 61–63, 102–103, 112, 128, 179–220
   config.py15287%7, 16
   detect_keywords.py209896%220, 278–285
   update_pg_keywords.py674927%15–108, 132, 135, 142–157, 180–206, 213
   utils.py792568%29–53, 56, 65, 86–87, 117–120
quotaclimat/utils
   healthcheck_config.py291452%22–24, 27–38
   logger.py241154%22–24, 28–37
   sentry.py11282%22–23
TOTAL127837870% 

Tests Skipped Failures Errors Time
93 0 💤 0 ❌ 0 🔥 7m 56s ⏱️

Please sign in to comment.