Skip to content

9ft6/pymake-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Python Makefile Template

This is minimal Makefile to manage Python projects. Built for personal use. No warranties or guarantees.

Features

  • Create a virtual environment for a specific version (default 3.13).
  • Install dependencies from requirements.txt or pyproject.toml.
  • Run the application via ENTRYPOINT.
  • Clean build artifacts.
  • Optionally install Ubuntu system packages via UBUNTU_PACKAGES (apt/apt-get).

Settings:

  • PYTHON_VERSION - Python version (default 3.13)
  • VENV_DIR - path to the virtual environment (default venv)
  • ENTRYPOINT - command/script to run (default app.py)
  • APT_PACKAGES - list packages installed by apt
  • APT_GET_PACKAGES - list packages installed by apt-get
  • SNAP_PACKAGES - list packages installed by snap

Commands

  • help - show available commands
  • venv - create a virtual environment and install requirements.txt
  • install - install venv, dependencies (+ Ubuntu packages if provided)
  • run - run the application
  • clean - remove build artifacts
  • clean-venv - remove virtual environment

About

Python Makefile Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published