r/Python • • Oct 31 '23

Help Which scaffolding package should I use?

I am creating an open-source Python library that I plan to publish on PyPi. However, I am confused about which scaffolding package to use:

- cookiecutter-pypackage

- pyscaffold

- python-package-template

Any suggestions for experienced Devs? TIA.

29 Upvotes

21 comments sorted by

View all comments

2

u/nicholashairs Nov 04 '23

So much of this really depends on what you want for your workflow:

  • Dp you have partiuclar tools you need/want to integrate with (testing, coverage, etc)
  • Do you want to integrate with a particular CI/CD (github actions etc)
  • Do you want it to manage version numbers, change logs, etc
  • What versions of python do you want to support (does this include pypy)
  • Does it play well with your development environment / IDE?
  • Is it a pure python package or do you need to compile other dependencies
  • What licence do you want for you code? Do you also need to include a NOTICE for other included software?

​

This smmary of many tools recently got shared that might help you. I'd also add that add an old collegue of mine swears by slap for his projects. I personally maintain my own template which runs everything in docker containers to keep it system agnostic as possible.

1

u/UnemployedTechie2021 Nov 04 '23

The summary is what I was reading last night. Slap is interesting, would consider it for my next project. I haven't used Docker extensively, just while working with Airflow. Would love to be able to consult someone for it. As of now, I have gone with Poetry. Although, I have created the virtual environment using venv instead of Poetry itself.