Skip to content

Commit

Permalink
feat!: drop 3.8 support and add 3.13 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin committed Jan 23, 2025
1 parent 2b4489c commit d987de0
Show file tree
Hide file tree
Showing 22 changed files with 521 additions and 1,786 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/cd.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
uses: ./.github/workflows/test.yml
with:
coverage: ${{ matrix.python-version == '3.12' }}
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.8.6"
rev: "v0.9.2"
hooks:
# Run the linter.
- id: ruff
Expand All @@ -36,7 +36,7 @@ repos:
- id: ruff-format
types_or: [ python, pyi ]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.0
hooks:
- id: codespell
exclude: "uv.lock|package.json|package-lock.json"
Expand Down
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,13 @@ install-uv: ## Install latest version of
.PHONY: install
install: destroy clean ## Install the project, dependencies, and pre-commit
@echo "${INFO} Starting fresh installation..."
@uv python pin 3.12 >/dev/null 2>&1
@uv venv >/dev/null 2>&1
@uv sync --all-extras --dev
@if ! command -v npm >/dev/null 2>&1; then \
echo "${INFO} Installing Node environment... 📦"; \
uvx nodeenv .venv --force --quiet >/dev/null 2>&1; \
fi
@NODE_OPTIONS="--no-deprecation --disable-warning=ExperimentalWarning" npm install --no-fund >/dev/null 2>&1
@NODE_OPTIONS="--no-deprecation --disable-warning=ExperimentalWarning" npm install --no-fund
@echo "${OK} Installation complete! 🎉"

.PHONY: destroy
Expand All @@ -69,7 +68,7 @@ destroy: ## Destroy the virtual envir
upgrade: ## Upgrade all dependencies to latest stable versions
@echo "${INFO} Updating all dependencies... 🔄"
@uv lock --upgrade
@NODE_OPTIONS="--no-deprecation --disable-warning=ExperimentalWarning" npm upgrade --latest
@NODE_OPTIONS="--no-deprecation --disable-warning=ExperimentalWarning" npm upgrade --no-fund --latest
@echo "${OK} Dependencies updated 🔄"
@uv run pre-commit autoupdate
@echo "${OK} Updated Pre-commit hooks 🔄"
Expand All @@ -87,8 +86,8 @@ lock: ## Rebuild lockfiles from scr
.PHONY: build
build: ## Build the package
@echo "${INFO} Building package... 📦"
@NODE_OPTIONS="--no-deprecation --disable-warning=ExperimentalWarning" npm install >/dev/null 2>&1
@NODE_OPTIONS="--no-deprecation --disable-warning=ExperimentalWarning" npm run build >/dev/null 2>&1
@NODE_OPTIONS="--no-deprecation --disable-warning=ExperimentalWarning" npm install --no-fund --quiet
@NODE_OPTIONS="--no-deprecation --disable-warning=ExperimentalWarning" npm run build --quiet
@uv build -o dist/py >/dev/null 2>&1
@echo "${OK} Package build complete"

Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# -- Project information -----------------------------------------------------
project = __project__
version = __version__
copyright = "2023, Litestar-Org"
copyright = "2025, Litestar-Org"
author = "Litestar-Org"
release = os.getenv("_LITESTAR_VITE_DOCS_BUILD_VERSION", version.rsplit(".")[0])

Expand Down Expand Up @@ -131,7 +131,7 @@
autodoc_default_options = {"special-members": "__init__", "show-inheritance": True, "members": True}
autodoc_member_order = "bysource"
autodoc_typehints_format = "short"
autodoc_type_aliases: dict[str, str] = {}
autodoc_type_aliases: dict[str, str] = {"Path": "pathlib.Path"}

autosectionlabel_prefix_document = True

Expand Down
Loading

0 comments on commit d987de0

Please sign in to comment.