Skip to main content

A dockerized build tool for paper compilation

Project description

texbld

Although we expect LaTeX compilation to be a declarative process (source to PDF), the compilations for large projects eventually require a large number of custom external programs and dependencies. For example, a compilation step might require running a script written in haskell, piping that output into pandoc, then putting everything into a LaTeX file for compilation with pdflatex. How will one ever get around to installing all of those programs (ESPECIALLY the pesky ghc dependencies) in a production system, which should never break?

Furthermore, different LaTeX distributions will have ever so slightly different outputs (especially when working with biblatex), which is an issue for reproducibility.

The first take on these problems was mktex. Although it solves some dependency issues, it suffers from the various fragility and reproducibility issues that come with using pre-built docker images. Furthermore, because of its design, these images were forced to be monolithic, bloated, and ultimately inflexible. Each build should have exactly the dependencies that it requires and nothing more!

texbld aims to solve these problems by providing an environment where build images are fully reproducible and shareable. It uses docker for absolute system reproducibility and for usage across all platforms which it supports (MacOS, Windows, and its native Linux).

Image hashes are used to ensure that any docker image is completely immutable, preventing dependency modification issues.

Users can specify their build image in a simple TOML file (along with associated files) and upload them to github, from which it can be inherited and used by other people in their own projects. Extensive Documentation will be released in the future.

Images can be inherited from packages in the local filesystem, GitHub, or Docker.

Setting Up This Project

This project uses poetry as its dependency manager. Simply run poetry install and poetry shell inside the project directory, and you should land in a virtual environment with all of your dependencies.

In order to run tests in the virtual environment, run pytest.

The Local Environment

The project configuration file should be in (project root)/texbld.toml, while local image configurations should be in $HOME/.config/texbld/packages.

TODO

  • Documentation at texbld.github.io

Possible new Features

  • Alias system in ~/.config/texbld/aliases.toml
  • Testing that an image builds properly without creating a project.
  • Automatic package manager deduction in a v2 sourceimage parser
  • Creating a custom registry? (Not likely due to stability issues)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

texbld-0.1.0.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

texbld-0.1.0-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file texbld-0.1.0.tar.gz.

File metadata

  • Download URL: texbld-0.1.0.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.5.0

File hashes

Hashes for texbld-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b596d2345f31113bf255e925fb724719de55e57462cff1cd68d1a5296c6bf2ec
MD5 28c4301b93ccbf02c6e0be077104be2d
BLAKE2b-256 2007f79f258242fb0b95bc076d8e9f39a589b360b0f98a078ef8d51c2d1a2b3b

See more details on using hashes here.

File details

Details for the file texbld-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: texbld-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.5.0

File hashes

Hashes for texbld-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d17088a2971f5ac5afd7eea37b54bdce6a10c97376162bf429fcd1c78f366ad1
MD5 a3bf80beb70a8156ccf9fabd9143faba
BLAKE2b-256 5428e5c834b750c15bd364f863206176be6cda7f62d57cb458635ed108d79c38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page