Skip to main content

makepyz - the makefile alternative

Intro

makepyz is a simple tool to collect task in a make.py file, in the same spirit of a Makefile: it allows you to write portable tasks in python leveraging an extensive internal library.

Install

There are two ways to install it, in standalone mode (eg. no dependencies) good for project that want to not rely on the makepyz project (or they want to keep a tight control on third parties code), and the usual pip installed package.

Using pip

You can use pip to install makepyz:

pip install makepyz

Stand alone

In standalone mod you can just get the latest makepyz:

curl -LO https://github.com/cav71/makepyz/raw/master/makepyz
echo hello

Using

First you need to create a make.py file:

from makepyz import api

@api.task()
def info(arguments: list[str]):
    """this is the hello world"""
    print(  # noqa: T201
        f"""
    Hi!
    python: {sys.executable}
    version: {sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}
    cwd: {Path.cwd()}
    arguments: {arguments}
    """)

Then:

makepyz

API

api.task - decorates a new makepyz task.

Example:

from make import api

@api.task()
def hello():
    print("Hello world")

api.which - finds an executablek. Example:

from make import api

print(api.which("dir"))

Metadata

Release files for makepyz 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for makepyz 0.0.1
File Size Uploaded Provenance
makepyz-0.0.1.tar.gz 23.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for makepyz 0.0.1
File Interpreter ABI Platform
makepyz-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 45.4 kB

Release files / makepyz-0.0.1.tar.gz

Download URL makepyz-0.0.1.tar.gz
Size 23.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cbe523e8d78e756b36e3ca98c1bce7e2546326a7e6ea8fc89aad99002ddc5428
BLAKE2b-256 checksum
How to use checksums
a3fde27abad3f2961183d16527a859e35213a7970310755a3e149e7c829085a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / makepyz-0.0.1-py3-none-any.whl

Download URL makepyz-0.0.1-py3-none-any.whl
Size 21.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57f981286593a2d74fc5dc29eb8e380dfffa4ff1fc37e671093332691d246ee3
BLAKE2b-256 checksum
How to use checksums
bce3402f68b63c778c8cb03a183ab1bfec12d25a7ab856f02b29acce55dc45a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for makepyz 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page