Skip to content

Commit b12933e

Browse files
pigrecoclaude
andcommitted
Aggiorna CLAUDE.md: aggiornare README.md prima di ogni release
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 53690c5 commit b12933e

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Note di progetto per Claude
2+
3+
## Release QGIS Plugin
4+
Quando si crea una release GitHub per questo plugin QGIS, NON affidarsi al "Source code (zip)" automatico di GitHub: la cartella dentro il zip avrebbe il suffisso versione (es. `wfs_catasto_download_particelle_bbox-v1.4.0`) che rompe l'import Python in QGIS.
5+
6+
Bisogna sempre creare manualmente un file zip con la cartella top-level che si chiama esattamente `wfs_catasto_download_particelle_bbox` (senza suffisso versione) e allegarlo come asset alla release.
7+
8+
Prima di creare la release, aggiornare sempre:
9+
1. `metadata.txt`: incrementare il campo `version` (es. `1.4.3``1.4.4`) e aggiungere una voce nel `changelog`
10+
2. `README.md`: aggiungere la voce nel **Changelog** e documentare eventuali nuove funzionalità
11+
3. Includere anche `get_particella_wfs.py` nel comando `cp` dello zip
12+
13+
Procedura:
14+
```bash
15+
cd /tmp
16+
rm -rf wfs_catasto_download_particelle_bbox wfs_catasto_download_particelle_bbox.zip
17+
mkdir wfs_catasto_download_particelle_bbox
18+
# Copiare solo i file necessari al plugin (no .git, __pycache__, test, README, ecc.)
19+
cp __init__.py metadata.txt icon.svg *_p.py *_d.py wfs_catasto_gui.py get_particella_wfs.py LICENSE wfs_catasto_download_particelle_bbox/
20+
cp -r sketches wfs_catasto_download_particelle_bbox/
21+
zip -r wfs_catasto_download_particelle_bbox.zip wfs_catasto_download_particelle_bbox/
22+
gh release upload vX.Y.Z wfs_catasto_download_particelle_bbox.zip --clobber
23+
```

0 commit comments

Comments
 (0)