Skip to main content
Python Maketools
=============

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")

Download files

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

Source Distribution

maketools-0.1.4.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file maketools-0.1.4.tar.gz.

File metadata

  • Download URL: maketools-0.1.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for maketools-0.1.4.tar.gz
Algorithm Hash digest
SHA256 001ad284b1b197fbf6002d44952edaa9ee31fae5c925d69910dab45a3330879f
MD5 79bf0b530243a0a2980306386e240cf3
BLAKE2b-256 ee1209544ddf0232e0e50f4b0664c43df6f23ba76ad7822e4b6ad1b75d008cc2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 file

0.1.3

1 file

0.1.2

0.1.1

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page