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
9 changes: 5 additions & 4 deletions .github/workflows/style-and-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ 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 }}
allow-prereleases: true

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

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

## Unreleased

**Released: WiP**

- Migrated from `rye` to `uv` for development management.
([#21](https://github.com/davep/ng2web/pull/21))

## v1.0.1

**Released: 2025-05-27**
Expand Down
32 changes: 18 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
app := ng2web
src := src/
run := rye run
python := $(run) python
lint := rye lint -- --select I
fmt := rye fmt
mypy := $(run) mypy
mkdocs := $(run) mkdocs
app := ng2web
src := src/
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

##############################################################################
# Local "interactive testing" of the code.
Expand All @@ -17,12 +21,12 @@ run: # Run the code in a testing context
# Setup/update packages the system requires.
.PHONY: setup
setup: # Set up the repository for development
rye sync
$(sync)
$(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 @@ -67,19 +71,19 @@ publishdocs: # 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) --index testpypi

##############################################################################
# Utility.
Expand Down
15 changes: 4 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,26 +55,19 @@ Discussions = "https://github.com/davep/ng2web/discussions"
ng2web = "ng2web: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",
"mypy>=1.15.0",
"mkdocs-material>=9.6.9",
"markdown-exec>=1.10.2",
"ruff>=0.12.9",
]

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

[tool.hatch.build.targets.wheel]
packages = ["src/ng2web"]

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

This file was deleted.

22 changes: 0 additions & 22 deletions requirements.lock

This file was deleted.

Loading