Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Python-announce] makepackage: A lightweight tool for creating a Python package

8 views
Skip to first unread message

Marcin Kozak

unread,
Sep 7, 2022, 8:20:56 AM9/7/22
to
Packaging code is a frequent approach in both open-source and business
Python development. You can use various tools, such as Cookiecutter, or you
can package your package manually.

Now, you also have a much simpler solution, a makepackape Python package,
with which it takes just one simple shell command to create a package:
$ makepackage my_package

This will create a Python package named my_package. If you want to add
command-line interface to it, add a --cli flag:
$ makepackage my_package --cli

That's all you need! You will create a package with several functions,
documentation, doctests and pytests; you only need to fill in setup.py in
several places and LICENSE in one place.

makepackage's assumption is simplicity, so it does offer any additional
functionality. This means you can create just one structure (a common one)
of a Python package (with or without a CLI command). After you have called
the above command, you can start developing your package - fill in the
above-mentioned fields, and start replacing the existing functions and
tests. Is there a simpler way?

You can install makepackage from PyPi:
$ pip install makepackage

You can also check out the package's repository in GitHub:
https://github.com/nyggus/makepackage.

Best wishes,
Marcin
0 new messages