Skip to content

Commit

Permalink
move from python-poetry to astral-sh/uv
Browse files Browse the repository at this point in the history
  • Loading branch information
medecau committed Nov 20, 2024
1 parent c053d4e commit 338e996
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 18 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ help: ## Show this help.

.PHONY: lint
fix: ## Run linters.
ruff check --select I --fix .
ruff check --fix .
ruff format .

.PHONY: check
check: ## Run linters in check mode.
ruff check --select I .
ruff check .
ruff format --check .

.PHONY: test
test: check ## Run tests.
poetry run pytest
uv run pytest

.PHONY: publish
publish: test check ## Publish to PyPI.
poetry publish --build
uv build
uv publish
35 changes: 21 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
[tool.poetry]
[project]
name = "sched2"
version = "0.8.1"
version = "0.8.2"
description = "Event scheduler 2"
authors = ["Pedro Rodrigues <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://medecau.github.io/sched2/"
requires-python = "<4.0,>=3.8"
license = {text = "MIT"}
authors = [
{name = "Pedro Rodrigues", email = "[email protected]"},
]

[tool.poetry.dependencies]
python = "^3.8"
[project.urls]
homepage = "https://medecau.github.io/sched2/"

[tool.poetry.group.dev.dependencies]
pdoc = "^12.3.0"
pytest = "^8.0.2"
pytest-mock = "^3.12.0"
[dependency-groups]
dev = [
"pdoc<13.0.0,>=12.3.0",
"pytest<9.0.0,>=8.0.2",
"pytest-mock<4.0.0,>=3.12.0",
]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff.lint]
extend-select =[
"I", # imports
"ERA001", # dead code
"T100", # debugger
]
File renamed without changes.
File renamed without changes.

0 comments on commit 338e996

Please sign in to comment.