=============
Customisable build targets for python.
This module is part of the flask-boilerplate project.
- `flask-boilerplate <https://github.com/nickw444/Flask-Boilerplate>`_
- `flask-boilerplate-buildutils <https://github.com/nickw444/flask-boilerplate-buildutils>`_
- `flask-boilerplate-utils <https://github.com/nickw444/flask-boilerplate-utils>`_
- `maketools <https://github.com/nickw444/python-maketools>`_
Basic Usage
------------
Define a target by subclassing the Target class
.. code-block:: python
from maketools import Target
class MyTarget(Target):
sh_build_commands = ('ls -la',
'mkdir test',
'echo {VARIABLE}')
depends = ('requirements.txt')
output = 'myfile.txt'
# And when you're ready to use it
top_target = MyTarget()
top_target.build(format_dict={'VARIABLE': 'HELLO'})
For further documentation of the Target class, see `readthedocs <http://python-maketools.readthedocs.org/en/latest/>`_. It has a few more options for extendability.
Advanced Target
-----------------
.. code-block:: python
from maketools import Target
class MyOtherTarget(Target):
# Define another target just to use it as a dependency.
pass
class MyTarget(Target):
sh_build_commands = ('ls -la',
'mkdir test')
depends = ('requirements.txt')
output = 'myfile.txt'
echo = True
always_build = False
depends = (MyOtherTarget, 'requirements.txt')
def py_build_commands()
print ("Do something in python")
Metadata
Release files for maketools 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| maketools-0.1.4.tar.gz | 3.8 kB | Without provenance | Details for maketools-0.1.4.tar.gz |
Release files / maketools-0.1.4.tar.gz
| Download URL | maketools-0.1.4.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
001ad284b1b197fbf6002d44952edaa9ee31fae5c925d69910dab45a3330879f
|
|
BLAKE2b-256 checksum How to use checksums |
ee1209544ddf0232e0e50f4b0664c43df6f23ba76ad7822e4b6ad1b75d008cc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for maketools 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.