Skip to content

Commit

Permalink
drop support for python 3.8
Browse files Browse the repository at this point in the history
and update github actions setup
  • Loading branch information
petrjasek committed Dec 18, 2024
1 parent ff2815d commit 433bfe1
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 18 deletions.
11 changes: 1 addition & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,11 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"

- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
ignore:
- dependency-name: "webpack"
versions: [">=5.0.0"]
- dependency-name: "webpack-dev-server"
versions: [">=5.0.0"]
- dependency-name: "css-loader"
versions: [">=6.0.0"]
- dependency-name: "style-loader"
versions: [">=2.0.0"]

- package-ecosystem: "github-actions"
directory: "/"
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,31 @@ on: [push, pull_request]
jobs:
e2e:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: ['3.8']
python-version: ['3.10']
node-version: ['14']

services:
redis:
image: redis:alpine
ports:
- "6379:6379"

mongo:
image: mongo:4
ports:
- "27017:27017"

elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.25
ports:
- "9200:9200"
env:
discovery.type: single-node

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down
24 changes: 20 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,25 @@ jobs:

strategy:
matrix:
python-version: ['3.8', '3.10']
python-version: ['3.10']

services:
redis:
image: redis:alpine
ports:
- "6379:6379"

mongo:
image: mongo:4
ports:
- "27017:27017"

elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.25
ports:
- "9200:9200"
env:
discovery.type: single-node

steps:
- uses: actions/checkout@v4
Expand All @@ -19,9 +37,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: docker compose
run: docker compose -f .actions-docker-compose.yml up -d
cache: 'pip'

- run: |
sudo apt-get update
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[tool.black]
line-length = 120
target-version = ['py38']
target-version = ['py310']
1 change: 0 additions & 1 deletion scripts/ci-start-services.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash

docker compose -f .actions-docker-compose.yml up -d
while ! curl -sfo /dev/null 'http://localhost:9200/'; do echo -n '.' && sleep .5; done

cd e2e
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exclude= env, venv, node_modules, build
ignore = E203, E266, E501, W503

[mypy]
python_version = 3.8
python_version = 3.10
allow_untyped_globals = True
ignore_missing_imports = True
exclude = (env|e2e|node_modules|scripts|docker|dist|assets)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
include_package_data=True,
install_requires=requirements,
scripts=[],
python_requires=">=3.9",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
Expand Down

0 comments on commit 433bfe1

Please sign in to comment.