This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Add build prerequisites to your python project.

Project Description
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")
Release History

Release History

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
maketools-0.1.4.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source Dec 23, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting