trampolim

A modern Python build backend


Keywords
build, pep517, package, packaging, backend, hacktoberfest, python, python3, sdist, wheel
License
MIT
Install
pip install trampolim==0.1.0

Documentation

trampolim

test codecov check Documentation Status PyPI version

A modern Python build backend.

Features

  • Task system, allowing to run arbitrary Python code during the build process
  • Automatic version detection from git repos and git archives
  • Easy to use CLI -- build, publish, check for errors and recommended practices (Planned)

Usage

trampolim implements PEP 621. Your pyproject.toml should look something like this:

[build-system]
build-backend = 'trampolim'
requires = ['trampolim~=0.1.0']

[project]
name = 'sample_project'
version = '1.0.0'
description = 'A sample project'
readme = 'README.md'
requires-python = '>=3.7'
license = { file = 'LICENSE' }
authors = [
  { name = 'Filipe Laíns', email = 'lains@riseup.net' },
]
classifiers = [
  'Development Status :: 4 - Beta',
  'Programming Language :: Python',
]

dependencies = [
  'dependency',
  'some-backport ; python_version < "3.8"',
]

[project.optional-dependencies]
test = [
  'pytest',
  'pytest-cov',
]

[project.scripts]
sample_entrypoint = 'sample_project:entrypoint_function'

[project.urls]
homepage = 'https://my-sample-project-website.example.com'
documentation = 'https://github.com/some-user/sample-project'
repository = 'https://github.com/some-user/sample-project'
changelog = 'https://github.com/some-user/sample-project/blob/master/CHANGELOG.rst'