本文整理汇总了Python中pybuilder.core.use_plugin函数的典型用法代码示例。如果您正苦于以下问题:Python use_plugin函数的具体用法?Python use_plugin怎么用?Python use_plugin使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了use_plugin函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: use_plugin
from pybuilder.core import use_plugin, init
use_plugin('python.core')
# build
use_plugin('python.install_dependencies')
use_plugin('python.pydev')
use_plugin('python.distutils')
# quality
use_plugin('python.unittest')
use_plugin('python.coverage')
use_plugin('python.frosted')
use_plugin('python.flake8')
use_plugin('python.pylint')
use_plugin('python.pep8')
# IDE
use_plugin('python.pycharm')
default_task = ['install_dependencies', 'analyze', 'publish']
@init
def set_properties(project):
project.set_property('frosted_break_build', True)
project.set_property('flake8_break_build', True)
project.set_property('pylint_options', ["--max-line-length=79"])
开发者ID:careerfamily,项目名称:simpleioc,代码行数:24,代码来源:build.py
示例2: use_plugin
from pybuilder.core import Author, init, use_plugin, task, depends
import os
import shutil
import subprocess
use_plugin("python.core")
use_plugin("python.install_dependencies")
use_plugin("python.distutils")
use_plugin("python.unittest")
use_plugin("source_distribution")
default_task = "publish"
name = "gitvotal"
summary = "Connecting GitHub Issue with Pivotal Tracker"
description = "This project will create new Pivotal Tracker story based on GitHub issue"
authors = [Author("jocki", "[email protected]")]
url = "https://github.com/jocki/gitvotal"
version = "0.1"
def _docker_build(project, logger):
profile = project.get_property('profile')
# Creating docker staging directory
docker_dir = project.expand("$dir_target/docker")
logger.info("Creating docker staging at {0}".format(docker_dir))
shutil.rmtree(docker_dir, True)
os.mkdir(docker_dir)
# Copying Dockerfile
开发者ID:jocki,项目名称:gitvotal,代码行数:31,代码来源:build.py
示例3: import
from pybuilder.utils import assert_can_execute
from pybuilder.utils import execute_command
from pybuilder.errors import BuildFailedException
from pybuilder.core import NAME_ATTRIBUTE
from pybuilder.core import (after,
task,
init,
use_plugin,
depends)
__author__ = 'Marcel Wolf'
DEB_PACKAGE_MAINTAINER = "John Doe <[email protected]>"
use_plugin("core")
@init
def initialize_make_deb_plugin(project):
project.plugin_depends_on("stdeb")
package_name = project.name + "-" + project.version + ".tar.gz"
PATH_TO_SOURCE_TARBALL = project.expand_path(
"$dir_dist/dist/" + package_name)
PATH_FINAL_BUILD = project.expand_path("$dir_dist/dist/")
project.set_property_if_unset(
"deb_package_maintainer", DEB_PACKAGE_MAINTAINER)
开发者ID:Dotty280983,项目名称:pybuilder,代码行数:30,代码来源:stdeb_plugin.py
示例4: use_plugin
import subprocess
from pybuilder.core import Author, init, use_plugin, task, before, after
use_plugin("filter_resources")
use_plugin("python.core")
use_plugin("python.install_dependencies")
use_plugin("python.distutils")
use_plugin("python.pycharm")
name = "fuct"
url = "https://github.com/MrOnion/fuct"
description = "Visit %s for more information." % url
authors = [Author("Ari Karhu", "[email protected]")]
license = "MIT License"
summary = "Unified commandline tools for FreeEMS"
default_task = ["install_dependencies", "publish"]
@init
def set_properties(project, logger):
project.get_property("filter_resources_glob").append("**/fuct/__init__.py")
project.depends_on("pyserial", ">=2.7")
project.depends_on("futures", ">=3.0.3")
project.depends_on("colorlog[windows]", ">=2.0.0")
logger.info("Executing git describe")
project.version = subprocess.check_output(
["git", "describe", "--abbrev=0"]).rstrip("\n")
project.set_property("gitdesc", subprocess.check_output(
["git", "describe", "--tags", "--always", "--long", "--dirty"]).rstrip("\n"))
开发者ID:MrOnion,项目名称:fuct,代码行数:31,代码来源:build.py
示例5: bootstrap
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
sys.path.insert(0, 'src/main/python') # This is only necessary in PyBuilder sources for bootstrap
from pybuilder import bootstrap
from pybuilder.core import Author, init, use_plugin
bootstrap()
use_plugin("python.core")
use_plugin("python.pytddmon")
use_plugin("python.distutils")
use_plugin("python.install_dependencies")
use_plugin("copy_resources")
use_plugin("filter_resources")
use_plugin("source_distribution")
use_plugin("python.unittest")
if sys.platform != "win32":
use_plugin("python.cram")
use_plugin("python.integrationtest")
use_plugin("python.coverage")
开发者ID:arcivanov,项目名称:pybuilder,代码行数:31,代码来源:build.py
示例6: use_plugin
from pybuilder.core import use_plugin, init
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('python.pydev')
name = "sample_pybuilder"
default_task = "publish"
@init
def set_properties(project):
pass
开发者ID:xlogan777,项目名称:github_repo1,代码行数:17,代码来源:build.py
示例7: use_plugin
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pybuilder.core import use_plugin, init, Author
from pybuilder.vcs import VCSRevision
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('python.cram')
name = "snakepit"
default_task = "publish"
version = VCSRevision().get_git_revision_count()
summary = "Package Python software as an RPM including all dependencies " \
"(even the interpreter)."
authors = [Author('Valentin Haenel', '[email protected]')]
license = 'Apache'
url = 'https://github.com/ImmobilienScout24/snakepit'
@init
def set_properties(project):
project.set_property('install_dependencies_upgrade', True)
project.build_depends_on("unittest2")
project.build_depends_on("requests_mock")
project.depends_on("jinja2")
project.depends_on("pyyaml")
开发者ID:ImmobilienScout24,项目名称:snakepit,代码行数:31,代码来源:build.py
示例8: use_plugin
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from pybuilder.core import init, use_plugin, Author, before
# declare specific plugins we need to use:
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.16'
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", "[email protected]")]
开发者ID:CenturyLinkCloud,项目名称:clc-ansible-module,代码行数:31,代码来源:build.py
示例9: use_plugin
from pybuilder.core import use_plugin, init, Author
import os
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('python.integrationtest')
use_plugin("pypi:pybuilder_aws_plugin")
name = "aws-set-sqs-permission-lambda"
version = "0.2"
summary = "aws-set-sqs-permission-lambda - Set SQS queue permissions for all ultimate source of accounts (usofa)"
description = """
Set SQS queue permissions for all ultimate source of accounts (usofa)
"""
authors = [Author("Enrico Heine", "[email protected]"),
Author("Tobias Vollmer", "[email protected]"),
Author("Tobias Hoeynck", "[email protected]")]
url = "https://github.com/ImmobilienScout24/aws-set-sqs-permission-lambda"
license = "Apache License 2.0"
default_task = ["clean", "analyze", "package"]
@init(environments='teamcity')
def set_properties_for_teamcity_builds(project):
project.set_property('teamcity_output', True)
project.set_property('teamcity_parameter', 'filename')
开发者ID:ImmobilienScout24,项目名称:aws-set-sqs-permission-lambda,代码行数:31,代码来源:build.py
示例10: use_plugin
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from pybuilder.core import use_plugin, init, Author
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.distutils')
name = 'shtub'
authors = [Author('Alexander Metzner', '[email protected]'),
Author('Michael Gruber', '[email protected]'),
Author('Maximilien Riehl', '[email protected]'),
Author('Marcel Wolf', '[email protected]'),
Author('Udo Juettner', '[email protected]')]
license = 'GNU GPL v3'
开发者ID:yadt,项目名称:shtub,代码行数:31,代码来源:build.py
示例11: use_plugin
from pybuilder.core import use_plugin
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.pydev")
name = "ftdigpio"
default_task = "publish"
开发者ID:aadebuger,项目名称:ftdigpio,代码行数:7,代码来源:build.py
示例12: from
pyfix Principals
````````````````
pyfix aims to make tests easy to read and understand while it encourages the use of accepted software design principles
such as favor composition over inheritance. pyfix also tries to reduce the amount of syntactic "waste" that some other
frameworks suffer from (i.e. putting self in front of almost everything).
Links
`````
* pyfix Github repository <https://github.com/pyclectic/pyfix>
"""
from pybuilder.core import init, use_plugin, Author
use_plugin("filter_resources")
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.integrationtest")
use_plugin("python.coverage")
use_plugin("python.pychecker")
use_plugin("python.distutils")
use_plugin("python.install_dependencies")
default_task = ["analyze", "publish"]
version = "0.2.3"
summary = "A framework for writing automated software tests (non xUnit based)"
description = __doc__
开发者ID:pyclectic,项目名称:pyfix,代码行数:30,代码来源:build.py
示例13: use_plugin
from pybuilder.core import use_plugin, init, Author
use_plugin('python.core')
use_plugin('python.install_dependencies')
use_plugin('python.distutils')
use_plugin('python.flake8')
use_plugin('python.unittest')
use_plugin('copy_resources')
default_task = ['analyze', 'publish']
name = 'yadtbroadcast-client-wamp2'
version = '0.0.2'
summary = 'YADT - an Augmented Deployment Tool - The Broadcast Client Part'
description = """Yet Another Deployment Tool - The Broadcast Client Part
- sends state information to a Yadt Broadcast Server instance
- sends information on start/stop/status/update
- using the Wamp v2 protocol
"""
authors = [Author('Arne Hilmann', '[email protected]'),
Author('Maximilien Riehl', '[email protected]'),
Author('Marcel Wolf', '[email protected]')]
url = 'http://github.com/yadt/yadtbroadcast-client-wamp2'
license = 'GNU GPL v3'
@init
def set_properties(project):
project.build_depends_on('mock')
开发者ID:yadt,项目名称:yadtbroadcast-client-wamp2,代码行数:31,代码来源:build.py
示例14: use_plugin
SCRIPT_DIR = os.path.dirname(__file__)
if sys.platform == 'win32':
SUBLIME_TEXT_DATA_PATH = os.environ.get('SUBLIME_TEXT_DATA')
elif sys.platform == 'darwin':
SUBLIME_TEXT_DATA_PATH = os.path.expanduser('~/Library/Application Support/Sublime Text 3')
else:
SUBLIME_TEXT_DATA_PATH = os.path.expanduser('~/.config/sublime-text-3')
# use_plugin("python.core")
# use_plugin("python.unittest")
# use_plugin("python.coverage")
# use_plugin("python.distutils")
use_plugin("python.flake8")
@init
def initialize(project):
project.version = "0.0.1"
project.set_property('dir_source_main_python', 'src')
@task
def develop():
# TODO: locate the path to ST from running process if any.
if sys.platform == 'win32':
if not (SUBLIME_TEXT_DATA_PATH and os.path.exists(SUBLIME_TEXT_DATA_PATH)):
print(r"Can't locate the Data folder. Please set %SUBLIME_TEXT_DATA%.")
return
开发者ID:guillermooo,项目名称:sublime-troubleshooting-dev,代码行数:28,代码来源:build.py
示例15: use_plugin
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from pybuilder.core import use_plugin, init, Author, after
use_plugin('python.core')
use_plugin('python.install_dependencies')
use_plugin('python.coverage')
use_plugin('python.distutils')
use_plugin('python.unittest')
use_plugin('python.flake8')
use_plugin('python.frosted')
use_plugin('python.pydev')
use_plugin('filter_resources')
use_plugin('copy_resources')
name = 'fysom'
url = 'https://github.com/mriehl/fysom'
license = 'MIT'
authors = [Author('Mansour Behabadi', '[email protected]'),
开发者ID:danielkza,项目名称:fysom,代码行数:31,代码来源:build.py
示例16: use_plugin
from pybuilder.core import use_plugin, init, Author
use_plugin("python.core")
use_plugin("python.install_dependencies")
use_plugin("python.unittest")
use_plugin("python.coverage")
use_plugin("python.distutils")
use_plugin('pypi:pybuilder_header_plugin')
url = 'https://github.com/labase/carinhas'
description = "Please visit {url}".format(url=url)
authors = [Author('Carlo Oliveira', '[email protected]')]
license = 'GNU General Public License v2 (GPLv2)'
summary = "A game of matching faces."
version = '0.1.1'
default_task = ['analyze', 'check_source_file_headers', 'publish']
@init
def initialize(project):
project.build_depends_on('mockito')
project.set_property('distutils_classifiers', [
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Bottle',
'Intended Audience :: Education',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Natural Language :: Portuguese (Brazilian)',
'Topic :: Games/Entertainment :: Puzzle Games',
'Topic :: Education',
'Programming Language :: Python',
开发者ID:matheusforny,项目名称:carinhas,代码行数:31,代码来源:build.py
示例17: use_plugin
from pybuilder.core import use_plugin, init, 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")
use_plugin('copy_resources')
use_plugin("filter_resources")
name = 'afp-cli'
summary = 'Command line client for AWS federation proxy api'
authors = [Author('Stefan Neben', "st[email protected]"),
Author('Tobias Vollmer', "[email protected]"),
Author('Stefan Nordhausen', "[email protected]"),
Author('Enrico Heine', "[email protected]"),
]
url = 'https://github.com/ImmobilienScout24/afp-cli'
version = '1.1.0'
description = open("README.rst").read()
license = 'Apache License 2.0'
default_task = ["clean", "analyze", "publish"]
@init
def set_properties(project):
project.build_depends_on("unittest2")
project.build_depends_on("mock")
project.build_depends_on("six")
开发者ID:sdomme,项目名称:afp-cli,代码行数:31,代码来源:build.py
示例18: use_plugin
from pybuilder.core import use_plugin, init
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("python.pydev")
name = "oneapmflask"
default_task = "publish"
@init
def set_properties(project):
pass
开发者ID:aadebuger,项目名称:oneapmflask,代码行数:17,代码来源:build.py
示例19: use_plugin
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from pybuilder.core import use_plugin, after, init, task
from pybuilder.utils import assert_can_execute
from pybuilder.plugins.python.python_plugin_helper import execute_tool_on_modules
use_plugin("python.core")
use_plugin("analysis")
DEFAULT_PYLINT_OPTIONS = ["--max-line-length=100", "--no-docstring-rgx=.*"]
@init
def init_pylint(project):
project.plugin_depends_on("pylint")
project.set_property_if_unset("pylint_options", DEFAULT_PYLINT_OPTIONS)
@after("prepare")
def check_pylint_availability(logger):
logger.debug("Checking availability of pychecker")
assert_can_execute(("pylint", ), "pylint", "plugin python.pylint")
开发者ID:Hawks12,项目名称:pybuilder,代码行数:31,代码来源:pylint_plugin.py
示例20: use_plugin
# -*- coding: utf-8 -*-
#
# This file is part of PyBuilder
#
# Copyright 2011-2014 PyBuilder Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from pybuilder.core import use_plugin
use_plugin("python.core")
use_plugin("python.pyfix_unittest")
use_plugin("python.coverage")
use_plugin("python.distutils")
default_task = "publish"
开发者ID:AnudeepHemachandra,项目名称:pybuilder,代码行数:25,代码来源:build.py
注:本文中的pybuilder.core.use_plugin函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论