Skip to content

Comments

Switch from setuptools to hatch#88

Draft
TimMonko wants to merge 8 commits intonapari:mainfrom
TimMonko:hatch
Draft

Switch from setuptools to hatch#88
TimMonko wants to merge 8 commits intonapari:mainfrom
TimMonko:hatch

Conversation

@TimMonko
Copy link
Contributor

@TimMonko TimMonko commented Aug 1, 2025

References and relevant issues

I dunno, hatch is simpler and newer - seems first classed in a lot of tutorial materials.

Description

  1. Switch pyproject to use hatch. By default, the extra setuptools stuff we had is accounted for by hatch
  2. Switch gh action to hatch
  3. oh I guess we get to remove MANIFEST.in so that's a victory!

For example, here is a new project of mine... importantly it ships napari.yaml in the wheel
I have tests in root on this project, so I'd assume they'd get stuck in the wheel unless we do #83
Anyways, I'm happy with this but don't know if I'm missing something (as I said, it works in a new project of mine, see ndev-kit/ndevio#4

c:\Users\timmo\ndevio>cd c:\Users\timmo\ndevio && python -m zipfile -l "dist\ndevio-0.1.dev6+gc946c61.d20250801-py3-none-any.whl"
File Name                                             Modified             Size
ndevio/__init__.py                             2020-02-02 00:00:00          526
ndevio/_reader.py                              2020-02-02 00:00:00         2502
ndevio/_widget.py                              2020-02-02 00:00:00         4811
ndevio/_writer.py                              2020-02-02 00:00:00         1958
ndevio/napari.yaml                             2020-02-02 00:00:00         1818
ndevio-0.1.dev6+gc946c61.d20250801.dist-info/METADATA 2020-02-02 00:00:00         6286
ndevio-0.1.dev6+gc946c61.d20250801.dist-info/WHEEL 2020-02-02 00:00:00           87
ndevio-0.1.dev6+gc946c61.d20250801.dist-info/entry_points.txt 2020-02-02 00:00:00           46
ndevio-0.1.dev6+gc946c61.d20250801.dist-info/licenses/LICENSE 2020-02-02 00:00:00         1484
ndevio-0.1.dev6+gc946c61.d20250801.dist-info/RECORD 2020-02-02 00:00:00          874

@TimMonko TimMonko requested a review from willingc August 1, 2025 03:36
@Czaki
Copy link
Contributor

Czaki commented Aug 22, 2025

I prefer to first have at least one package in the Napari organization before this.

@TimMonko
Copy link
Contributor Author

I prefer to first have at least one package in the Napari organization before this.

Completely reasonable, and something I had considered as well. The main convenience for plugin authors of this PR is the simplification of pyproject.yaml and the removal MANIFEST.in

Co-authored-by: Grzegorz Bokota <bokota+github@gmail.com>
@TimMonko TimMonko marked this pull request as draft November 17, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants