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

    From Marcin Kozak@[email protected] to comp.lang.python.announce on Wed Sep 7 13:55:14 2022
    From Newsgroup: comp.lang.python.announce

    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
    --- Synchronet 3.19c-Linux NewsLink 1.113