Skip to content

Commit

Permalink
chore: use uv instead of pdm
Browse files Browse the repository at this point in the history
  • Loading branch information
kod-kristoff committed Oct 22, 2024
1 parent 390a771 commit f650102
Show file tree
Hide file tree
Showing 7 changed files with 638 additions and 294 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,4 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.pdm-python
.python-version
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
stages: [commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.2
rev: v0.7.0
hooks:
# Run the linter.
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ publish:
prepare-release: update-changelog tests/requirements-testing.lock

# we use lock extension so that dependabot doesn't pick up changes in this file
tests/requirements-testing.lock: pyproject.toml
tests/requirements-testing.lock: tests/requirements-testing.in
uv pip compile $< --output-file $@

.PHONY: update-changelog
Expand Down
26 changes: 11 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies = [
"typing-extensions>=4.11.0",
"strenum>=0.4.15", # For StrEnum i Python < 3.10
]
requires-python = ">=3.8"
requires-python = ">=3.9"
readme = "README.md"
license = { text = "MIT" }
classifiers = [
Expand All @@ -25,11 +25,11 @@ classifiers = [
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
# "uncomment if you test on these interpreters:",
# "Programming Language :: Python :: Implementation :: IronPython",
Expand All @@ -39,19 +39,15 @@ classifiers = [
]

[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
requires = ["hatchling"]
build-backend = "hatchling.build"


[tool.pdm]
distribution = true

[tool.pdm.dev-dependencies]
dev = [
"syrupy>=3.0.6",
"pytest>=7.4.4",
"ruff>=0.4.1",
"mypy>=1.9.0",
[tool.uv]
dev-dependencies = [
"bump-my-version>=0.28.0",
"mypy>=1.12.1",
"pytest-cov>=5.0.0",
"bump-my-version>=0.21.0",
"pytest>=8.3.3",
"ruff>=0.7.0",
"syrupy>=4.7.2",
]
2 changes: 2 additions & 0 deletions tests/requirements-testing.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pytest
syrupy
291 changes: 14 additions & 277 deletions tests/requirements-testing.lock

Large diffs are not rendered by default.

608 changes: 608 additions & 0 deletions uv.lock

Large diffs are not rendered by default.

0 comments on commit f650102

Please sign in to comment.