Exemple #1
0
use_plugin("python.unittest")
use_plugin("python.cram")
use_plugin("python.integrationtest")
use_plugin("python.coverage")
use_plugin("python.flake8")
use_plugin("python.sphinx")
use_plugin('filter_resources')

if not sys.version_info[0] == 3:
    use_plugin("python.snakefood")

use_plugin("python.pydev")
use_plugin("python.pycharm")
use_plugin("python.pytddmon")

use_bldsup()
use_plugin("pdoc")

name = "PyBuilder"
summary = "An extensible, easy to use continuous build tool for Python"
description = """PyBuilder is a build automation tool for python.

PyBuilder is a software build tool written in pure Python which mainly targets Python applications.
It is based on the concept of dependency based programming but also comes along with powerful plugin mechanism that
allows the construction of build life cycles similar to those known from other famous build tools like Apache Maven.
"""

authors = [Author("Alexander Metzner", "*****@*****.**"),
           Author("Maximilien Riehl", "*****@*****.**"),
           Author("Michael Gruber", "*****@*****.**"),
           Author("Udo Juettner", "*****@*****.**"),
Exemple #2
0
import os

from pybuilder.core import Author
from pybuilder.core import init
from pybuilder.core import use_bldsup
from pybuilder.core import use_plugin
from pybuilder.core import task

use_bldsup(build_support_dir = os.path.join("src", "main", "python"))
import ess2bmp

use_plugin("python.core")
use_plugin("python.install_dependencies")
use_plugin("python.distutils")

default_task = "publish"

@task
def convertAllIn(project):
	# normpath() allows for linux shortcuts like "~" to be parsed correctly,
	# and "foo/bar/../" is parsed correctly as "foo/"
	directory = os.path.normpath(project.get_property("directory"))
	output_dir = directory + "_bmp"

	if not os.path.exists(output_dir):
		os.makedirs(output_dir)

	file_names = [file for file in os.listdir(directory) if file.endswith(".ess")]
	for file_name in file_names:
		bmp_file_name = file_name[:-3] + "bmp"
		qualified_file_name = os.path.join(directory, file_name)
Exemple #3
0
from pybuilder.core  import task
from pybuilder.core  import Author
from pybuilder.utils import assert_can_execute

import glob
import os
import shutil

use_plugin("python.core")
use_plugin("python.flake8")
use_plugin("python.unittest")
use_plugin("python.integrationtest")
use_plugin("python.install_dependencies")

# Import local build support plugins
use_bldsup(build_support_dir="support/build")
use_plugin("copy_files")
use_plugin("clean_project")
use_plugin("distribute")
use_plugin("devpi")
use_plugin("exec")

# Declare default build phase tasks to execute
default_task = [ "clean_project", "analyze", "install_dependencies", "publish" ]

# Declare top level project properties
authors = [Author("Paolo de Dios", "*****@*****.**")]
name    = "shift-detect"
url     = "http://paolodedios.com"
summary = "Covariate shift detector."
version = "0.1.0"
Exemple #4
0
use_plugin("python.cram")
use_plugin("python.integrationtest")
use_plugin("python.coverage")
use_plugin("python.flake8")
use_plugin("python.frosted")
use_plugin("python.sphinx")
use_plugin('filter_resources')

if not sys.version_info[0] == 3:
    use_plugin("python.snakefood")

use_plugin("python.pydev")
use_plugin("python.pycharm")
use_plugin("python.pytddmon")

use_bldsup()
use_plugin("pdoc")

name = "PyBuilder"
summary = "An extensible, easy to use continuous build tool for Python"
description = """PyBuilder is a build automation tool for python.

PyBuilder is a software build tool written in pure Python which mainly targets Python applications.
It is based on the concept of dependency based programming but also comes along with powerful plugin mechanism that
allows the construction of build life cycles similar to those known from other famous build tools like Apache Maven.
"""

authors = [Author("Alexander Metzner", "*****@*****.**"),
           Author("Maximilien Riehl", "*****@*****.**"),
           Author("Michael Gruber", "*****@*****.**"),
           Author("Udo Juettner", "*****@*****.**"),
Exemple #5
0
from pybuilder.core import init, use_plugin, task, use_bldsup

use_plugin("python.install_dependencies")
use_bldsup(build_support_dir="src/main/scripts")

default_task = ["slideon"]


@init
def initialize(project):
    project.depends_on("sh")
    project.depends_on("livereload")
    project.depends_on("requests")
    project.depends_on("clint")


@task
def slideon(logger):
    # check if asciidoctor and reveal.js are setup
    try:
        import livepreview
        livepreview.serve(logger)
    except:
        logger.error("e")


@task
def assembly():
    pass