Skip to content

Commit

Permalink
python 3.13 (#103)
Browse files Browse the repository at this point in the history
* python 3.13

---------

Co-authored-by: artur.shiriev <[email protected]>
  • Loading branch information
lesnik512 and artur.shiriev authored Dec 17, 2024
1 parent 5cb1d48 commit 20df7c3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
Expand All @@ -40,7 +41,11 @@ jobs:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- run: uv python install ${{ matrix.python-version }}
- run: just install test . --cov=. --cov-report xml
- if: ${{ matrix.python-version == 3.13 }}
run: just install-313
- if: ${{ matrix.python-version < 3.13 }}
run: just install
- run: just test . --cov=. --cov-report xml
- uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down
8 changes: 6 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ default: install lint test

install:
uv lock --upgrade
uv sync --all-extras --frozen
uv sync --only-dev --frozen

install-313:
uv lock --upgrade
uv sync --only-dev --no-install-package litestar --no-install-package msgspec --frozen

lint:
uv run ruff format
Expand All @@ -15,7 +19,7 @@ lint-ci:
uv run mypy .

test *args:
uv run pytest {{ args }}
uv run --no-sync pytest {{ args }}

publish:
rm -rf dist
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Dependency injection framework for Python inspired by `dependency-injector`.

It is production-ready and gives you the following:
- Simple async-first DI framework with IOC-container.
- Python 3.10-3.12 support.
- Python 3.10-3.13 support.
- Full coverage by types annotations (mypy in strict mode).
- FastAPI and LiteStar compatibility.
- Overriding dependencies for tests.
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
"Topic :: Software Development :: Libraries",
]
Expand Down

0 comments on commit 20df7c3

Please sign in to comment.