8000 chore: drop Python 3.10, require 3.11 for the package and the scaffold by burnash · Pull Request #49 · dlt-hub/dlthub-init · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Removed
- Python 3.10 support. Both `dlthub-init` and the scaffolded workspace now require Python 3.11 or newer: 3.10 reached end of life in October 2026, `dlthub-client` 0.28.8 already dropped it, and the scaffold pins 3.13 via `.python-version`. The `tomli` fallback dependency is gone with it.

### Changed
- Capped `beaupy` below 5 so a lock refresh cannot take a major version silently.

### Fixed
- `make scaffold-deps-sync` works with dlt 1.32.0, where `WORKSPACE_DEPS` became `workspace_deps()` (#43).

Expand Down
13 changes: 4 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "dlthub-init"
version = "0.2.11"
description = "Scaffold a dltHub workspace into a new or existing directory."
readme = "README.md"
requires-python = ">=3.10"
requires-python = ">=3.11"
license = { file = "LICENSE" }
authors = [
{ name = "dltHub" },
Expand All @@ -17,9 +17,8 @@ classifiers = [
]
dependencies = [
"rich>=13.7",
"beaupy>=3.9",
"beaupy>=3.9,<5",
"posthog>=3.7",
"tomli>=2.0; python_version < '3.11'",
]

[project.urls]
Expand All @@ -40,14 +39,14 @@ dlthub-init = "dlthub_init.cli:main"

[tool.ruff]
line-length = 120
target-version = "py310"
target-version = "py311"
extend-exclude = ["src/dlthub_init/scaffolds"]

[tool.ruff.lint]
extend-select = ["PLC0415"]

[tool.mypy]
python_version = "3.10"
python_version = "3.11"
ignore_missing_imports = false
strict_optional = true
warn_redundant_casts = true
Expand Down Expand Up @@ -80,10 +79,6 @@ ignore_missing_imports = true
module = "posthog.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "tomli"
ignore_missing_imports = true

[tool.hatch.build.hooks.custom]
path = "hatch_build.py"

Expand Down
6 changes: 1 addition & 5 deletions scripts/sync_workspace_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@
import shutil
import subprocess
import sys
import tomllib
from pathlib import Path

if sys.version_info >= (3, 11):
import tomllib
else:
import tomli as tomllib

REPO_ROOT = Path(__file__).resolve().parent.parent
SCAFFOLD_DIR = REPO_ROOT / "src" / "dlthub_init" / "scaffolds" / "minimal_workspace"
SCAFFOLD_PYPROJECT = SCAFFOLD_DIR / "pyproject.toml"
Expand Down
2 changes: 1 addition & 1 deletion src/dlthub_init/scaffolds/minimal_workspace/pyproject.toml
8000
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "dlthub-workspace"
version = "0.1.0"
description = "A dlthub workspace"
requires-python = ">=3.10"
requires-python = ">=3.11"
dependencies = [
"dlt[hub]>=1.27.2,<2",
"dlthub>=0.27.0,<1",
Expand Down
822 changes: 20 additions & 802 deletions src/dlthub_init/scaffolds/minimal_workspace/uv.lock

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions src/dlthub_init/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import logging
import os
import secrets
import sys
import tempfile
import time
import tomllib
import uuid
from datetime import datetime, timezone
from pathlib import Path
Expand All @@ -18,11 +18,6 @@
from .config import POSTHOG_HOST, VERSION
from .display import console

if sys.version_info >= (3, 11):
import tomllib
else:
import tomli as tomllib

try:
from ._telemetry_key import POSTHOG_PROJECT_KEY # type: ignore[import-untyped]
except (ImportError, SyntaxError):
Expand Down
129 changes: 2 additions & 127 deletions uv.lock

Large diffs are not rendered by default.

Loading
0