A redistribution of LilyPond to use it easily from Python code.
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
LilyPond wheels
What's this?
GNU LilyPond is a text-based music typesetter.
Wheels are the standard binary distribution format for Python packages. This
repository contains a script that is being used to package LilyPond in wheel
format. The resulting wheels are uploaded on PyPI (see the
lilypond project page). The goal is to make
it easy to use LilyPond from Python code, installing LilyPond as if it were a
normal Python package — which allows to include it in your dependencies, pin it,
makes tools like tox able to install it, and generally makes all the tooling
around standard Python packages just work.
Usage
If you want to have the LilyPond wrapper package available in your Python environment, you can install it using
pip install lilypond
As always, consider installing packages in a virtual environment instead of globally.
You can of course use it in all the other normal ways a package on PyPI can be
used: pyproject.toml project.dependencies list, dependencies in tox.ini,
requirements.txt files, etc.
pip install lilypond does NOT make lilypond available as a command —
this is normal! This wrapper is specifically intended for using LilyPond from
Python code, not for installing LilyPond in general. In order to use the bundled
LilyPond, you should do:
import subprocess
import lilypond
subprocess.run([lilypond.executable(), "file.ly"])
That is, import the lilypond module, and use the executable() function to
get the full path to the bundled lilypond executable, as a pathlib.Path
object, then use the subprocess module to execute it.
Scripts shipped with LilyPond are also available; use the optional argument to
executable(), e.g., executable("convert-ly"), to access them.
Maintenance
When a new LilyPond release is out, run
hatch run build <version> 0
This leaves wheels of LilyPond <version> in build/. If they look good (use a
venv to check), upload them with
python -m twine upload build/*.whl
The 0 in the hatch command is the build number. In case something goes wrong
in published wheels, fixed wheels should be uploaded with a build number of 1
(then 2, etc.).
For type checking:
hatch run mypy:check
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lilypond-2.25.12-0-py3-none-win_amd64.whl.
File metadata
- Download URL: lilypond-2.25.12-0-py3-none-win_amd64.whl
- Upload date:
- Size: 41.3 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14711d62f22ddb9d5caf048deffdffced8f4d9d10cad96c3e3b68328bdbcee6c
|
|
| MD5 |
9746aaa04023cdd2908ae727ab3de843
|
|
| BLAKE2b-256 |
1a3d6efca969f698ce3e52428d62ff2a1587312eb6cc9e9e4bd4bd688d54edff
|
File details
Details for the file lilypond-2.25.12-0-py3-none-manylinux2014_x86_64.whl.
File metadata
- Download URL: lilypond-2.25.12-0-py3-none-manylinux2014_x86_64.whl
- Upload date:
- Size: 43.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68b72d24d542b03212a44672a71314d31138d3117542cff59b28f46dd5000106
|
|
| MD5 |
1fceb7b9c531c003142d2ec222df5aca
|
|
| BLAKE2b-256 |
ea7563d89e71ccc5d551ad77630944f7187fe9a861410c9ac63d4f71aca0030d
|
File details
Details for the file lilypond-2.25.12-0-py3-none-macosx_10_15_x86_64.whl.
File metadata
- Download URL: lilypond-2.25.12-0-py3-none-macosx_10_15_x86_64.whl
- Upload date:
- Size: 42.9 MB
- Tags: Python 3, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9096134302daf82b7dd20d08b08a3199b9a6ec353ede4fb71e90a5affd8d874c
|
|
| MD5 |
7cb93f4803fcf0fe8736ffe04a29b85d
|
|
| BLAKE2b-256 |
62b5ab967fead46591193d14cceb5babf28be02c8f5333f907e46269cd97e912
|