Skip to content

Commit

Permalink
Relax dependencies and make them independent on python version
Browse files Browse the repository at this point in the history
  • Loading branch information
mofr committed Aug 23, 2024
1 parent cfb69e3 commit 1afa9ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
strategy:
matrix:
python-version: [3.8, 3.9, 3.10.2, 3.11, 3.12]
sqlalchemy-version: [1.3, 1.4]
django-version: [2.2, 4.2]

steps:
- uses: actions/checkout@v3
Expand All @@ -24,7 +26,10 @@ jobs:
with:
version: 1.3.2
- name: Install dependencies
run: poetry install
run: |
sed -i 's/^SQLAlchemy = .*/SQLAlchemy = "^${{ matrix.sqlalchemy-version }}"' pyproject.toml
sed -i 's/^Django = .*/Django = "^${{ matrix.django-version }}"' pyproject.toml
poetry install
- name: Test with pytest
run: |
poetry run pytest -rfs --cov --cov-config=.coveragerc --cov-report="" --disable-warnings
Expand Down
23 changes: 5 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "winter"
version = "26.0.1"
version = "27.0.0"
homepage = "https://github.com/WinterFramework/winter"
description = "Web Framework with focus on python typing, dataclasses and modular design"
authors = ["Alexander Egorov <[email protected]>"]
Expand Down Expand Up @@ -32,26 +32,17 @@ packages = [

[tool.poetry.dependencies]
python = "^3.8"
Django = [
{version = ">=4.2, <5", python = ">=3.12"},
{version = ">=1.11.16, <3.0.0", python = "<3.12"}
]
Django = ">=2"
docstring-parser = ">=0.1"
furl = ">=2.0.0, <3"
python-dateutil = "^2.8.2"
injector = ">=0.15.0, <1"
SQLAlchemy = [
{version = "~1.4", python = ">=3.12"},
{version = "~1.3", python = "<3.12"}
]
SQLAlchemy = ">=1.3, <2"
typing-extensions = "^4.8"
StrEnum = "^0.4.8"
openapi-pydantic = ">=0.4.1, <1"
pydantic = ">=1.10, <2"
openapi-spec-validator = [
{version = ">=0.7.1, <1", python = ">=3.12"},
{version = "^0.5.7", python = "<3.12"}
]
openapi-spec-validator = ">=0.5.7, <1"
uritemplate = ">=4.1.1, <5"
httpx = ">=0.24.1, <1"

Expand All @@ -70,11 +61,7 @@ semver = ">=2.8.1, <3"
add-trailing-comma = ">=1.3.0, <2"
pre-commit = ">=1.17.0, <2"
lxml = ">=4.9.1, <6.0.0"

pytz = [
{version = ">=2024.1", python = ">=3.12"},
{version = ">=2020.5", python = "<3.12"}
]
pytz = ">=2020.5"

[tool.poetry.group.dev.dependencies]
setuptools = "^71.1.0"
Expand Down

0 comments on commit 1afa9ef

Please sign in to comment.