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
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ jobs:
uses: softprops/action-gh-release@v2
with:
body: ${{steps.github_release.outputs.changelog}}
draft: true
prerelease: true
draft: false
prerelease: false
tag_name: ${{ github.ref_name }}
make_latest: 'false'
make_latest: 'true'
fail_on_unmatched_files: false

build:
Expand Down
19 changes: 8 additions & 11 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,14 @@ through conda. The macOS extra is `[macos]` (currently `coremltools==8.3.0`).

- `anylabeling/resources/resources.qrc` (XML) compiles to `resources.py`.
- `anylabeling/resources/translations/{en_US,vi_VN,zh_CN}.{ts,qm}`.
- `scripts/generate_languages.py` extracts translatable strings into `.ts`
files and runs `pyuic6` on `.ui` files.
- `scripts/compile_languages.py` calls `lrelease` to produce `.qm` files,
and then `pyrcc5` to rebuild `resources.py`.

Note: the project migrated from PyQt5 to PyQt6 (commit `9735fe8`), but
`scripts/compile_languages.py` still calls `pyrcc5`. PyQt6 does not ship a
`pyrcc6`; one common workaround is to keep `pyrcc5` from a PyQt5-tools
sideload, or vendor the resource bytes. `generate_languages.py` already
references `pyrcc6`. Treat this script pair as inconsistent and fix
deliberately when touching it.
- `scripts/compile_languages.py` rebuilds `.qm` files and `resources.py`
from existing `.ts` files. Use after editing translations or icons.
- `scripts/generate_languages.py` does the full extract: runs `pyuic6` on
`.ui` files, `pylupdate6` to refresh `.ts`, then the compile step.
- Both shell out to `pyside6-rcc` and `pyside6-lrelease` (PyQt6 dropped
the standalone `pyrcc` in Qt6) and post-rewrite `from PySide6` to
`from PyQt6` so the generated module uses the runtime's Qt binding.
`PySide6-Essentials` is in the `[dev]` extras for this purpose only.

### Tests

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ All models are downloaded automatically on first use from Hugging Face.

### Install from Pypi

- Requirements: Python 3.10+. Recommended: Python 3.12.
- Requirements: Python 3.11+. Recommended: Python 3.12.
- Recommended: [Miniconda/Anaconda](https://docs.conda.io/en/latest/miniconda.html).

- Create environment:
Expand Down
42 changes: 0 additions & 42 deletions setup.py

This file was deleted.

Loading