Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from setuptools to hatch #1882

Merged
merged 3 commits into from
Jan 10, 2024
Merged

Migrate from setuptools to hatch #1882

merged 3 commits into from
Jan 10, 2024

Conversation

rht
Copy link
Contributor

@rht rht commented Nov 17, 2023

Depends on #1870 to be merged.

Several resources recommended to replace setuptools with either Flit, Hatch, Poetry, or PDM. Both Flit and Hatch are maintained by PyPA. Flit is restricted to pure Python projects. According to pyOpenSci, PDM's documentation can be confusing, and has only 1 maintainer. That leaves Hatch and Poetry. There was a discussion about dropping Pipenv and instead support Poetry. I wasn't able to find the thread from the issue search. However, it should be fine to go from setuptools to Hatch first, because the jump is much smaller: the diff for pyproject.toml in this PR is <10 LOC.

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d2eb502) 79.92% compared to head (24e1dd1) 79.92%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1882   +/-   ##
=======================================
  Coverage   79.92%   79.92%           
=======================================
  Files          15       15           
  Lines        1270     1270           
  Branches      277      277           
=======================================
  Hits         1015     1015           
  Misses        216      216           
  Partials       39       39           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rht rht force-pushed the hatch branch 2 times, most recently from 392e42e to 95bd4dc Compare November 19, 2023 11:50
@rht
Copy link
Contributor Author

rht commented Nov 19, 2023

Rebased. This PR is ready.

@tpike3
Copy link
Member

tpike3 commented Dec 2, 2023

Sorry this took so long, I always get nervous messing with the project management tools.

I am good with this. It is faster and cleaner and as you said we can always switch to poetry if that becomes the standard.

The only thing I would ask is can you add the badge to the readme --- Hatch project

rht added 3 commits January 7, 2024 18:35
With Hatch, files that are not tracked in VCS are automatically
excluded.
@rht
Copy link
Contributor Author

rht commented Jan 7, 2024

Rebased, and the Hatch badge added.

@EwoutH EwoutH added maintenance Release notes label packaging Release notes label labels Jan 9, 2024
@Corvince
Copy link
Contributor

I am merging this, I had good (albeit very small) experience with hatch

@Corvince Corvince merged commit 1d48db5 into projectmesa:main Jan 10, 2024
11 of 12 checks passed
@rht rht deleted the hatch branch January 10, 2024 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Release notes label packaging Release notes label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants