Modify an environment to build and bundle a Python package into a manylinux wheel.
Project description
little-cheesemonger
little-cheesemonger
is a package that can set up a manylinux build environment to compile a
correctly linked manylinux wheel. Configuration data is loaded from a pyproject.toml
file, or
a custom data loader can be implemented.
Installation
pip install little-cheesemonger==0.1.0rc0
Quickstart
To trigger environment setup, either run little-cheesemonger
from the root directory of a package, or pass the path to the package you want compiled. The package must contain configuration data in its pyproject.toml
file for environment setup to work.
little-cheesemonger path/to/package
Default Configuration
The manylinux image version is controlled by last section of the configuration heading. The latest
tag is always used.
[tool.little-cheesemonger.manylinux2014_x86_64]
environment_variables = [
"FOO=BAR"
]
system_dependencies = [
"atlas"
]
python_dependencies = [
"nyancat==0.1.2"
]
python_versions = [
"cp36-cp36m"
"cp38-cp38"
]
steps = [
"touch /foobar.txt"
]
environment_variables
is a list of environment variables to set in the container prior to building the wheel. They are expected to be inKEY=VALUE
format.system_dependencies
is a list of CentOS system dependencies to install viaYUM
. They are expected to be inpackage-version
format.python_dependencies
is a list of Python dependencies to install viapip
. They are expected to be inpackage==version
format. They are currently installed for all available versions of Python in a given manylinux image.python_versions
is a list of Python versions to install Python dependencies for in a given manylinux image. They are expected to follow the Python installation directory naming convention from in the specified manyliniux image, ex.cp36-cp36m
. Python version names can be found by runningls /opt/python
in a manylinux image.steps
is a list of steps to execute via bash. Package building and uploading could be implemented here, orlittle-cheesemonger
could be integrated into a larger system!
Custom Data Loader
You can pass the path to an importable function, as well as positional and keyword arguments to little-cheesemonger
to customize how configuration data is loaded.
little-cheesemonger --data-loader path.to.function --loader-arg foo --loader-kwarg foo=bar
Custom data loader functions must accept directory
as the first argument with positional and keyword arguments passed to the loader function after. The function must return a dictionary of configuration data matching the fields above.
def my_custom_loader(directory: Path, ...) -> Dict:
pass
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 Distribution
Built Distribution
File details
Details for the file little-cheesemonger-0.1.0.tar.gz
.
File metadata
- Download URL: little-cheesemonger-0.1.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ca0eb6ed371f35a8bbe7d1cbd7c889dd2e596265a4e1872131a1b486fe0ca8e |
|
MD5 | 095a446941dba42a81f34ce7f606689b |
|
BLAKE2b-256 | 297ed35e6e2d1303a3bac6f6046a27c3ade16064966ad9b65495480b9774e2f4 |
File details
Details for the file little_cheesemonger-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: little_cheesemonger-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a65df6728d38feb778693ed0d514290fccc52f4200eb452a8da4a39d14b9dc1 |
|
MD5 | 2f428b4f4c0495706bb790da2fb72fab |
|
BLAKE2b-256 | 9420e2d83f8969d9d29fbeed2d9c4303d5acb5e76257ae6a16ad238d7e84316c |