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
8 changes: 4 additions & 4 deletions .github/workflows/style-and-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:
steps:

- name: Checkout Code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Rye
uses: eifinger/setup-rye@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "latest"

Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# DHV ChangeLog

## Unrelased

**Released: WiP**

- Migrated from `rye` to `uv` for development management.

## v0.4.1

**Released: 2025-07-21**
Expand Down
37 changes: 20 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
app := dhv
src := src/
docs := docs/
run := rye run
test := rye test
python := $(run) python
lint := rye lint -- --select I
fmt := rye fmt
mypy := $(run) mypy
mkdocs := $(run) mkdocs
spell := $(run) codespell
app := dhv
src := src/
docs := docs/
run := uv run
sync := uv sync
build := uv build
publish := uv publish --username=__token__ --keyring-provider=subprocess
python := $(run) python
ruff := $(run) ruff
lint := $(ruff) check --select I
fmt := $(ruff) format
mypy := $(run) mypy
mkdocs := $(run) mkdocs
spell := $(run) codespell

##############################################################################
# Local "interactive testing" of the code.
Expand All @@ -32,15 +35,15 @@ console: # Run the textual console
# Setup/update packages the system requires.
.PHONY: ready
ready: # Make the development environment ready to go
rye sync
$(sync)

.PHONY: setup
setup: ready # Set up the repository for development
$(run) pre-commit install

.PHONY: update
update: # Update all dependencies
rye sync --update-all
$(sync) --upgrade

.PHONY: resetup
resetup: realclean # Recreate the virtual environment from scratch
Expand Down Expand Up @@ -89,19 +92,19 @@ publishdocs: clean-docs # Set up the docs for publishing
# Package/publish.
.PHONY: package
package: # Package the library
rye build
$(build)

.PHONY: spackage
spackage: # Create a source package for the library
rye build --sdist
$(build) --sdist

.PHONY: testdist
testdist: package # Perform a test distribution
rye publish --yes --skip-existing --repository testpypi --repository-url https://test.pypi.org/legacy/
$(publish) --index testpypi

.PHONY: dist
dist: package # Upload to pypi
rye publish --yes --skip-existing
$(publish)

##############################################################################
# Utility.
Expand Down
22 changes: 10 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies = [
]
readme = "README.md"
requires-python = ">= 3.13"
license = { text = "GNU General Public License v3 or later (GPLv3+)" }
license = "GPL-3.0-or-later"
keywords = [
"terminal",
"tui",
Expand All @@ -30,7 +30,6 @@ classifiers = [
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
Expand All @@ -57,12 +56,10 @@ Discussions = "https://github.com/davep/dhv/discussions"
dhv = "dhv.__main__:main"

[build-system]
# https://github.com/astral-sh/rye/issues/1446
requires = ["hatchling==1.26.3", "hatch-vcs"]
# requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["uv_build>=0.8.11,<0.9.0"]
build-backend = "uv_build"

[tool.rye]
[tool.uv]
managed = true
dev-dependencies = [
"pre-commit>=4.2.0",
Expand All @@ -71,13 +68,14 @@ dev-dependencies = [
"codespell>=2.4.1",
"mkdocs-material>=9.6.15",
"markdown-exec>=1.11.0",
"ruff>=0.12.9",
]

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ["src/dhv"]
[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.pyright]
venvPath="."
Expand Down
197 changes: 0 additions & 197 deletions requirements-dev.lock

This file was deleted.

Loading