Commit dd610618 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

switch to uv

parent 9ebed81f
Loading
Loading
Loading
Loading
+1
Changes for .gitignore: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -15,3 +15,4 @@ requirements-dev.lock
requirements.lock
climax.spec
.DS_Store
uv.lock
 No newline at end of file
+10
Changes for .pre-commit-config.yaml: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
  # Ruff version.
  rev: v0.9.9
  hooks:
    # Run the linter.
    - id: ruff
      args: [ --fix ]
    # Run the formatter.
    - id: ruff-format
+6 −4
Changes for Makefile: 6 added lines, 4 removed lines.
Original line number Diff line number Diff line
install:  ## Installation en développement, à n'exécuter qu'une fois
	rye sync
	uv sync
	uv run pre-commit install
.PHONY:install

locales:  ## générer les fichiers de traductions
@@ -13,7 +14,7 @@ clean:
.PHONY:clean

build:locales  ## construire le paquet
	rye run pyinstaller src/climax.py --strip --noconfirm --collect-submodules shellingham --collect-submodules urllib
	uv run pyinstaller src/climax.py --strip --noconfirm --collect-submodules shellingham --collect-submodules urllib
	mkdir dist/climax/_internal/climax
	mkdir dist/climax/_internal/climax/locales
	cp -r src/climax/locales/* dist/climax/_internal/climax/locales/
@@ -23,11 +24,12 @@ build:locales ## construire le paquet
.PHONY:build

format: ## Formatage des sources avec Black
	rye run black ./src/
	uv run ruff check --fix ./src/
	uv run ruff format ./src/
.PHONY: format

tests: ## Lancer les tests
	rye run python tests.py
	uv run python tests.py
.PHONY: tests

help: ## afficher l'aide
+1 −1
Changes for README.md: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ climax is a CLI tool for MaX, Le Moteur d'Affichage XML.

## Prerequisite

- Rye: `curl -sSf https://rye.astral.sh/get | bash`
- uv: `curl -LsSf https://astral.sh/uv/install.sh | sh`
- gettext

## Dev commands
+21 −14
Changes for pyproject.toml: 21 added lines, 14 removed lines.
Original line number Diff line number Diff line
@@ -2,21 +2,31 @@
name = "climax"
version = "0.1.0"
description = "CLI tool for MaX, Le Moteur d'Affichage XML."
readme = "README.md"
license = {text = "CECILL-C"}
requires-python = ">= 3.12"
authors = [
    { name = "Mickaël Desfrênes", email = "mickael.desfrenes@unicaen.fr" }
]
maintainers = [
    { name = "Mickaël Desfrênes", email = "mickael.desfrenes@unicaen.fr" }
]
dependencies = [
    "typer>=0.12.3",
    "pyinstaller>=6.9.0",
    "typer>=0.15.1",
    "pyinstaller>=6.11.1",
    "requests>=2.32.3",
    "basexclient>=8.4.4",
    "beautifulsoup4>=4.12.3",
    "lxml>=5.3.0",
    "lxml-html-clean>=0.2.2",
    "geler-certic>=0.3.0",
    "lxml-html-clean>=0.4.1",
    "geler-certic>=0.4.1",
]

[dependency-groups]
dev = [
    "pre-commit>=4.1.0",
    "ruff>=0.9.2",
]
readme = "README.md"
requires-python = ">= 3.12"

[project.scripts]
climax = 'climax.__main__:app'
@@ -25,14 +35,11 @@ climax = 'climax.__main__:app'
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.rye]
managed = true
dev-dependencies = [
    "black>=24.4.2",
]
[tool.hatch.build.targets.wheel]
packages = ["src/climax"]

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

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

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