sys.path.insert(1, project_main_path) from pybuilder_noseallure import run_unit_tests, generate_report, init_nose # @UnresolvedImport from pybuilder_noseallure.utils import getImportantDirs # @UnresolvedImport from pybuilder.core import Author, init, use_plugin, task, description import subprocess, os.path use_plugin("python.core") use_plugin("python.unittest") use_plugin("python.install_dependencies") use_plugin("python.distutils") name = "pybuilder-noseallure" version = '0.0.5' authors = [Author('Anukul Singhal', '*****@*****.**')] url = 'https://github.com/anukuls/pybuilder_noseallure' description = 'Pybuilder plugin to work with Nose and Allure report generation' license = 'Apache License, Version 2.0' summary = 'PyBuilder Nose Allure Plugin' default_task = ['clean', 'install_dependencies', 'publish', 'upload'] # default_task = ['clean', 'install_dependencies', 'run_unit_tests', 'generate_report', 'publish'] @init def set_properties(project): project.depends_on_requirements('requirements.txt') project.set_property('verbose', True) project.set_property('distutils_upload_repository', 'https://upload.pypi.org/legacy/')
from pybuilder.core import use_plugin, init, Author use_plugin("python.core") use_plugin("python.unittest") use_plugin("python.integrationtest") use_plugin("python.install_dependencies") use_plugin("python.flake8") use_plugin("python.coverage") use_plugin("python.distutils") use_plugin('copy_resources') use_plugin('filter_resources') name = "zcan" authors = [Author('Marco Hoyer', '*****@*****.**')] description = 'zcan - CAN bus adapter daemon for Zehnder ComfoAir Q series ventilation systems' license = 'APACHE LICENSE, VERSION 2.0' summary = 'CAN bus adapter daemon for Zehnder ComfoAir Q series ventilation systems' url = 'https://github.com/marco-hoyer/zcan' version = '0.0.1' default_task = ['clean', 'analyze', 'package'] @init def set_properties(project): project.build_depends_on("unittest2") project.build_depends_on("mock") project.depends_on("argparse") project.depends_on("pyyaml") project.depends_on("xknx")
use_plugin('pypi:pybuilder_pytest_coverage') use_plugin("python.install_dependencies") use_plugin("python.distutils") use_plugin("python.flake8") name = "RoboteQPy" version = "0.0.1" summary = "Module for interfacing Python with RoboteQ Products" url = "https://www.roboteq.com" description = """A library that connects to RoboteQ products over USB, or RS232 serial. Once connected, you can send controller commands to the RoboteQ device. Further development will focus on helpful funcitons that aid application development as well components that aid in robotics integration. """ authors = [Author("Gabriel Isko", "*****@*****.**")] license = "MIT" default_task = "publish" default_task = "publish" @init def initialize(project): project.get_property("pytest_extra_args").append("-x") project.set_property_if_unset("pytest_coverage_break_build_threshold", 50) project.set_property("pytest_coverage_html", True) #get html coverage report #project.set_property('coverage_reset_modules', True)
use_plugin("python.core") use_plugin("python.unittest") use_plugin("python.coverage") use_plugin("python.distutils") use_plugin("filter_resources") use_plugin("copy_resources") use_plugin("source_distribution") use_plugin("python.sonarqube") use_plugin("exec") # define project level attributes: name = 'clc-ansible-module' version = '1.1.10' summary = "Centurylink Cloud Ansible Modules" description = "Ansible extension modules which allow users to interact with Centurylink Cloud to define and manage cloud components." authors = [Author ("CenturyLink Cloud", "*****@*****.**")] url = 'http://www.centurylinkcloud.com' license = "CTL Corporate License" keywords = "centurylink cloud clc ansible modules" # targets are: # clean compile_sources init package prepare # publish run_integration_tests run_unit_tests verify default_task="publish" @init def initialize( project ): # define unit test preferences and behavours: # project.set_property("run_unit_tests_command", "export PYTHONPATH=%s:$PYTHONPATH nosetests -w src/unittest/python" % project.expand_path("$dir_source_main_python")) project.set_property("run_unit_tests_command", "export PYTHONPATH=$PYTHONPATH:%s;PYTHONPATH=src/main/python nosetests -w %s --exe -v --with-xunit --xunit-file=target/reports/nosetests_results.xml" % (project.expand_path("$dir_source_main_python"), project.expand_path("$dir_source_unittest_python"))) project.set_property("run_unit_tests_propagate_stdout", True) project.set_property("run_unit_tests_propagate_stderr", True)
# -*- coding: utf-8 -*- from pybuilder.core import use_plugin from pybuilder.core import init from pybuilder.core import Author use_plugin('python.core') use_plugin('python.unittest') use_plugin('python.flake8') use_plugin('python.coverage') use_plugin('python.distutils') use_plugin('pypi:pybuilder_radon') use_plugin('pypi:pybuilder_bandit') use_plugin('pypi:pybuilder_anybadge') name = 'mplogp' authors = [Author('Emilio Reyes', '*****@*****.**')] summary = 'A log parser for parsing logs generated from multi-processing based tools.' url = 'https://github.com/soda480/mplogp' version = '0.1.0' default_task = ['clean', 'analyze', 'publish', 'radon', 'bandit', 'anybadge'] license = 'Apache License, Version 2.0' description = summary @init def set_properties(project): project.set_property('unittest_module_glob', 'test_*.py') project.set_property('flake8_max_line_length', 120) project.set_property('flake8_verbose_output', True) project.set_property('flake8_break_build', True) project.set_property('flake8_include_scripts', True)
from pybuilder.core import init, use_plugin, Author use_plugin("python.core") use_plugin("python.install_dependencies") use_plugin("python.unittest") use_plugin("python.coverage") use_plugin("python.pycharm") use_plugin("python.distutils") default_task = ["install_dependencies", "publish", "install"] version = '0.0.1' summary = 'Command Line Interface for the DMR System' authors = (Author('Connor Boyle', '*****@*****.**'),) license = 'MIT' url = 'DMRSystem.github.io/documentation' @init def initialize(project): project.depends_on_requirements('requirements.txt') project.build_depends_on('mockito') project.build_depends_on('coveralls') project.set_property('distutils_console_scripts', ['dmr=dmr.cli.main:main'])
from pybuilder.core import use_plugin, init, Author, task, before, depends, RequirementsFile from pybuilder_demo import __version__ use_plugin("python.core") use_plugin("python.install_dependencies") use_plugin('pypi:pybuilder_pytest') use_plugin('pypi:pybuilder_pytest_coverage') use_plugin("copy_resources") use_plugin("python.distutils") name = "pybuilder-demo" version = __version__ summary = "An example project for configuring pybuilder" description = """An example project for configuring pybuilder.""" authors = [Author("Ravi Sharma", "*****@*****.**")] url = "https://github.com/imravishar/pybuilder-demo" license = "GPL License" default_task = ["clean"] @init def initialize(project): project.depends_on_requirements("requirements.txt") project.build_depends_on_requirements("dev_requirements.txt") project.set_property('dir_source_main_python', 'main') project.set_property('dir_source_pytest_python', 'unittest') project.set_property('dir_source_main_scripts', 'main/scripts') project.set_property("pytest_coverage_break_build_threshold", 90) project.set_property("pytest_coverage_html", True)
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" license = "MPL" @init def set_properties(project) : # Generate build and runtime dependency specs project.set_property("dir_deps_requirements", "support/deps") project.set_property("analyze_command", "support/deps/pip-compile-deps.sh {}".format(project.get_property("dir_deps_requirements"))) project.set_property("analyze_propagate_stdout", True) project.set_property("analyze_propagate_stderr", True)
from shutil import copyfile import re use_plugin('python.core') use_plugin('python.coverage') use_plugin('python.flake8') use_plugin('python.frosted') use_plugin('python.install_dependencies') use_plugin('python.pylint') use_plugin('python.unittest') __source__ = open('src/main/python/matisse/matisse.py').read() authors = [ Author( re.search(r'^__author__\s*=\s*"(.*)"', __source__, re.M).group(1), re.search(r'^__author_email__\s*=\s*"(.*)"', __source__, re.M).group(1)) ] version = re.search(r'^__version__\s*=\s*"(.*)"', __source__, re.M).group(1) license = re.search(r'^__license__\s*=\s*"(.*)"', __source__, re.M).group(1) description = re.search(r'^__description__\s*=\s*"(.*)"', __source__, re.M).group(1) url = re.search(r'^__url__\s*=\s*"(.*)"', __source__, re.M).group(1) @init def initialize(project): """Initializing the building class.""" project.version = version project.build_depends_on('coverage') project.build_depends_on('flake8')
from pybuilder.core import use_plugin, init, Author, depends use_plugin("python.core") use_plugin("python.unittest") use_plugin("python.install_dependencies") use_plugin("python.distutils") use_plugin("copy_resources") name = "Pipeline-Manager" summary = "Pipeline Manger for ARTIP" description = """Pipeline Manager is a tool to configure and trigger the pipelines on any given source""" authors = [Author("ARTIP Team", "*****@*****.**")] url = "https://bitbucket.org/iucaa/pipeline-manager/" license = "GPL License" default_task = ["clean"] @init def set_properties(project): project.set_property("dir_source_main_python", "src/main") project.set_property("dir_source_unittest_python", "src/tests/unittest") project.set_property("copy_resources_target", "$dir_dist") project.install_file("/public", "public/index.html") # project.install_file("/public/out", "./public/out/1776662db43bd611e4eb11d2add6d1c6.jpg") project.install_file("/public/out", "./public/out/bundle.js") project.install_file("/public/out", "./public/out/styles.css") project.set_property( 'distutils_console_scripts', ["pipeline-manager = pipeline_manager.server:app.run"])
from pybuilder.core import Author, init, use_plugin use_plugin("python.core") use_plugin("python.unittest") use_plugin("python.coverage") use_plugin("python.install_dependencies") use_plugin("python.distutils") use_plugin("python.flake8") use_plugin("python.pylint") use_plugin("python.sphinx") use_plugin('pypi:pybuilder_header_plugin') url = 'https://github.com/shantanubhadoria/python-printer-escpos' description = 'Please visit {0} for more information!'.format(url) authors = [Author('Shantanu Bhadoria', '*****@*****.**')] license = 'Apache License, Version 2.0' summary = 'Python interface for ESCPOS Printers' version = '0.0.2' default_task = ['analyze', 'publish'] @init def set_dependencies(project): # Build dependencies project.build_depends_on('mockito') # Runtime dependencies project.depends_on("pyusb") project.depends_on("pyserial")
from pybuilder.vcs import count_travis use_plugin("python.core") use_plugin("python.unittest") use_plugin("python.install_dependencies") use_plugin("python.flake8") use_plugin("python.coverage") use_plugin("python.distutils") use_plugin("filter_resources") name = "twentybn-dl" default_task = "publish" version = count_travis() summary = "TwentyBN public dataset downloader" authors = [ Author("Valentin Haenel", "*****@*****.**"), Author("Ingo Bax", "*****@*****.**"), ] requires_python = ">=3.4" @init def set_properties(project): project.set_property('coverage_break_build', False) project.depends_on('requests') project.depends_on('tqdm') project.depends_on('docopt') project.depends_on('sh') project.get_property('filter_resources_glob').extend( ['**/twentybn_dl/__init__.py'])
use_plugin("python.core") use_plugin("python.unittest") use_plugin("python.integrationtest") use_plugin("python.coverage") use_plugin("python.distutils") use_plugin('copy_resources') use_plugin('python.flake8') use_plugin("python.install_dependencies") default_task = ["analyze", "publish"] name = "livestatus-service" version = "0.4.0" summary = "Exposes MK livestatus to the outside world over HTTP" authors = (Author("Marcel Wolf", "*****@*****.**"), Author("Maximilien Riehl", "*****@*****.**")) url = "https://github.com/ImmobilienScout24/livestatus_service" license = "MIT" @init def initialize(project): project.port_to_run_on = "8080" project.build_depends_on("mock") project.depends_on("flask") project.depends_on("simplejson") project.set_property("verbose", True)
use_plugin('python.core') use_plugin('python.integrationtest') use_plugin('python.install_dependencies') use_plugin('python.unittest') use_plugin('python.coverage') use_plugin('python.flake8') use_plugin('python.frosted') use_plugin('pypi:pybuilder_jedi_plugin') use_plugin('python.distutils') use_plugin('copy_resources') use_plugin('filter_resources') authors = [ Author('Arne Hilmann', '*****@*****.**'), Author('Marcel Wolf', '*****@*****.**'), Author('Maximilien Riehl', '*****@*****.**') ] description = """YADT - an Augmented Deployment Tool - The Shell Part - regards the dependencies between services, over different hosts - updates artefacts in a safe manner - issues multiple commands in parallel on several hosts for more documentation, visit http://www.yadt-project.org/ """ name = 'yadtshell' license = 'GNU GPL v3' summary = 'YADT - an Augmented Deployment Tool - The Shell Part'
use_plugin("python.pycharm") use_plugin("python.pytddmon") use_bldsup() use_plugin("pdoc") 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", "*****@*****.**") ] url = "http://pybuilder.github.io" license = "Apache License" version = "0.10.33" default_task = ["analyze", "publish"] @init def initialize(project): project.build_depends_on("fluentmock") project.build_depends_on("mock")
use_plugin("python.pytddmon") use_plugin("python.sphinx") use_plugin("python.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", "*****@*****.**"), Author("Marcel Wolf", "*****@*****.**"), Author("Arcadiy Ivanov", "*****@*****.**"), Author("Valentin Haenel", "*****@*****.**"), ] url = "http://pybuilder.github.io" license = "Apache License" version = "0.11.10.dev" requires_python = ">=2.6,!=3.0,!=3.1,!=3.2,<3.7" default_task = ["install_dependencies", "analyze", "publish"]
# from pybuilder.core import use_plugin, init, Project, Author use_plugin("pypi:karellen_pyb_plugin", ">=0.0.1.dev") use_plugin("copy_resources") name = "karellen-kombu-ext" version = "4.0.3.dev" url = "https://github.com/karellen/karellen-kombu-ext" description = "Please visit %s for more information!" % url summary = "Karellen Kombu Extensions" authors = [ Author("Karellen, Inc", "*****@*****.**"), Author("Arcadiy Ivanov", "*****@*****.**"), ] license = "Apache License, Version 2.0" default_task = [ "install_dependencies", "analyze", "sphinx_generate_documentation", "publish" ] @init def set_properties(project: Project): # Dependencies project.depends_on("kombu", "4.0.2")
use_plugin('copy_resources') use_plugin('python.pytddmon') use_plugin('python.integrationtest') default_task = ['analyze', 'publish'] name = 'aws-monocyte' version = '0.3' summary = 'Monocyte - Search and Destroy unwanted AWS Resources relentlessly.' description = """ Monocyte is a bot for destroying AWS resources in non-EU regions written in Python using Boto. It is especially useful for companies that are bound to European privacy laws and for that reason don't want to process user data in non-EU regions. """ authors = [ Author('Jan Brennenstuhl', '*****@*****.**'), Author('Arne Hilmann', '*****@*****.**') ] url = 'https://github.com/ImmobilienScout24/aws-monocyte' license = 'Apache License 2.0' @init def set_properties(project): project.set_property("verbose", True) project.depends_on("docopt") project.depends_on("boto") project.depends_on("boto3") project.depends_on("python-cloudwatchlogs-logging") project.depends_on("yamlreader")
use_plugin("python.distutils") def read_from(filename): with open( os.path.join(os.path.abspath(os.path.dirname(__file__)), filename)) as f: result = f.read() return result default_task = ["publish", "clean"] name = "pybuilder-setup-cfg" summary = 'PyBuilder plugin for getting information from setup.cfg file or environment variables' authors = [Author('Martin Gruber', '*****@*****.**')] version = read_from('VERSION') license = 'MIT' url = 'https://github.com/margru/pybuilder-setup-cfg' classifiers = [ # How mature is this project? Common values are # 3 - Alpha # 4 - Beta # 5 - Production/Stable 'Development Status :: 3 - Alpha', # Pick your license as you wish (should match "license" above) 'License :: OSI Approved :: MIT License', # Specify the Python versions you support here. In particular, ensure
from pathlib import Path from pybuilder.core import Author, init, use_plugin use_plugin('python.core') use_plugin('python.distutils') use_plugin('pypi:pybuilder_archetype_base') use_plugin('pypi:pybuilder_pycharm_workspace') name = 'pybuilder-archetype-api' version = '0.1.1' license = "Apache License, Version 2.0" authors = [ Author("Arturo GL", '*****@*****.**'), Author("Diego BM", '*****@*****.**') ] url = 'https://github.com/yeuk0/pybuilder-archetype-api' summary = "External plugin for PyBuilder to generate a web service project structure" description = open('README.md', encoding='utf8').read() default_task = ['clean', 'publish'] @init def initialise(project): project.set_property('distutils_readme_file_type', 'text/markdown') @init
use_plugin('python.distutils') use_plugin('python.pydev') use_plugin('python.flake8') use_plugin('python.install_dependencies') use_plugin('ronn_manpage') use_plugin('copy_resources') use_plugin('filter_resources') default_task = ['generate_manpages', 'analyze', 'publish'] version = '1.0.3' name = 'hostexpand' summary = 'A tool to expand hostnames based on a pattern language and DNS resolution' authors = [ Author('Arne Hilmann', '*****@*****.**'), Author('Alexander Metzner', '*****@*****.**'), Author('Udo Juettner', '*****@*****.**'), Author('Schlomo Schapiro', '*****@*****.**'), Author('Maximilien Riehl', '*****@*****.**') ] url = 'https://github.com/yadt/hostexpand' license = 'GNU GPL v3' @init def set_properties(project): project.depends_on('dnspython') project.build_depends_on('mockito')
from pybuilder.core import use_plugin from pybuilder.core import init from pybuilder.core import Author from pybuilder.core import task from pybuilder.pluginhelper.external_command import ExternalCommandBuilder use_plugin('python.core') use_plugin('python.unittest') use_plugin('python.install_dependencies') use_plugin('python.flake8') use_plugin('python.coverage') use_plugin('python.distutils') use_plugin('filter_resources') name = 'rest3client' authors = [Author('Emilio Reyes', '*****@*****.**')] summary = 'A Python class providing primitive methods for enabling consumption of REST APIs' url = 'https://github.com/soda480/rest3client' version = '0.0.5' default_task = ['clean', 'analyze', 'cyclomatic_complexity', 'package'] license = 'Apache License, Version 2.0' description = __doc__ @init def set_properties(project): project.set_property('unittest_module_glob', 'test_*.py') project.set_property('coverage_break_build', False) project.set_property('flake8_max_line_length', 120) project.set_property('flake8_verbose_output', True) project.set_property('flake8_break_build', True)
import pymysql import os use_plugin('filter_resources') use_plugin('python.core') use_plugin('python.coverage') use_plugin('python.unittest') use_plugin('python.integrationtest') use_plugin('python.install_dependencies') use_plugin('python.flake8') use_plugin('python.pydev') use_plugin("python.distutils") name = 'flaskseed' authors = [Author('Tom Li', '*****@*****.**'), Author('lxf', '*****@*****.**')] license = 'Apache License, Version 2.0' summary = 'Flask template application' url = 'https://github.com/landcast/flaskseed' version = '0.1' default_task = ['install_dependencies', 'analyze', 'publish', 'post_publish'] @task @depends('publish') def post_publish(project, logger): logger.info('run post_publish task') os.system('rm setup.py -rf') os.system('cp ./target/dist/flaskseed-0.1/setup.py setup.py')
import os, shutil, sys, errno import tarfile from zipfile import ZipFile if sys.version_info >= (3, ): import urllib.request as urllib2 import urllib.parse as urlparse from urllib.error import HTTPError else: import urllib2 import urlparse import urllib2.HTTPError as HTTPError from pybuilder.core import init, task, Author name = 'opennlp-sandbox' authors = [Author('Paulius Danenas', '*****@*****.**')] license = 'Apache License, Version 2.0' summary = 'Setup OpenNLP environment' version = '1.0' default_task = ['setup_opennlp'] # OpenNLP settings install_dir = os.getcwd() languages = ['en', 'de'] OPENNLP_VER = '1.8.4' OPENNLP_DIR = 'apache-opennlp' OPENNLP_MODELS_DIR = 'opennlp_models' # Adopted from https://stackoverflow.com/questions/22676/how-do-i-download-a-file-over-http-using-python def download_file(url, desc=None): u = urllib2.urlopen(url)
from __future__ import print_function, absolute_import, unicode_literals, division from pybuilder.core import use_plugin, init, task, depends, Author use_plugin("python.core") use_plugin("python.unittest") use_plugin("python.install_dependencies") use_plugin("python.flake8") use_plugin("python.coverage") use_plugin("python.distutils") name = "yamlreader" summary = 'Merge YAML data from given files, dir or file glob' authors = [Author('Schlomo Schapiro', "*****@*****.**")] url = 'https://github.com/ImmobilienScout24/yamlreader' version = '3.0.4' description = open("README.rst").read() license = 'Apache License 2.0' default_task = ["clean", "analyze", "publish"] @init def set_properties(project): project.depends_on("PyYAML") project.depends_on("six") project.set_property('distutils_console_scripts', ['yamlreader=yamlreader.yamlreader:__main']) project.set_property("distutils_classifiers", [ "Programming Language :: Python",
use_plugin("python.core") use_plugin("python.install_dependencies") use_plugin("python.unittest") use_plugin("python.coverage") use_plugin("python.pylint") use_plugin("python.flake8") use_plugin("python.pycharm") default_task = ["analyze", "coverage"] version = "0.0.1" authors = (Author("Markus 'ShiN0' Gaertner"),) url = "https://github.com/mgaertne/minqlx-plugin-tests" requires_python = ">2.7,>3.8" @init def initialize(project): project.build_depends_on_requirements('requirements.txt') project.set_property("coverage_break_build", False) project.set_property("coverage_exceptions", ["minqlx._commands", "minqlx._core", "minqlx._events", "minqlx._game", "minqlx._handlers", "minqlx._minqlx", "minqlx._player", "minqlx._plugin", "minqlx._zmq", "minqlx.database"]) project.set_property("pylint_options", ["--rcfile=./.pylintrc"])
from pybuilder.core import use_plugin, init, Author use_plugin("python.core") use_plugin("python.unittest") use_plugin("python.integrationtest") use_plugin("python.install_dependencies") use_plugin("python.flake8") use_plugin("python.coverage") use_plugin("python.distutils") use_plugin('copy_resources') use_plugin('filter_resources') name = "cfn-square" authors = [ Author('Marco Hoyer', '*****@*****.**'), Author('Steve Parker', '*****@*****.**') ] description = "cfn-square - A CLI tool intended to simplify AWS CloudFormation handling." license = 'APACHE LICENSE, VERSION 2.0' summary = 'cfn-square AWS CloudFormation management cli' url = 'https://github.com/KCOM-Enterprise/cfn-square' version = '0.2.11' default_task = ['clean', 'analyze', 'package'] @init def set_properties(project): project.build_depends_on("unittest2") project.build_depends_on("mock")
from pybuilder.core import use_plugin, init, Author use_plugin('filter_resources') use_plugin('python.core') use_plugin('python.coverage') use_plugin('python.pyfix_unittest') use_plugin('python.integrationtest') use_plugin('python.install_dependencies') use_plugin('python.flake8') use_plugin('python.pydev') use_plugin('python.distutils') name = 'nameko-orders' authors = [Author('Abhay Girnara', '*****@*****.**')] license = 'Test License, Version 2.0' summary = 'Orders management service for creating/retrieving the orders' url = 'https://github.com/girnara/nameko-pybuilder' version = '1.0.0' default_task = ['clean','install_dependencies', 'analyze', 'publish'] @init def set_properties (project): project.build_depends_on('coverage') project.build_depends_on('pyassert') project.build_depends_on('pyfix') project.build_depends_on('nameko')
# 0. You just DO WHAT THE F**K YOU WANT TO. from pybuilder.core import use_plugin, init, Author use_plugin('python.core') use_plugin('python.install_dependencies') use_plugin('filter_resources') use_plugin('copy_resources') use_plugin('python.coverage') use_plugin('python.distutils') use_plugin('python.unittest') use_plugin('python.flake8') authors = [Author('Maximilien Riehl', '*****@*****.**')] license = 'WTFPL' name = 'pyb_init' url = 'https://github.com/mriehl/pyb_init' summary = 'pybuilder project initialization' version = '0.2.2' default_task = ['analyze', 'publish'] @init def set_properties(project): project.depends_on('docopt') project.build_depends_on('mockito-without-hardcoded-distribute-version') project.build_depends_on('mock')
from pybuilder.core import Author, init, use_plugin use_plugin("python.core") use_plugin("python.install_dependencies") use_plugin("python.flake8") use_plugin("python.frosted") use_plugin("python.distutils") use_plugin("filter_resources") # third party plugins use_plugin('pypi:pybuilder_pytest') use_plugin('pypi:pybuilder_pytest_coverage') use_plugin('pypi:pybuilder_semver_git_tag') use_plugin('pypi:pybuilder_pylint_extended') name = "pybuilder_pypi_server" authors = [Author('Alexey Sanko', '*****@*****.**')] url = 'https://github.com/AlexeySanko/pybuilder_pypi_server' description = 'Please visit {0} for more information!'.format(url) license = 'Apache License, Version 2.0' summary = 'PyBuilder Pipy Server Plugin' default_task = ['clean', 'analyze', 'publish'] @init def filter_settings(project): # filter target files project.set_property('filter_resources_target', '$dir_dist') # provide verions and other properties project.get_property("filter_resources_glob").append("%s/version.py" % name)