toolmaker application
Project description
Introduction
This tool automates the build of Python tools according to a configuration file. The tools can be built with zapp, shiv, or pex.
Repositories
Binary distributions:
Source code:
Usage
Configuration
By default this tool looks for a configuration file toolmaker.cfg in the current working directory.
[toolmaker.tool.defaults]
output_file_win = ${output_file}.pyz
[toolmaker.tool.pex:http.pex]
entry_point = http.server
output_file = http
requirements =
[toolmaker.tool.zapp:pipdeptree.zapp]
entry_point = pipdeptree:main
output_file = pipdeptree
requirements =
pipdeptree
setuptools
[toolmaker.tool.shiv:shiv.shiv]
entry_point = shiv.cli:main
output_file = shiv
requirements =
shiv
Action
The action can be specified on the command line. Either one of:
--build, -b to build (already existing tools are skipped);
--rebuild, -r to rebuild (already existing tools are rebuilt);
--delete, -d to delete (tool target file is deleted if it exists, then its parent directory is deleted if it is empty).
The default action when no flag is specified is to build the tools.
Tips
Place in a subdirectory of a directory that is available on your PATH (typically your ~/bin directory) and use in combination with GNU Stow.
Details
Similar projects
Hacking
This project makes extensive use of tox, pytest, and GNU Make.
Development environment
Use following command to create a Python virtual environment with all necessary dependencies:
tox --recreate -e develop
This creates a Python virtual environment in the .tox/develop directory. It can be activated with the following command:
. .tox/develop/bin/activate
Run test suite
In a Python virtual environment run the following command:
make review
Outside of a Python virtual environment run the following command:
tox --recreate
Build and package
In a Python virtual environment run the following command:
make package
Outside of a Python virtual environment run the following command:
tox --recreate -e package
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
Built Distribution
Hashes for toolmaker-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ebcd020ae24316902dadea6e2f35d062465b345dd871c36ec2889d13fde900a |
|
MD5 | 05ac948db0f2da4821a634223c213301 |
|
BLAKE2b-256 | e89d993a239203a118d4c0e93ea378f3ef198db7d635d7bb2cd3cdeb068a6944 |