photocrowd / django-cursor-pagination

Cursor-based pagination for Django
BSD 3-Clause "New" or "Revised" License
156 stars 27 forks source link

Migrate to flit, pdm, or hatch #47

Open patrick91 opened 1 year ago

patrick91 commented 1 year ago

Currently, our build step look like this:

python -m pip install build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*

I think we can migrate to a tool like flit, pdm or hatch, which won't require us to have a setup.py file (and we can migrate to pyproject.toml)

ofek commented 1 year ago

Examples of other Django projects migrating to Hatch:

hmpf commented 3 months ago

I can do this, though I'd pick between flit or hatchling as I've never used PDM. I could also just convert to setuptools with pyproject.toml.

flit_core ignores .gitignore, it packs everything it finds in the directory at the time of build into the sdist tarball. hatchling does care about .gitignore.

With flit/hatchling, the build step can look identical to what you have.

I've moved all my stuff to one of them. I seem to start with flit then flip to hatchling if the list of ignored files grows large enough (otherwise I need to always git stash -u before building, though that's a good habit anyway).

ofek commented 3 months ago

Let me know if you would like assistance with reviews or otherwise (I maintain Hatch/Hatchling)!